Class EmbeddedImage
- Namespace
- idunno.Bluesky.Embed
- Assembly
- idunno.Bluesky.dll
Encapsulates information about an embedded image.
public record EmbeddedImage : IEquatable<EmbeddedImage>Inheritance
Implements
Inherited Members
Constructors
EmbeddedImage(Blob, string, AspectRatio?)
Creates a new instance of idunno.Bluesky.Embed.EmbeddedImage
[JsonConstructor]
public EmbeddedImage(Blob image, string altText, AspectRatio? aspectRatio = null)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
imageoraltTextis null.
EmbeddedImage(EmbeddedImage)
protected EmbeddedImage(EmbeddedImage original)Parameters
originalEmbeddedImage
EmbeddedImage(Blob, string, AspectRatio?)
Creates a new instance of idunno.Bluesky.Embed.EmbeddedImage
[JsonConstructor]
public EmbeddedImage(Blob image, string altText, AspectRatio? aspectRatio = null)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
imageoraltTextis null.
EmbeddedImage(EmbeddedImage)
protected EmbeddedImage(EmbeddedImage original)Parameters
originalEmbeddedImage
EmbeddedImage(Blob, string, AspectRatio?)
Creates a new instance of idunno.Bluesky.Embed.EmbeddedImage
[JsonConstructor]
public EmbeddedImage(Blob image, string altText, AspectRatio? aspectRatio = null)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
imageoraltTextis null.
EmbeddedImage(EmbeddedImage)
protected EmbeddedImage(EmbeddedImage original)Parameters
originalEmbeddedImage
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, if any.
[JsonInclude]
public AspectRatio? AspectRatio { get; init; }Property Value
AspectRatio
The image's aspect ratio, if any.
[JsonInclude]
public AspectRatio? AspectRatio { get; init; }Property Value
AspectRatio
The image's aspect ratio, if any.
[JsonInclude]
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 EmbeddedImage <Clone>$()Returns
<Clone>$()
public virtual EmbeddedImage <Clone>$()Returns
<Clone>$()
public virtual EmbeddedImage <Clone>$()Returns
Equals(object?)
public override bool Equals(object? obj)Parameters
objobject?
Returns
Equals(EmbeddedImage?)
public virtual bool Equals(EmbeddedImage? other)Parameters
otherEmbeddedImage?
Returns
Equals(object?)
public override bool Equals(object? obj)Parameters
objobject?
Returns
Equals(EmbeddedImage?)
public virtual bool Equals(EmbeddedImage? other)Parameters
otherEmbeddedImage?
Returns
Equals(object?)
public override bool Equals(object? obj)Parameters
objobject?
Returns
Equals(EmbeddedImage?)
public virtual bool Equals(EmbeddedImage? other)Parameters
otherEmbeddedImage?
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 ==(EmbeddedImage?, EmbeddedImage?)
public static bool operator ==(EmbeddedImage? left, EmbeddedImage? right)Parameters
leftEmbeddedImage?rightEmbeddedImage?
Returns
operator ==(EmbeddedImage?, EmbeddedImage?)
public static bool operator ==(EmbeddedImage? left, EmbeddedImage? right)Parameters
leftEmbeddedImage?rightEmbeddedImage?
Returns
operator ==(EmbeddedImage?, EmbeddedImage?)
public static bool operator ==(EmbeddedImage? left, EmbeddedImage? right)Parameters
leftEmbeddedImage?rightEmbeddedImage?
Returns
operator !=(EmbeddedImage?, EmbeddedImage?)
public static bool operator !=(EmbeddedImage? left, EmbeddedImage? right)Parameters
leftEmbeddedImage?rightEmbeddedImage?
Returns
operator !=(EmbeddedImage?, EmbeddedImage?)
public static bool operator !=(EmbeddedImage? left, EmbeddedImage? right)Parameters
leftEmbeddedImage?rightEmbeddedImage?
Returns
operator !=(EmbeddedImage?, EmbeddedImage?)
public static bool operator !=(EmbeddedImage? left, EmbeddedImage? right)Parameters
leftEmbeddedImage?rightEmbeddedImage?