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
ViewImage(Uri, Uri, string, AspectRatio)
Creates a new instance of idunno.Bluesky.Embed.Gallery.ViewImage
[JsonConstructor]
public ViewImage(Uri thumbnail, Uri fullSize, string altText, AspectRatio aspectRatio)Parameters
thumbnailUri-
A fully-qualified URI where a thumbnail of the image can be fetched. For example, CDN location provided by the App View.
fullSizeUri-
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.
altTextstring-
Alt text description of the image, for accessibility.
aspectRatioAspectRatio-
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.
ViewImage(ViewImage)
protected ViewImage(ViewImage original)Parameters
originalViewImage
ViewImage(Uri, Uri, string, AspectRatio)
Creates a new instance of idunno.Bluesky.Embed.Gallery.ViewImage
[JsonConstructor]
public ViewImage(Uri thumbnail, Uri fullSize, string altText, AspectRatio aspectRatio)Parameters
thumbnailUri-
A fully-qualified URI where a thumbnail of the image can be fetched. For example, CDN location provided by the App View.
fullSizeUri-
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.
altTextstring-
Alt text description of the image, for accessibility.
aspectRatioAspectRatio-
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.
ViewImage(ViewImage)
protected ViewImage(ViewImage original)Parameters
originalViewImage
ViewImage(Uri, Uri, string, AspectRatio)
Creates a new instance of idunno.Bluesky.Embed.Gallery.ViewImage
[JsonConstructor]
public ViewImage(Uri thumbnail, Uri fullSize, string altText, AspectRatio aspectRatio)Parameters
thumbnailUri-
A fully-qualified URI where a thumbnail of the image can be fetched. For example, CDN location provided by the App View.
fullSizeUri-
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.
altTextstring-
Alt text description of the image, for accessibility.
aspectRatioAspectRatio-
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.
ViewImage(ViewImage)
protected ViewImage(ViewImage original)Parameters
originalViewImage
Properties
AltText
Gets the alt text description of the image, for accessibility.
[JsonPropertyName("alt")]
[JsonRequired]
public string AltText { get; init; }Property Value
AltText
Gets the alt text description of the image, for accessibility.
[JsonPropertyName("alt")]
[JsonRequired]
public string AltText { get; init; }Property Value
AltText
Gets the alt text description of the image, for accessibility.
[JsonPropertyName("alt")]
[JsonRequired]
public string AltText { 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
Gets the aspect ratio of the image.
[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
FullSize
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
FullSize
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
FullSize
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
Thumbnail
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
Thumbnail
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
Thumbnail
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
<Clone>$()
public virtual ViewImage <Clone>$()Returns
<Clone>$()
public virtual ViewImage <Clone>$()Returns
<Clone>$()
public virtual ViewImage <Clone>$()Returns
Equals(object?)
public override bool Equals(object? obj)Parameters
objobject?
Returns
Equals(ViewImage?)
public virtual bool Equals(ViewImage? other)Parameters
otherViewImage?
Returns
Equals(object?)
public override bool Equals(object? obj)Parameters
objobject?
Returns
Equals(ViewImage?)
public virtual bool Equals(ViewImage? other)Parameters
otherViewImage?
Returns
Equals(object?)
public override bool Equals(object? obj)Parameters
objobject?
Returns
Equals(ViewImage?)
public virtual bool Equals(ViewImage? other)Parameters
otherViewImage?
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 ==(ViewImage?, ViewImage?)
public static bool operator ==(ViewImage? left, ViewImage? right)Parameters
Returns
operator ==(ViewImage?, ViewImage?)
public static bool operator ==(ViewImage? left, ViewImage? right)Parameters
Returns
operator ==(ViewImage?, ViewImage?)
public static bool operator ==(ViewImage? left, ViewImage? right)Parameters
Returns
operator !=(ViewImage?, ViewImage?)
public static bool operator !=(ViewImage? left, ViewImage? right)Parameters
Returns
operator !=(ViewImage?, ViewImage?)
public static bool operator !=(ViewImage? left, ViewImage? right)Parameters
Returns
operator !=(ViewImage?, ViewImage?)
public static bool operator !=(ViewImage? left, ViewImage? right)