Table of Contents

Class DraftEmbedRecord

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

Encapsulates a reference to an idunno.AtProto.Repo.AtProtoRecord in a draft post.

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

Inheritance

Implements

Inherited Members

Constructors

DraftEmbedRecord(StrongReference)

Creates a new instance of idunno.Bluesky.Drafts.DraftEmbedRecord with the specified strong reference to a record.

[JsonConstructor]
public DraftEmbedRecord(StrongReference record)

Parameters

record StrongReference

The record to embed.

Exceptions

ArgumentNullException

Thrown when record is null.

DraftEmbedRecord(DraftEmbedRecord)

protected DraftEmbedRecord(DraftEmbedRecord original)

Parameters

original DraftEmbedRecord

DraftEmbedRecord(StrongReference)

Creates a new instance of idunno.Bluesky.Drafts.DraftEmbedRecord with the specified strong reference to a record.

[JsonConstructor]
public DraftEmbedRecord(StrongReference record)

Parameters

record StrongReference

The record to embed.

Exceptions

ArgumentNullException

Thrown when record is null.

DraftEmbedRecord(DraftEmbedRecord)

protected DraftEmbedRecord(DraftEmbedRecord original)

Parameters

original DraftEmbedRecord

DraftEmbedRecord(StrongReference)

Creates a new instance of idunno.Bluesky.Drafts.DraftEmbedRecord with the specified strong reference to a record.

[JsonConstructor]
public DraftEmbedRecord(StrongReference record)

Parameters

record StrongReference

The record to embed.

Exceptions

ArgumentNullException

Thrown when record is null.

DraftEmbedRecord(DraftEmbedRecord)

protected DraftEmbedRecord(DraftEmbedRecord original)

Parameters

original DraftEmbedRecord

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

Record

Gets a strong reference to the record to embed.

[JsonRequired]
public StrongReference Record { get; init; }

Property Value

StrongReference

Exceptions

ArgumentNullException

Thrown when setting to null.

Record

Gets a strong reference to the record to embed.

[JsonRequired]
public StrongReference Record { get; init; }

Property Value

StrongReference

Exceptions

ArgumentNullException

Thrown when setting to null.

Record

Gets a strong reference to the record to embed.

[JsonRequired]
public StrongReference Record { get; init; }

Property Value

StrongReference

Exceptions

ArgumentNullException

Thrown when setting to null.

Methods

<Clone>$()

public virtual DraftEmbedRecord <Clone>$()

Returns

DraftEmbedRecord

<Clone>$()

public virtual DraftEmbedRecord <Clone>$()

Returns

DraftEmbedRecord

<Clone>$()

public virtual DraftEmbedRecord <Clone>$()

Returns

DraftEmbedRecord

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object?

Returns

bool

Equals(DraftEmbedRecord?)

public virtual bool Equals(DraftEmbedRecord? other)

Parameters

other DraftEmbedRecord?

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object?

Returns

bool

Equals(DraftEmbedRecord?)

public virtual bool Equals(DraftEmbedRecord? other)

Parameters

other DraftEmbedRecord?

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object?

Returns

bool

Equals(DraftEmbedRecord?)

public virtual bool Equals(DraftEmbedRecord? other)

Parameters

other DraftEmbedRecord?

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

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

Parameters

left DraftEmbedRecord?
right DraftEmbedRecord?

Returns

bool

operator ==(DraftEmbedRecord?, DraftEmbedRecord?)

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

Parameters

left DraftEmbedRecord?
right DraftEmbedRecord?

Returns

bool

operator ==(DraftEmbedRecord?, DraftEmbedRecord?)

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

Parameters

left DraftEmbedRecord?
right DraftEmbedRecord?

Returns

bool

operator !=(DraftEmbedRecord?, DraftEmbedRecord?)

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

Parameters

left DraftEmbedRecord?
right DraftEmbedRecord?

Returns

bool

operator !=(DraftEmbedRecord?, DraftEmbedRecord?)

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

Parameters

left DraftEmbedRecord?
right DraftEmbedRecord?

Returns

bool

operator !=(DraftEmbedRecord?, DraftEmbedRecord?)

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

Parameters

left DraftEmbedRecord?
right DraftEmbedRecord?

Returns

bool