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
recordStrongReference-
The record to embed.
Exceptions
- ArgumentNullException
-
Thrown when
recordis null.
DraftEmbedRecord(DraftEmbedRecord)
protected DraftEmbedRecord(DraftEmbedRecord original)Parameters
originalDraftEmbedRecord
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
recordStrongReference-
The record to embed.
Exceptions
- ArgumentNullException
-
Thrown when
recordis null.
DraftEmbedRecord(DraftEmbedRecord)
protected DraftEmbedRecord(DraftEmbedRecord original)Parameters
originalDraftEmbedRecord
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
recordStrongReference-
The record to embed.
Exceptions
- ArgumentNullException
-
Thrown when
recordis null.
DraftEmbedRecord(DraftEmbedRecord)
protected DraftEmbedRecord(DraftEmbedRecord original)Parameters
originalDraftEmbedRecord
Properties
EqualityContract
protected virtual Type EqualityContract { get; }Property Value
EqualityContract
protected virtual Type EqualityContract { get; }Property Value
EqualityContract
protected virtual Type EqualityContract { get; }Property Value
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
<Clone>$()
public virtual DraftEmbedRecord <Clone>$()Returns
<Clone>$()
public virtual DraftEmbedRecord <Clone>$()Returns
Equals(object?)
public override bool Equals(object? obj)Parameters
objobject?
Returns
Equals(DraftEmbedRecord?)
public virtual bool Equals(DraftEmbedRecord? other)Parameters
otherDraftEmbedRecord?
Returns
Equals(object?)
public override bool Equals(object? obj)Parameters
objobject?
Returns
Equals(DraftEmbedRecord?)
public virtual bool Equals(DraftEmbedRecord? other)Parameters
otherDraftEmbedRecord?
Returns
Equals(object?)
public override bool Equals(object? obj)Parameters
objobject?
Returns
Equals(DraftEmbedRecord?)
public virtual bool Equals(DraftEmbedRecord? other)Parameters
otherDraftEmbedRecord?
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 ==(DraftEmbedRecord?, DraftEmbedRecord?)
public static bool operator ==(DraftEmbedRecord? left, DraftEmbedRecord? right)Parameters
leftDraftEmbedRecord?rightDraftEmbedRecord?
Returns
operator ==(DraftEmbedRecord?, DraftEmbedRecord?)
public static bool operator ==(DraftEmbedRecord? left, DraftEmbedRecord? right)Parameters
leftDraftEmbedRecord?rightDraftEmbedRecord?
Returns
operator ==(DraftEmbedRecord?, DraftEmbedRecord?)
public static bool operator ==(DraftEmbedRecord? left, DraftEmbedRecord? right)Parameters
leftDraftEmbedRecord?rightDraftEmbedRecord?
Returns
operator !=(DraftEmbedRecord?, DraftEmbedRecord?)
public static bool operator !=(DraftEmbedRecord? left, DraftEmbedRecord? right)Parameters
leftDraftEmbedRecord?rightDraftEmbedRecord?
Returns
operator !=(DraftEmbedRecord?, DraftEmbedRecord?)
public static bool operator !=(DraftEmbedRecord? left, DraftEmbedRecord? right)Parameters
leftDraftEmbedRecord?rightDraftEmbedRecord?
Returns
operator !=(DraftEmbedRecord?, DraftEmbedRecord?)
public static bool operator !=(DraftEmbedRecord? left, DraftEmbedRecord? right)Parameters
leftDraftEmbedRecord?rightDraftEmbedRecord?