Table of Contents

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

content string

The caption content.

lang string

The caption language.

Exceptions

ArgumentException

Thrown when content or lang is null or whitespace.

ArgumentOutOfRangeException

Thrown when the UTF-8 byte length of content is greater than idunno.Bluesky.Maximum.DraftEmbedCaptionContentLengthInBytes.

DraftEmbedCaption(DraftEmbedCaption)

protected DraftEmbedCaption(DraftEmbedCaption original)

Parameters

original DraftEmbedCaption

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

content string

The caption content.

lang string

The caption language.

Exceptions

ArgumentException

Thrown when content or lang is null or whitespace.

ArgumentOutOfRangeException

Thrown when the UTF-8 byte length of content is greater than idunno.Bluesky.Maximum.DraftEmbedCaptionContentLengthInBytes.

DraftEmbedCaption(DraftEmbedCaption)

protected DraftEmbedCaption(DraftEmbedCaption original)

Parameters

original DraftEmbedCaption

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

content string

The caption content.

lang string

The caption language.

Exceptions

ArgumentException

Thrown when content or lang is null or whitespace.

ArgumentOutOfRangeException

Thrown when the UTF-8 byte length of content is greater than idunno.Bluesky.Maximum.DraftEmbedCaptionContentLengthInBytes.

DraftEmbedCaption(DraftEmbedCaption)

protected DraftEmbedCaption(DraftEmbedCaption original)

Parameters

original DraftEmbedCaption

Properties

Content

Gets or sets the caption content.

[JsonRequired]
public string Content { get; set; }

Property Value

string

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

string

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

string

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

Type

EqualityContract

protected virtual Type EqualityContract { get; }

Property Value

Type

EqualityContract

protected virtual Type EqualityContract { get; }

Property Value

Type

Lang

Gets or sets the language of the caption in RFC5646 format.

[JsonRequired]
public string Lang { get; set; }

Property Value

string

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

string

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

string

Exceptions

ArgumentException

Thrown when setting if the value is null or whitespace.

Methods

<Clone>$()

public virtual DraftEmbedCaption <Clone>$()

Returns

DraftEmbedCaption

<Clone>$()

public virtual DraftEmbedCaption <Clone>$()

Returns

DraftEmbedCaption

<Clone>$()

public virtual DraftEmbedCaption <Clone>$()

Returns

DraftEmbedCaption

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object?

Returns

bool

Equals(DraftEmbedCaption?)

public virtual bool Equals(DraftEmbedCaption? other)

Parameters

other DraftEmbedCaption?

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object?

Returns

bool

Equals(DraftEmbedCaption?)

public virtual bool Equals(DraftEmbedCaption? other)

Parameters

other DraftEmbedCaption?

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object?

Returns

bool

Equals(DraftEmbedCaption?)

public virtual bool Equals(DraftEmbedCaption? other)

Parameters

other DraftEmbedCaption?

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

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

Parameters

left DraftEmbedCaption?
right DraftEmbedCaption?

Returns

bool

operator ==(DraftEmbedCaption?, DraftEmbedCaption?)

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

Parameters

left DraftEmbedCaption?
right DraftEmbedCaption?

Returns

bool

operator ==(DraftEmbedCaption?, DraftEmbedCaption?)

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

Parameters

left DraftEmbedCaption?
right DraftEmbedCaption?

Returns

bool

operator !=(DraftEmbedCaption?, DraftEmbedCaption?)

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

Parameters

left DraftEmbedCaption?
right DraftEmbedCaption?

Returns

bool

operator !=(DraftEmbedCaption?, DraftEmbedCaption?)

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

Parameters

left DraftEmbedCaption?
right DraftEmbedCaption?

Returns

bool

operator !=(DraftEmbedCaption?, DraftEmbedCaption?)

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

Parameters

left DraftEmbedCaption?
right DraftEmbedCaption?

Returns

bool