Table of Contents

Class DraftEmbedLocalRef

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

Encapsulates a local reference to a file to be embedded in a draft post.

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

Inheritance

Implements

Inherited Members

Constructors

DraftEmbedLocalRef(string)

Creates a new instance of idunno.Bluesky.Drafts.DraftEmbedLocalRef with the specified local path.

[JsonConstructor]
public DraftEmbedLocalRef(string path)

Parameters

path string

The local path to the file to be embedded.

Exceptions

ArgumentNullException

Thrown when path is null/

ArgumentException

Thrown when pathis empty or whitespace.

ArgumentOutOfRangeException

Thrown when the UTF-8 byte length of path is greater than idunno.Bluesky.Maximum.DraftEmbedLocalRefPathLengthInBytes or less than idunno.Bluesky.Maximum.DraftEmbedLocalRefPathMinimumLengthInBytes.

DraftEmbedLocalRef(DraftEmbedLocalRef)

protected DraftEmbedLocalRef(DraftEmbedLocalRef original)

Parameters

original DraftEmbedLocalRef

DraftEmbedLocalRef(string)

Creates a new instance of idunno.Bluesky.Drafts.DraftEmbedLocalRef with the specified local path.

[JsonConstructor]
public DraftEmbedLocalRef(string path)

Parameters

path string

The local path to the file to be embedded.

Exceptions

ArgumentNullException

Thrown when path is null/

ArgumentException

Thrown when pathis empty or whitespace.

ArgumentOutOfRangeException

Thrown when the UTF-8 byte length of path is greater than idunno.Bluesky.Maximum.DraftEmbedLocalRefPathLengthInBytes or less than idunno.Bluesky.Maximum.DraftEmbedLocalRefPathMinimumLengthInBytes.

DraftEmbedLocalRef(DraftEmbedLocalRef)

protected DraftEmbedLocalRef(DraftEmbedLocalRef original)

Parameters

original DraftEmbedLocalRef

DraftEmbedLocalRef(string)

Creates a new instance of idunno.Bluesky.Drafts.DraftEmbedLocalRef with the specified local path.

[JsonConstructor]
public DraftEmbedLocalRef(string path)

Parameters

path string

The local path to the file to be embedded.

Exceptions

ArgumentNullException

Thrown when path is null/

ArgumentException

Thrown when pathis empty or whitespace.

ArgumentOutOfRangeException

Thrown when the UTF-8 byte length of path is greater than idunno.Bluesky.Maximum.DraftEmbedLocalRefPathLengthInBytes or less than idunno.Bluesky.Maximum.DraftEmbedLocalRefPathMinimumLengthInBytes.

DraftEmbedLocalRef(DraftEmbedLocalRef)

protected DraftEmbedLocalRef(DraftEmbedLocalRef original)

Parameters

original DraftEmbedLocalRef

Properties

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

Path

Gets the local, on-device ref to file to be embedded. Embeds are currently device-bound for drafts.

[JsonRequired]
public string Path { get; init; }

Property Value

string

Exceptions

ArgumentNullException

Thrown when setting to null.

ArgumentException

Thrown when setting to an empty or whitespace value.

ArgumentOutOfRangeException

Thrown when the UTF-8 byte length of the value is greater than idunno.Bluesky.Maximum.DraftEmbedLocalRefPathLengthInBytes or less than idunno.Bluesky.Maximum.DraftEmbedLocalRefPathMinimumLengthInBytes.

Path

Gets the local, on-device ref to file to be embedded. Embeds are currently device-bound for drafts.

[JsonRequired]
public string Path { get; init; }

Property Value

string

Exceptions

ArgumentNullException

Thrown when setting to null.

ArgumentException

Thrown when setting to an empty or whitespace value.

ArgumentOutOfRangeException

Thrown when the UTF-8 byte length of the value is greater than idunno.Bluesky.Maximum.DraftEmbedLocalRefPathLengthInBytes or less than idunno.Bluesky.Maximum.DraftEmbedLocalRefPathMinimumLengthInBytes.

Path

Gets the local, on-device ref to file to be embedded. Embeds are currently device-bound for drafts.

[JsonRequired]
public string Path { get; init; }

Property Value

string

Exceptions

ArgumentNullException

Thrown when setting to null.

ArgumentException

Thrown when setting to an empty or whitespace value.

ArgumentOutOfRangeException

Thrown when the UTF-8 byte length of the value is greater than idunno.Bluesky.Maximum.DraftEmbedLocalRefPathLengthInBytes or less than idunno.Bluesky.Maximum.DraftEmbedLocalRefPathMinimumLengthInBytes.

Methods

<Clone>$()

public virtual DraftEmbedLocalRef <Clone>$()

Returns

DraftEmbedLocalRef

<Clone>$()

public virtual DraftEmbedLocalRef <Clone>$()

Returns

DraftEmbedLocalRef

<Clone>$()

public virtual DraftEmbedLocalRef <Clone>$()

Returns

DraftEmbedLocalRef

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object?

Returns

bool

Equals(DraftEmbedLocalRef?)

public virtual bool Equals(DraftEmbedLocalRef? other)

Parameters

other DraftEmbedLocalRef?

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object?

Returns

bool

Equals(DraftEmbedLocalRef?)

public virtual bool Equals(DraftEmbedLocalRef? other)

Parameters

other DraftEmbedLocalRef?

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object?

Returns

bool

Equals(DraftEmbedLocalRef?)

public virtual bool Equals(DraftEmbedLocalRef? other)

Parameters

other DraftEmbedLocalRef?

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

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

Parameters

left DraftEmbedLocalRef?
right DraftEmbedLocalRef?

Returns

bool

operator ==(DraftEmbedLocalRef?, DraftEmbedLocalRef?)

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

Parameters

left DraftEmbedLocalRef?
right DraftEmbedLocalRef?

Returns

bool

operator ==(DraftEmbedLocalRef?, DraftEmbedLocalRef?)

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

Parameters

left DraftEmbedLocalRef?
right DraftEmbedLocalRef?

Returns

bool

operator !=(DraftEmbedLocalRef?, DraftEmbedLocalRef?)

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

Parameters

left DraftEmbedLocalRef?
right DraftEmbedLocalRef?

Returns

bool

operator !=(DraftEmbedLocalRef?, DraftEmbedLocalRef?)

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

Parameters

left DraftEmbedLocalRef?
right DraftEmbedLocalRef?

Returns

bool

operator !=(DraftEmbedLocalRef?, DraftEmbedLocalRef?)

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

Parameters

left DraftEmbedLocalRef?
right DraftEmbedLocalRef?

Returns

bool