Table of Contents

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

Creates a new instance of idunno.Bluesky.Embed.Gallery.GalleryImage.Image

[JsonConstructor]
public GalleryImage(Blob image, string altText, AspectRatio aspectRatio)

Parameters

image Blob

A idunno.AtProto.Blob containing details of the uploaded image.

altText string

The AltText (for accessibility) for the image.

aspectRatio AspectRatio

The image's aspect ratio.

Exceptions

ArgumentNullException

Thrown when any of the parameters are null.

Creates a new instance of idunno.Bluesky.Embed.Gallery.GalleryImage.Image from the specified image.

public GalleryImage(EmbeddedImage image)

Parameters

image EmbeddedImage

The idunno.Bluesky.Embed.EmbeddedImage to create the gallery image from.

Exceptions

ArgumentNullException

Thrown when image or any of its properties are null.

protected GalleryImage(GalleryImage original)

Parameters

original GalleryImage

Creates a new instance of idunno.Bluesky.Embed.Gallery.GalleryImage.Image

[JsonConstructor]
public GalleryImage(Blob image, string altText, AspectRatio aspectRatio)

Parameters

image Blob

A idunno.AtProto.Blob containing details of the uploaded image.

altText string

The AltText (for accessibility) for the image.

aspectRatio AspectRatio

The image's aspect ratio.

Exceptions

ArgumentNullException

Thrown when any of the parameters are null.

Creates a new instance of idunno.Bluesky.Embed.Gallery.GalleryImage.Image from the specified image.

public GalleryImage(EmbeddedImage image)

Parameters

image EmbeddedImage

The idunno.Bluesky.Embed.EmbeddedImage to create the gallery image from.

Exceptions

ArgumentNullException

Thrown when image or any of its properties are null.

protected GalleryImage(GalleryImage original)

Parameters

original GalleryImage

Creates a new instance of idunno.Bluesky.Embed.Gallery.GalleryImage.Image

[JsonConstructor]
public GalleryImage(Blob image, string altText, AspectRatio aspectRatio)

Parameters

image Blob

A idunno.AtProto.Blob containing details of the uploaded image.

altText string

The AltText (for accessibility) for the image.

aspectRatio AspectRatio

The image's aspect ratio.

Exceptions

ArgumentNullException

Thrown when any of the parameters are null.

Creates a new instance of idunno.Bluesky.Embed.Gallery.GalleryImage.Image from the specified image.

public GalleryImage(EmbeddedImage image)

Parameters

image EmbeddedImage

The idunno.Bluesky.Embed.EmbeddedImage to create the gallery image from.

Exceptions

ArgumentNullException

Thrown when image or any of its properties are null.

protected GalleryImage(GalleryImage original)

Parameters

original GalleryImage

Properties

Gets AltText (for accessibility) for the image.

[JsonInclude]
[JsonRequired]
[JsonPropertyName("alt")]
public string AltText { get; init; }

Property Value

string

Gets AltText (for accessibility) for the image.

[JsonInclude]
[JsonRequired]
[JsonPropertyName("alt")]
public string AltText { get; init; }

Property Value

string

Gets AltText (for accessibility) for the image.

[JsonInclude]
[JsonRequired]
[JsonPropertyName("alt")]
public string AltText { get; init; }

Property Value

string

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

AspectRatio
protected virtual Type EqualityContract { get; }

Property Value

Type
protected virtual Type EqualityContract { get; }

Property Value

Type
protected virtual Type EqualityContract { get; }

Property Value

Type

Gets a idunno.AtProto.Blob containing details of the uploaded image.

[JsonInclude]
[JsonRequired]
public Blob Image { get; init; }

Property Value

Blob

Gets a idunno.AtProto.Blob containing details of the uploaded image.

[JsonInclude]
[JsonRequired]
public Blob Image { get; init; }

Property Value

Blob

Gets a idunno.AtProto.Blob containing details of the uploaded image.

[JsonInclude]
[JsonRequired]
public Blob Image { get; init; }

Property Value

Blob

Methods

public virtual GalleryImage <Clone>$()

Returns

GalleryImage
public virtual GalleryImage <Clone>$()

Returns

GalleryImage
public virtual GalleryImage <Clone>$()

Returns

GalleryImage
public override bool Equals(object? obj)

Parameters

obj object?

Returns

bool
public virtual bool Equals(GalleryImage? other)

Parameters

other GalleryImage?

Returns

bool
public override bool Equals(object? obj)

Parameters

obj object?

Returns

bool
public virtual bool Equals(GalleryImage? other)

Parameters

other GalleryImage?

Returns

bool
public override bool Equals(object? obj)

Parameters

obj object?

Returns

bool
public virtual bool Equals(GalleryImage? other)

Parameters

other GalleryImage?

Returns

bool
public override int GetHashCode()

Returns

int
public override int GetHashCode()

Returns

int
public override int GetHashCode()

Returns

int
protected virtual bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool
protected virtual bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool
protected virtual bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool
public override string ToString()

Returns

string
public override string ToString()

Returns

string
public override string ToString()

Returns

string

Operators

public static bool operator ==(GalleryImage? left, GalleryImage? right)

Parameters

left GalleryImage?
right GalleryImage?

Returns

bool
public static bool operator ==(GalleryImage? left, GalleryImage? right)

Parameters

left GalleryImage?
right GalleryImage?

Returns

bool
public static bool operator ==(GalleryImage? left, GalleryImage? right)

Parameters

left GalleryImage?
right GalleryImage?

Returns

bool
public static bool operator !=(GalleryImage? left, GalleryImage? right)

Parameters

left GalleryImage?
right GalleryImage?

Returns

bool
public static bool operator !=(GalleryImage? left, GalleryImage? right)

Parameters

left GalleryImage?
right GalleryImage?

Returns

bool
public static bool operator !=(GalleryImage? left, GalleryImage? right)

Parameters

left GalleryImage?
right GalleryImage?

Returns

bool