Table of Contents

Class ViewImage

Namespace
idunno.Bluesky.Embed.Gallery
Assembly
idunno.Bluesky.dll

Encapsulates image properties returned in a gallery idunno.Bluesky.Embed.Gallery.View.

public record ViewImage : IEquatable<ViewImage>

Inheritance

Implements

Inherited Members

Constructors

Creates a new instance of idunno.Bluesky.Embed.Gallery.ViewImage

[JsonConstructor]
public ViewImage(Uri thumbnail, Uri fullSize, string altText, AspectRatio aspectRatio)

Parameters

thumbnail Uri

A fully-qualified URI where a thumbnail of the image can be fetched. For example, CDN location provided by the App View.

fullSize Uri

A fully-qualified URI where a large version of the image can be fetched. May or may not be the exact original blob. For example, CDN location provided by the App View.

altText string

Alt text description of the image, for accessibility.

aspectRatio AspectRatio

The aspect ratio of the image.

Remarks

The lexicon declares thumbnail and fullSize as uri formatted strings, and does not require them to be absolute, so no absolute URI validation is performed.

Exceptions

ArgumentNullException

Thrown when any of the parameters are null.

protected ViewImage(ViewImage original)

Parameters

original ViewImage

Creates a new instance of idunno.Bluesky.Embed.Gallery.ViewImage

[JsonConstructor]
public ViewImage(Uri thumbnail, Uri fullSize, string altText, AspectRatio aspectRatio)

Parameters

thumbnail Uri

A fully-qualified URI where a thumbnail of the image can be fetched. For example, CDN location provided by the App View.

fullSize Uri

A fully-qualified URI where a large version of the image can be fetched. May or may not be the exact original blob. For example, CDN location provided by the App View.

altText string

Alt text description of the image, for accessibility.

aspectRatio AspectRatio

The aspect ratio of the image.

Remarks

The lexicon declares thumbnail and fullSize as uri formatted strings, and does not require them to be absolute, so no absolute URI validation is performed.

Exceptions

ArgumentNullException

Thrown when any of the parameters are null.

protected ViewImage(ViewImage original)

Parameters

original ViewImage

Creates a new instance of idunno.Bluesky.Embed.Gallery.ViewImage

[JsonConstructor]
public ViewImage(Uri thumbnail, Uri fullSize, string altText, AspectRatio aspectRatio)

Parameters

thumbnail Uri

A fully-qualified URI where a thumbnail of the image can be fetched. For example, CDN location provided by the App View.

fullSize Uri

A fully-qualified URI where a large version of the image can be fetched. May or may not be the exact original blob. For example, CDN location provided by the App View.

altText string

Alt text description of the image, for accessibility.

aspectRatio AspectRatio

The aspect ratio of the image.

Remarks

The lexicon declares thumbnail and fullSize as uri formatted strings, and does not require them to be absolute, so no absolute URI validation is performed.

Exceptions

ArgumentNullException

Thrown when any of the parameters are null.

protected ViewImage(ViewImage original)

Parameters

original ViewImage

Properties

Gets the alt text description of the image, for accessibility.

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

Property Value

string

Gets the alt text description of the image, for accessibility.

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

Property Value

string

Gets the alt text description of the image, for accessibility.

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

Property Value

string

Gets the aspect ratio of the image.

[JsonRequired]
public AspectRatio AspectRatio { get; init; }

Property Value

AspectRatio

Gets the aspect ratio of the image.

[JsonRequired]
public AspectRatio AspectRatio { get; init; }

Property Value

AspectRatio

Gets the aspect ratio of the image.

[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 the fully-qualified URI where a large version of the image can be fetched.

[JsonPropertyName("fullsize")]
[JsonRequired]
public Uri FullSize { get; init; }

Property Value

Uri

Gets the fully-qualified URI where a large version of the image can be fetched.

[JsonPropertyName("fullsize")]
[JsonRequired]
public Uri FullSize { get; init; }

Property Value

Uri

Gets the fully-qualified URI where a large version of the image can be fetched.

[JsonPropertyName("fullsize")]
[JsonRequired]
public Uri FullSize { get; init; }

Property Value

Uri

Gets the fully-qualified URI where a thumbnail of the image can be fetched. For example, CDN location provided by the App View.

[JsonRequired]
public Uri Thumbnail { get; init; }

Property Value

Uri

Gets the fully-qualified URI where a thumbnail of the image can be fetched. For example, CDN location provided by the App View.

[JsonRequired]
public Uri Thumbnail { get; init; }

Property Value

Uri

Gets the fully-qualified URI where a thumbnail of the image can be fetched. For example, CDN location provided by the App View.

[JsonRequired]
public Uri Thumbnail { get; init; }

Property Value

Uri

Methods

public virtual ViewImage <Clone>$()

Returns

ViewImage
public virtual ViewImage <Clone>$()

Returns

ViewImage
public virtual ViewImage <Clone>$()

Returns

ViewImage
public override bool Equals(object? obj)

Parameters

obj object?

Returns

bool
public virtual bool Equals(ViewImage? other)

Parameters

other ViewImage?

Returns

bool
public override bool Equals(object? obj)

Parameters

obj object?

Returns

bool
public virtual bool Equals(ViewImage? other)

Parameters

other ViewImage?

Returns

bool
public override bool Equals(object? obj)

Parameters

obj object?

Returns

bool
public virtual bool Equals(ViewImage? other)

Parameters

other ViewImage?

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 ==(ViewImage? left, ViewImage? right)

Parameters

left ViewImage?
right ViewImage?

Returns

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

Parameters

left ViewImage?
right ViewImage?

Returns

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

Parameters

left ViewImage?
right ViewImage?

Returns

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

Parameters

left ViewImage?
right ViewImage?

Returns

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

Parameters

left ViewImage?
right ViewImage?

Returns

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

Parameters

left ViewImage?
right ViewImage?

Returns

bool