Table of Contents

Class DraftEmbedImage

Namespace
idunno.Bluesky.Drafts
Assembly
idunno.Bluesky.dll

Encapsulates a local embedded image in a draft post.

[JsonPolymorphic(UnknownDerivedTypeHandling = JsonUnknownDerivedTypeHandling.FallBackToNearestAncestor)]
[JsonDerivedType(typeof(DraftEmbedImage), "app.bsky.draft.defs#draftEmbedImage")]
public record DraftEmbedImage : IEquatable<DraftEmbedImage>

Inheritance

Implements

Inherited Members

Constructors

DraftEmbedImage(DraftEmbedLocalRef, string?)

Creates a new instance of idunno.Bluesky.Drafts.DraftEmbedImage with the specified local reference and optional alt text.

[JsonConstructor]
public DraftEmbedImage(DraftEmbedLocalRef localRef, string? altText = null)

Parameters

localRef DraftEmbedLocalRef

The device local reference to an image.

altText string?

The alt text for the image, if any. Maximum idunno.Bluesky.Maximum.DraftEmbedAltTextLengthInGraphemes grapheme clusters.

Exceptions

ArgumentNullException

Thrown when localRef is null.

ArgumentOutOfRangeException

Thrown when altText length is greater than idunno.Bluesky.Maximum.DraftEmbedAltTextLengthInGraphemes grapheme clusters.

DraftEmbedImage(DraftEmbedImage)

protected DraftEmbedImage(DraftEmbedImage original)

Parameters

original DraftEmbedImage

DraftEmbedImage(DraftEmbedLocalRef, string?)

Creates a new instance of idunno.Bluesky.Drafts.DraftEmbedImage with the specified local reference and optional alt text.

[JsonConstructor]
public DraftEmbedImage(DraftEmbedLocalRef localRef, string? altText = null)

Parameters

localRef DraftEmbedLocalRef

The device local reference to an image.

altText string?

The alt text for the image, if any. Maximum idunno.Bluesky.Maximum.DraftEmbedAltTextLengthInGraphemes grapheme clusters.

Exceptions

ArgumentNullException

Thrown when localRef is null.

ArgumentOutOfRangeException

Thrown when altText length is greater than idunno.Bluesky.Maximum.DraftEmbedAltTextLengthInGraphemes grapheme clusters.

DraftEmbedImage(DraftEmbedImage)

protected DraftEmbedImage(DraftEmbedImage original)

Parameters

original DraftEmbedImage

DraftEmbedImage(DraftEmbedLocalRef, string?)

Creates a new instance of idunno.Bluesky.Drafts.DraftEmbedImage with the specified local reference and optional alt text.

[JsonConstructor]
public DraftEmbedImage(DraftEmbedLocalRef localRef, string? altText = null)

Parameters

localRef DraftEmbedLocalRef

The device local reference to an image.

altText string?

The alt text for the image, if any. Maximum idunno.Bluesky.Maximum.DraftEmbedAltTextLengthInGraphemes grapheme clusters.

Exceptions

ArgumentNullException

Thrown when localRef is null.

ArgumentOutOfRangeException

Thrown when altText length is greater than idunno.Bluesky.Maximum.DraftEmbedAltTextLengthInGraphemes grapheme clusters.

DraftEmbedImage(DraftEmbedImage)

protected DraftEmbedImage(DraftEmbedImage original)

Parameters

original DraftEmbedImage

Properties

AltText

Gets or sets the alt text for the image, if any. Maximum idunno.Bluesky.Maximum.DraftEmbedAltTextLengthInGraphemes grapheme clusters.

[JsonPropertyName("alt")]
public string? AltText { get; set; }

Property Value

string?

Exceptions

ArgumentOutOfRangeException

Thrown when setting if the value length is greater than idunno.Bluesky.Maximum.DraftEmbedAltTextLengthInGraphemes grapheme clusters.

AltText

Gets or sets the alt text for the image, if any. Maximum idunno.Bluesky.Maximum.DraftEmbedAltTextLengthInGraphemes grapheme clusters.

