Class DraftEmbedCaption
- Namespace
- idunno.Bluesky.Drafts
- Assembly
- idunno.Bluesky.dll
Represents an embedded caption associated with a draft.
[JsonPolymorphic(UnknownDerivedTypeHandling = JsonUnknownDerivedTypeHandling.FallBackToNearestAncestor)]
[JsonDerivedType(typeof(DraftEmbedCaption), "app.bsky.draft.defs#draftEmbedCaption")]
public record DraftEmbedCaption : IEquatable<DraftEmbedCaption>Inheritance
Implements
Inherited Members
Constructors
DraftEmbedCaption(string, string)
Creates a new instance of idunno.Bluesky.Drafts.DraftEmbedCaption with the specified content and language.
[JsonConstructor]
public DraftEmbedCaption(string content, string lang)Parameters
Exceptions
- ArgumentException
-
Thrown when
contentorlangis null or whitespace. - ArgumentOutOfRangeException
-
Thrown when the UTF-8 byte length of
contentis greater than idunno.Bluesky.Maximum.DraftEmbedCaptionContentLengthInBytes.
DraftEmbedCaption(DraftEmbedCaption)
protected DraftEmbedCaption(DraftEmbedCaption original)Parameters
originalDraftEmbedCaption
DraftEmbedCaption(string, string)
Creates a new instance of idunno.Bluesky.Drafts.DraftEmbedCaption with the specified content and language.
[JsonConstructor]
public DraftEmbedCaption(string content, string lang)Parameters
Exceptions
- ArgumentException
-
Thrown when
contentorlangis null or whitespace. - ArgumentOutOfRangeException
-
Thrown when the UTF-8 byte length of
contentis greater than idunno.Bluesky.Maximum.DraftEmbedCaptionContentLengthInBytes.
DraftEmbedCaption(DraftEmbedCaption)
protected DraftEmbedCaption(DraftEmbedCaption original)Parameters
originalDraftEmbedCaption
DraftEmbedCaption(string, string)
Creates a new instance of idunno.Bluesky.Drafts.DraftEmbedCaption with the specified content and language.
[JsonConstructor]
public DraftEmbedCaption(string content, string lang)Parameters
Exceptions
- ArgumentException
-
Thrown when
contentorlangis null or whitespace. - ArgumentOutOfRangeException
-
Thrown when the UTF-8 byte length of
contentis greater than idunno.Bluesky.Maximum.DraftEmbedCaptionContentLengthInBytes.
DraftEmbedCaption(DraftEmbedCaption)
protected DraftEmbedCaption(DraftEmbedCaption original)Parameters
originalDraftEmbedCaption
Properties
Content
Gets or sets the caption content.
[JsonRequired]
public string Content { get; set; }Property Value
Exceptions
- ArgumentException
-
Thrown when setting if the value is null or whitespace.
- ArgumentOutOfRangeException
-
Thrown when setting if the value length is greater than idunno.Bluesky.Maximum.DraftEmbedCaptionContentLengthInBytes UTF-8 bytes.
Content
Gets or sets the caption content.
[JsonRequired]
public string Content { get; set; }Property Value
Exceptions
- ArgumentException
-
Thrown when setting if the value is null or whitespace.
- ArgumentOutOfRangeException
-
Thrown when setting if the value length is greater than idunno.Bluesky.Maximum.DraftEmbedCaptionContentLengthInBytes UTF-8 bytes.
Content
Gets or sets the caption content.
[JsonRequired]
public string Content { get; set; }Property Value
Exceptions
- ArgumentException
-
Thrown when setting if the value is null or whitespace.
- ArgumentOutOfRangeException
-
Thrown when setting if the value length is greater than idunno.Bluesky.Maximum.DraftEmbedCaptionContentLengthInBytes UTF-8 bytes.
EqualityContract
protected virtual Type EqualityContract { get; }Property Value
EqualityContract
protected virtual Type EqualityContract { get; }Property Value
EqualityContract
protected virtual Type EqualityContract { get; }Property Value
Lang
Gets or sets the language of the caption in RFC5646 format.
[JsonRequired]
public string Lang { get; set; }Property Value
Exceptions
- ArgumentException
-
Thrown when setting if the value is null or whitespace.
Lang
Gets or sets the language of the caption in RFC5646 format.
[JsonRequired]
public string Lang { get; set; }Property Value
Exceptions
- ArgumentException
-
Thrown when setting if the value is null or whitespace.
Lang
Gets or sets the language of the caption in RFC5646 format.
[JsonRequired]
public string Lang { get; set; }Property Value
Exceptions
- ArgumentException
-
Thrown when setting if the value is null or whitespace.
Methods
<Clone>$()
public virtual DraftEmbedCaption <Clone>$()Returns
<Clone>$()
public virtual DraftEmbedCaption <Clone>$()Returns
<Clone>$()
public virtual DraftEmbedCaption <Clone>$()Returns
Equals(object?)
public override bool Equals(object? obj)Parameters
objobject?
Returns
Equals(DraftEmbedCaption?)
public virtual bool Equals(DraftEmbedCaption? other)Parameters
otherDraftEmbedCaption?
Returns
Equals(object?)
public override bool Equals(object? obj)Parameters
objobject?
Returns
Equals(DraftEmbedCaption?)
public virtual bool Equals(DraftEmbedCaption? other)Parameters
otherDraftEmbedCaption?
Returns
Equals(object?)
public override bool Equals(object? obj)Parameters
objobject?
Returns
Equals(DraftEmbedCaption?)
public virtual bool Equals(DraftEmbedCaption? other)Parameters
otherDraftEmbedCaption?
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 ==(DraftEmbedCaption?, DraftEmbedCaption?)
public static bool operator ==(DraftEmbedCaption? left, DraftEmbedCaption? right)Parameters
leftDraftEmbedCaption?rightDraftEmbedCaption?
Returns
operator ==(DraftEmbedCaption?, DraftEmbedCaption?)
public static bool operator ==(DraftEmbedCaption? left, DraftEmbedCaption? right)Parameters
leftDraftEmbedCaption?rightDraftEmbedCaption?
Returns
operator ==(DraftEmbedCaption?, DraftEmbedCaption?)
public static bool operator ==(DraftEmbedCaption? left, DraftEmbedCaption? right)Parameters
leftDraftEmbedCaption?rightDraftEmbedCaption?
Returns
operator !=(DraftEmbedCaption?, DraftEmbedCaption?)
public static bool operator !=(DraftEmbedCaption? left, DraftEmbedCaption? right)Parameters
leftDraftEmbedCaption?rightDraftEmbedCaption?
Returns
operator !=(DraftEmbedCaption?, DraftEmbedCaption?)
public static bool operator !=(DraftEmbedCaption? left, DraftEmbedCaption? right)Parameters
leftDraftEmbedCaption?rightDraftEmbedCaption?
Returns
operator !=(DraftEmbedCaption?, DraftEmbedCaption?)
public static bool operator !=(DraftEmbedCaption? left, DraftEmbedCaption? right)Parameters
leftDraftEmbedCaption?rightDraftEmbedCaption?