Class GalleryImage
- Namespace
- idunno.Bluesky.Embed.Gallery
- Assembly
- idunno.Bluesky.dll
Encapsulates information about an image embedded in a gallery.
[JsonPolymorphic(IgnoreUnrecognizedTypeDiscriminators = false, UnknownDerivedTypeHandling = JsonUnknownDerivedTypeHandling.FailSerialization)]
[JsonDerivedType(typeof(GalleryImage), "app.bsky.embed.gallery#image")]
public record GalleryImage : IEquatable<GalleryImage>Inheritance
Implements
Inherited Members
Constructors
GalleryImage(Blob, string, AspectRatio)
Creates a new instance of idunno.Bluesky.Embed.Gallery.GalleryImage.Image
[JsonConstructor]
public GalleryImage(Blob image, string altText, AspectRatio aspectRatio)Parameters
imageBlob-
A idunno.AtProto.Blob containing details of the uploaded image.
altTextstring-
The AltText (for accessibility) for the image.
aspectRatioAspectRatio-
The image's aspect ratio.
Exceptions
- ArgumentNullException
-
Thrown when any of the parameters are null.
GalleryImage(EmbeddedImage)
Creates a new instance of idunno.Bluesky.Embed.Gallery.GalleryImage.Image from the specified image.
public GalleryImage(EmbeddedImage image)Parameters
imageEmbeddedImage-
The idunno.Bluesky.Embed.EmbeddedImage to create the gallery image from.
Exceptions
- ArgumentNullException
-
Thrown when
imageor any of its properties are null.
GalleryImage(GalleryImage)
protected GalleryImage(GalleryImage original)Parameters
originalGalleryImage
GalleryImage(Blob, string, AspectRatio)
Creates a new instance of idunno.Bluesky.Embed.Gallery.GalleryImage.Image
[JsonConstructor]
public GalleryImage(Blob image, string altText, AspectRatio aspectRatio)Parameters
imageBlob-
A idunno.AtProto.Blob containing details of the uploaded image.
altTextstring-
The AltText (for accessibility) for the image.
aspectRatioAspectRatio-
The image's aspect ratio.
Exceptions
- ArgumentNullException
-
Thrown when any of the parameters are null.
GalleryImage(EmbeddedImage)
Creates a new instance of idunno.Bluesky.Embed.Gallery.GalleryImage.Image from the specified image.
public GalleryImage(EmbeddedImage image)Parameters
imageEmbeddedImage-
The idunno.Bluesky.Embed.EmbeddedImage to create the gallery image from.
Exceptions
- ArgumentNullException
-
Thrown when
imageor any of its properties are null.
GalleryImage(GalleryImage)
protected GalleryImage(GalleryImage original)Parameters
originalGalleryImage
GalleryImage(Blob, string, AspectRatio)
Creates a new instance of idunno.Bluesky.Embed.Gallery.GalleryImage.Image
[JsonConstructor]
public GalleryImage(Blob image, string altText, AspectRatio aspectRatio)Parameters
imageBlob-
A idunno.AtProto.Blob containing details of the uploaded image.
altTextstring-
The AltText (for accessibility) for the image.
aspectRatioAspectRatio-
The image's aspect ratio.
Exceptions
- ArgumentNullException
-
Thrown when any of the parameters are null.
GalleryImage(EmbeddedImage)
Creates a new instance of idunno.Bluesky.Embed.Gallery.GalleryImage.Image from the specified image.
public GalleryImage(EmbeddedImage image)Parameters
imageEmbeddedImage-
The idunno.Bluesky.Embed.EmbeddedImage to create the gallery image from.
Exceptions
- ArgumentNullException
-
Thrown when
imageor any of its properties are null.
GalleryImage(GalleryImage)
protected GalleryImage(GalleryImage original)Parameters
originalGalleryImage
Properties
AltText
Gets AltText (for accessibility) for the image.
[JsonInclude]
[JsonRequired]
[JsonPropertyName("alt")]
public string AltText { get; init; }Property Value
AltText
Gets AltText (for accessibility) for the image.
[JsonInclude]
[JsonRequired]
[JsonPropertyName("alt")]
public string AltText { get; init; }Property Value
AltText
Gets AltText (for accessibility) for the image.
[JsonInclude]
[JsonRequired]
[JsonPropertyName("alt")]
public string AltText { get; init; }Property Value
AspectRatio
The image's aspect ratio.
[JsonInclude]
[JsonRequired]
public AspectRatio AspectRatio { get; init; }Property Value
AspectRatio
The image's aspect ratio.
[JsonInclude]
[JsonRequired]
public AspectRatio AspectRatio { get; init; }Property Value
AspectRatio
The image's aspect ratio.
[JsonInclude]
[JsonRequired]
public AspectRatio AspectRatio { get; init; }Property Value
EqualityContract
protected virtual Type EqualityContract { get; }Property Value
EqualityContract
protected virtual Type EqualityContract { get; }Property Value
EqualityContract
protected virtual Type EqualityContract { get; }Property Value
Image
Gets a idunno.AtProto.Blob containing details of the uploaded image.
[JsonInclude]
[JsonRequired]
public Blob Image { get; init; }Property Value
- Blob
Image
Gets a idunno.AtProto.Blob containing details of the uploaded image.
[JsonInclude]
[JsonRequired]
public Blob Image { get; init; }Property Value
- Blob
Image
Gets a idunno.AtProto.Blob containing details of the uploaded image.
[JsonInclude]
[JsonRequired]
public Blob Image { get; init; }Property Value
- Blob
Methods
<Clone>$()
public virtual GalleryImage <Clone>$()Returns
<Clone>$()
public virtual GalleryImage <Clone>$()Returns
<Clone>$()
public virtual GalleryImage <Clone>$()Returns
Equals(object?)
public override bool Equals(object? obj)Parameters
objobject?
Returns
Equals(GalleryImage?)
public virtual bool Equals(GalleryImage? other)Parameters
otherGalleryImage?
Returns
Equals(object?)
public override bool Equals(object? obj)Parameters
objobject?
Returns
Equals(GalleryImage?)
public virtual bool Equals(GalleryImage? other)Parameters
otherGalleryImage?
Returns
Equals(object?)
public override bool Equals(object? obj)Parameters
objobject?
Returns
Equals(GalleryImage?)
public virtual bool Equals(GalleryImage? other)Parameters
otherGalleryImage?
Returns
GetHashCode()
public override int GetHashCode()Returns
GetHashCode()
public override int GetHashCode()Returns
GetHashCode()
public override int GetHashCode()Returns
PrintMembers(StringBuilder)
protected virtual bool PrintMembers(StringBuilder builder)Parameters
builderStringBuilder
Returns
PrintMembers(StringBuilder)
protected virtual bool PrintMembers(StringBuilder builder)Parameters
builderStringBuilder
Returns
PrintMembers(StringBuilder)
protected virtual bool PrintMembers(StringBuilder builder)Parameters
builderStringBuilder
Returns
ToString()
public override string ToString()Returns
ToString()
public override string ToString()Returns
ToString()
public override string ToString()Returns
Operators
operator ==(GalleryImage?, GalleryImage?)
public static bool operator ==(GalleryImage? left, GalleryImage? right)Parameters
leftGalleryImage?rightGalleryImage?
Returns
operator ==(GalleryImage?, GalleryImage?)
public static bool operator ==(GalleryImage? left, GalleryImage? right)Parameters
leftGalleryImage?rightGalleryImage?
Returns
operator ==(GalleryImage?, GalleryImage?)
public static bool operator ==(GalleryImage? left, GalleryImage? right)Parameters
leftGalleryImage?rightGalleryImage?
Returns
operator !=(GalleryImage?, GalleryImage?)
public static bool operator !=(GalleryImage? left, GalleryImage? right)Parameters
leftGalleryImage?rightGalleryImage?
Returns
operator !=(GalleryImage?, GalleryImage?)
public static bool operator !=(GalleryImage? left, GalleryImage? right)Parameters
leftGalleryImage?rightGalleryImage?
Returns
operator !=(GalleryImage?, GalleryImage?)
public static bool operator !=(GalleryImage? left, GalleryImage? right)Parameters
leftGalleryImage?rightGalleryImage?