Table of Contents

Class DraftEmbedVideo

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

Encapsulates a local embedded video, and captions if any, in a draft post.

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

Inheritance

Implements

Inherited Members

Constructors

DraftEmbedVideo(DraftEmbedLocalRef, string?, IReadOnlyList<DraftEmbedCaption>?)

Constructs a new instance of idunno.Bluesky.Drafts.DraftEmbedVideo with the specified local reference, optional alt text, and optional captions.

[JsonConstructor]
public DraftEmbedVideo(DraftEmbedLocalRef localRef, string? altText = null, IReadOnlyList<DraftEmbedCaption>? captions = 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.

captions IReadOnlyList<DraftEmbedCaption>?

A collection of idunno.Bluesky.Drafts.DraftEmbedCaption associated with the video embed. Maximum idunno.Bluesky.Maximum.DraftEmbedVideoCaptions captions.

Exceptions

ArgumentNullException

Thrown when localRef is null.

ArgumentOutOfRangeException

Thrown when altText length is greater than idunno.Bluesky.Maximum.DraftEmbedAltTextLengthInGraphemes grapheme clusters, or captions has more than idunno.Bluesky.Maximum.DraftEmbedVideoCaptions entries.

DraftEmbedVideo(DraftEmbedVideo)

protected DraftEmbedVideo(DraftEmbedVideo original)

Parameters

original DraftEmbedVideo

DraftEmbedVideo(DraftEmbedLocalRef, string?, IReadOnlyList<DraftEmbedCaption>?)

Constructs a new instance of idunno.Bluesky.Drafts.DraftEmbedVideo with the specified local reference, optional alt text, and optional captions.

[JsonConstructor]
public DraftEmbedVideo(DraftEmbedLocalRef localRef, string? altText = null, IReadOnlyList<DraftEmbedCaption>? captions = 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.

captions IReadOnlyList<DraftEmbedCaption>?

A collection of idunno.Bluesky.Drafts.DraftEmbedCaption associated with the video embed. Maximum idunno.Bluesky.Maximum.DraftEmbedVideoCaptions captions.

Exceptions

ArgumentNullException

Thrown when localRef is null.

ArgumentOutOfRangeException

Thrown when altText length is greater than idunno.Bluesky.Maximum.DraftEmbedAltTextLengthInGraphemes grapheme clusters, or captions has more than idunno.Bluesky.Maximum.DraftEmbedVideoCaptions entries.

DraftEmbedVideo(DraftEmbedVideo)

protected DraftEmbedVideo(DraftEmbedVideo original)

Parameters

original DraftEmbedVideo

DraftEmbedVideo(DraftEmbedLocalRef, string?, IReadOnlyList<DraftEmbedCaption>?)

Constructs a new instance of idunno.Bluesky.Drafts.DraftEmbedVideo with the specified local reference, optional alt text, and optional captions.

[JsonConstructor]
public DraftEmbedVideo(DraftEmbedLocalRef localRef, string? altText = null, IReadOnlyList<DraftEmbedCaption>? captions = 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.

captions IReadOnlyList<DraftEmbedCaption>?

A collection of idunno.Bluesky.Drafts.DraftEmbedCaption associated with the video embed. Maximum idunno.Bluesky.Maximum.DraftEmbedVideoCaptions captions.

Exceptions

ArgumentNullException

Thrown when localRef is null.

ArgumentOutOfRangeException

Thrown when altText length is greater than idunno.Bluesky.Maximum.DraftEmbedAltTextLengthInGraphemes grapheme clusters, or captions has more than idunno.Bluesky.Maximum.DraftEmbedVideoCaptions entries.

DraftEmbedVideo(DraftEmbedVideo)

protected DraftEmbedVideo(DraftEmbedVideo original)

Parameters

original DraftEmbedVideo

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.

Captions

A collection of idunno.Bluesky.Drafts.DraftEmbedCaption associated with the video embed.

public IReadOnlyList<DraftEmbedCaption>? Captions { get; }

Property Value

IReadOnlyList<DraftEmbedCaption>?

Captions

A collection of idunno.Bluesky.Drafts.DraftEmbedCaption associated with the video embed.

public IReadOnlyList<DraftEmbedCaption>? Captions { get; }

Property Value

IReadOnlyList<DraftEmbedCaption>?

Captions

A collection of idunno.Bluesky.Drafts.DraftEmbedCaption associated with the video embed.

public IReadOnlyList<DraftEmbedCaption>? Captions { get; }

Property Value

IReadOnlyList<DraftEmbedCaption>?

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 video.

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

Property Value

DraftEmbedLocalRef

Exceptions

ArgumentNullException

Thrown when setting to null.

LocalRef

Get the device local reference to an video.

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

Property Value

DraftEmbedLocalRef

Exceptions

ArgumentNullException

Thrown when setting to null.

LocalRef

Get the device local reference to an video.

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

Property Value

DraftEmbedLocalRef

Exceptions

ArgumentNullException

Thrown when setting to null.

Methods

<Clone>$()

public virtual DraftEmbedVideo <Clone>$()

Returns

DraftEmbedVideo

<Clone>$()

public virtual DraftEmbedVideo <Clone>$()

Returns

DraftEmbedVideo

<Clone>$()

public virtual DraftEmbedVideo <Clone>$()

Returns

DraftEmbedVideo

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object?

Returns

bool

Equals(DraftEmbedVideo?)

public virtual bool Equals(DraftEmbedVideo? other)

Parameters

other DraftEmbedVideo?

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object?

Returns

bool

Equals(DraftEmbedVideo?)

public virtual bool Equals(DraftEmbedVideo? other)

Parameters

other DraftEmbedVideo?

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object?

Returns

bool

Equals(DraftEmbedVideo?)

public virtual bool Equals(DraftEmbedVideo? other)

Parameters

other DraftEmbedVideo?

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 ==(DraftEmbedVideo?, DraftEmbedVideo?)

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

Parameters

left DraftEmbedVideo?
right DraftEmbedVideo?

Returns

bool

operator ==(DraftEmbedVideo?, DraftEmbedVideo?)

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

Parameters

left DraftEmbedVideo?
right DraftEmbedVideo?

Returns

bool

operator ==(DraftEmbedVideo?, DraftEmbedVideo?)

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

Parameters

left DraftEmbedVideo?
right DraftEmbedVideo?

Returns

bool

operator !=(DraftEmbedVideo?, DraftEmbedVideo?)

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

Parameters

left DraftEmbedVideo?
right DraftEmbedVideo?

Returns

bool

operator !=(DraftEmbedVideo?, DraftEmbedVideo?)

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

Parameters

left DraftEmbedVideo?
right DraftEmbedVideo?

Returns

bool

operator !=(DraftEmbedVideo?, DraftEmbedVideo?)

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

Parameters

left DraftEmbedVideo?
right DraftEmbedVideo?

Returns

bool