[JsonPropertyName("alt")]
public string? AltText { get; set; }

Property Value

string?

Exceptions

ArgumentOutOfRangeException

Thrown when setting if the value length is greater than idunno.Bluesky.Maximum.DraftEmbedAltTextLengthInGraphemes grapheme clusters.

AltText

Gets or sets the alt text for the image, if any. Maximum idunno.Bluesky.Maximum.DraftEmbedAltTextLengthInGraphemes grapheme clusters.

[JsonPropertyName("alt")]
public string? AltText { get; set; }

Property Value

string?

Exceptions

ArgumentOutOfRangeException

Thrown when setting if the value length is greater than idunno.Bluesky.Maximum.DraftEmbedAltTextLengthInGraphemes grapheme clusters.

EqualityContract

protected virtual Type EqualityContract { get; }

Property Value

Type

EqualityContract

protected virtual Type EqualityContract { get; }

Property Value

Type

EqualityContract

protected virtual Type EqualityContract { get; }

Property Value

Type

LocalRef

Get the device local reference to an image.

[JsonRequired]
public DraftEmbedLocalRef LocalRef { get; init; }

Property Value

DraftEmbedLocalRef

Exceptions

ArgumentNullException

Thrown when setting to null.

LocalRef

Get the device local reference to an image.

[JsonRequired]
public DraftEmbedLocalRef LocalRef { get; init; }

Property Value

DraftEmbedLocalRef

Exceptions

ArgumentNullException

Thrown when setting to null.

LocalRef

Get the device local reference to an image.

[JsonRequired]
public DraftEmbedLocalRef LocalRef { get; init; }

Property Value

DraftEmbedLocalRef

Exceptions

ArgumentNullException

Thrown when setting to null.

Methods

<Clone>$()

public virtual DraftEmbedImage <Clone>$()

Returns

DraftEmbedImage

<Clone>$()

public virtual DraftEmbedImage <Clone>$()

Returns

DraftEmbedImage

<Clone>$()

public virtual DraftEmbedImage <Clone>$()

Returns

DraftEmbedImage

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object?

Returns

bool

Equals(DraftEmbedImage?)

public virtual bool Equals(DraftEmbedImage? other)

Parameters

other DraftEmbedImage?

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object?

Returns

bool

Equals(DraftEmbedImage?)

public virtual bool Equals(DraftEmbedImage? other)

Parameters

other DraftEmbedImage?

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object?

Returns

bool

Equals(DraftEmbedImage?)

public virtual bool Equals(DraftEmbedImage? other)

Parameters

other DraftEmbedImage?

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

GetHashCode()

public override int GetHashCode()

Returns

int

GetHashCode()

public override int GetHashCode()

Returns

int

PrintMembers(StringBuilder)

protected virtual bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

PrintMembers(StringBuilder)

protected virtual bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

PrintMembers(StringBuilder)

protected virtual bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

ToString()

public override string ToString()

Returns

string

ToString()

public override string ToString()

Returns

string

ToString()

public override string ToString()

Returns

string

Operators

operator ==(DraftEmbedImage?, DraftEmbedImage?)

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

Parameters

left DraftEmbedImage?
right DraftEmbedImage?

Returns

bool

operator ==(DraftEmbedImage?, DraftEmbedImage?)

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

Parameters

left DraftEmbedImage?
right DraftEmbedImage?

Returns

bool

operator ==(DraftEmbedImage?, DraftEmbedImage?)

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

Parameters

left DraftEmbedImage?
right DraftEmbedImage?

Returns

bool

operator !=(DraftEmbedImage?, DraftEmbedImage?)

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

Parameters

left DraftEmbedImage?
right DraftEmbedImage?

Returns

bool

operator !=(DraftEmbedImage?, DraftEmbedImage?)

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

Parameters

left DraftEmbedImage?
right DraftEmbedImage?

Returns

bool

operator !=(DraftEmbedImage?, DraftEmbedImage?)

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

Parameters

left DraftEmbedImage?
right DraftEmbedImage?

Returns

bool