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
localRefDraftEmbedLocalRef-
The device local reference to an image.
altTextstring?-
The alt text for the image, if any. Maximum idunno.Bluesky.Maximum.DraftEmbedAltTextLengthInGraphemes grapheme clusters.
captionsIReadOnlyList<DraftEmbedCaption>?-
A collection of idunno.Bluesky.Drafts.DraftEmbedCaption associated with the video embed. Maximum idunno.Bluesky.Maximum.DraftEmbedVideoCaptions captions.
Exceptions
- ArgumentNullException
-
Thrown when
localRefis null. - ArgumentOutOfRangeException
-
Thrown when
altTextlength is greater than idunno.Bluesky.Maximum.DraftEmbedAltTextLengthInGraphemes grapheme clusters, orcaptionshas more than idunno.Bluesky.Maximum.DraftEmbedVideoCaptions entries.
DraftEmbedVideo(DraftEmbedVideo)
protected DraftEmbedVideo(DraftEmbedVideo original)Parameters
originalDraftEmbedVideo
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
localRefDraftEmbedLocalRef-
The device local reference to an image.
altTextstring?-
The alt text for the image, if any. Maximum idunno.Bluesky.Maximum.DraftEmbedAltTextLengthInGraphemes grapheme clusters.
captionsIReadOnlyList<DraftEmbedCaption>?-
A collection of idunno.Bluesky.Drafts.DraftEmbedCaption associated with the video embed. Maximum idunno.Bluesky.Maximum.DraftEmbedVideoCaptions captions.
Exceptions
- ArgumentNullException
-
Thrown when
localRefis null. - ArgumentOutOfRangeException
-
Thrown when
altTextlength is greater than idunno.Bluesky.Maximum.DraftEmbedAltTextLengthInGraphemes grapheme clusters, orcaptionshas more than idunno.Bluesky.Maximum.DraftEmbedVideoCaptions entries.
DraftEmbedVideo(DraftEmbedVideo)
protected DraftEmbedVideo(DraftEmbedVideo original)Parameters
originalDraftEmbedVideo
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
localRefDraftEmbedLocalRef-
The device local reference to an image.
altTextstring?-
The alt text for the image, if any. Maximum idunno.Bluesky.Maximum.DraftEmbedAltTextLengthInGraphemes grapheme clusters.
captionsIReadOnlyList<DraftEmbedCaption>?-
A collection of idunno.Bluesky.Drafts.DraftEmbedCaption associated with the video embed. Maximum idunno.Bluesky.Maximum.DraftEmbedVideoCaptions captions.
Exceptions
- ArgumentNullException
-
Thrown when
localRefis null. - ArgumentOutOfRangeException
-
Thrown when
altTextlength is greater than idunno.Bluesky.Maximum.DraftEmbedAltTextLengthInGraphemes grapheme clusters, orcaptionshas more than idunno.Bluesky.Maximum.DraftEmbedVideoCaptions entries.
DraftEmbedVideo(DraftEmbedVideo)
protected DraftEmbedVideo(DraftEmbedVideo original)Parameters
originalDraftEmbedVideo
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
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
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
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
Captions
A collection of idunno.Bluesky.Drafts.DraftEmbedCaption associated with the video embed.
public IReadOnlyList<DraftEmbedCaption>? Captions { get; }Property Value
Captions
A collection of idunno.Bluesky.Drafts.DraftEmbedCaption associated with the video embed.
public IReadOnlyList<DraftEmbedCaption>? Captions { get; }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
LocalRef
Get the device local reference to an video.
[JsonRequired]
public DraftEmbedLocalRef LocalRef { get; init; }Property Value
Exceptions
- ArgumentNullException
-
Thrown when setting to null.
LocalRef
Get the device local reference to an video.
[JsonRequired]
public DraftEmbedLocalRef LocalRef { get; init; }Property Value
Exceptions
- ArgumentNullException
-
Thrown when setting to null.
LocalRef
Get the device local reference to an video.
[JsonRequired]
public DraftEmbedLocalRef LocalRef { get; init; }Property Value
Exceptions
- ArgumentNullException
-
Thrown when setting to null.
Methods
<Clone>$()
public virtual DraftEmbedVideo <Clone>$()Returns
<Clone>$()
public virtual DraftEmbedVideo <Clone>$()Returns
<Clone>$()
public virtual DraftEmbedVideo <Clone>$()Returns
Equals(object?)
public override bool Equals(object? obj)Parameters
objobject?
Returns
Equals(DraftEmbedVideo?)
public virtual bool Equals(DraftEmbedVideo? other)Parameters
otherDraftEmbedVideo?
Returns
Equals(object?)
public override bool Equals(object? obj)Parameters
objobject?
Returns
Equals(DraftEmbedVideo?)
public virtual bool Equals(DraftEmbedVideo? other)Parameters
otherDraftEmbedVideo?
Returns
Equals(object?)
public override bool Equals(object? obj)Parameters
objobject?
Returns
Equals(DraftEmbedVideo?)
public virtual bool Equals(DraftEmbedVideo? other)Parameters
otherDraftEmbedVideo?
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 ==(DraftEmbedVideo?, DraftEmbedVideo?)
public static bool operator ==(DraftEmbedVideo? left, DraftEmbedVideo? right)Parameters
leftDraftEmbedVideo?rightDraftEmbedVideo?
Returns
operator ==(DraftEmbedVideo?, DraftEmbedVideo?)
public static bool operator ==(DraftEmbedVideo? left, DraftEmbedVideo? right)Parameters
leftDraftEmbedVideo?rightDraftEmbedVideo?
Returns
operator ==(DraftEmbedVideo?, DraftEmbedVideo?)
public static bool operator ==(DraftEmbedVideo? left, DraftEmbedVideo? right)Parameters
leftDraftEmbedVideo?rightDraftEmbedVideo?
Returns
operator !=(DraftEmbedVideo?, DraftEmbedVideo?)
public static bool operator !=(DraftEmbedVideo? left, DraftEmbedVideo? right)Parameters
leftDraftEmbedVideo?rightDraftEmbedVideo?
Returns
operator !=(DraftEmbedVideo?, DraftEmbedVideo?)
public static bool operator !=(DraftEmbedVideo? left, DraftEmbedVideo? right)Parameters
leftDraftEmbedVideo?rightDraftEmbedVideo?
Returns
operator !=(DraftEmbedVideo?, DraftEmbedVideo?)
public static bool operator !=(DraftEmbedVideo? left, DraftEmbedVideo? right)Parameters
leftDraftEmbedVideo?rightDraftEmbedVideo?