Class DraftEmbedExternal
- Namespace
- idunno.Bluesky.Drafts
- Assembly
- idunno.Bluesky.dll
Encapsulates a embedded URI in a draft post.
[JsonPolymorphic(UnknownDerivedTypeHandling = JsonUnknownDerivedTypeHandling.FallBackToNearestAncestor)]
[JsonDerivedType(typeof(DraftEmbedExternal), "app.bsky.draft.defs#draftEmbedExternal")]
public record DraftEmbedExternal : IEquatable<DraftEmbedExternal>Inheritance
Implements
Inherited Members
Constructors
DraftEmbedExternal(Uri)
Creates a new instance of idunno.Bluesky.Drafts.DraftEmbedExternal with the specified external idunno.Bluesky.Drafts.DraftEmbedExternal.Uri.
[JsonConstructor]
public DraftEmbedExternal(Uri uri)Parameters
uriUri-
The idunno.Bluesky.Drafts.DraftEmbedExternal.Uri to embed.
Exceptions
- ArgumentNullException
-
Thrown when
uriis null.
DraftEmbedExternal(DraftEmbedExternal)
protected DraftEmbedExternal(DraftEmbedExternal original)Parameters
originalDraftEmbedExternal
DraftEmbedExternal(Uri)
Creates a new instance of idunno.Bluesky.Drafts.DraftEmbedExternal with the specified external idunno.Bluesky.Drafts.DraftEmbedExternal.Uri.
[JsonConstructor]
public DraftEmbedExternal(Uri uri)Parameters
uriUri-
The idunno.Bluesky.Drafts.DraftEmbedExternal.Uri to embed.
Exceptions
- ArgumentNullException
-
Thrown when
uriis null.
DraftEmbedExternal(DraftEmbedExternal)
protected DraftEmbedExternal(DraftEmbedExternal original)Parameters
originalDraftEmbedExternal
DraftEmbedExternal(Uri)
Creates a new instance of idunno.Bluesky.Drafts.DraftEmbedExternal with the specified external idunno.Bluesky.Drafts.DraftEmbedExternal.Uri.
[JsonConstructor]
public DraftEmbedExternal(Uri uri)Parameters
uriUri-
The idunno.Bluesky.Drafts.DraftEmbedExternal.Uri to embed.
Exceptions
- ArgumentNullException
-
Thrown when
uriis null.
DraftEmbedExternal(DraftEmbedExternal)
protected DraftEmbedExternal(DraftEmbedExternal original)Parameters
originalDraftEmbedExternal
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
Uri
Gets the embedded external idunno.Bluesky.Drafts.DraftEmbedExternal.Uri.
[JsonRequired]
public Uri Uri { get; init; }Property Value
- Uri
Exceptions
- ArgumentNullException
-
Thrown when setting to null.
Uri
Gets the embedded external idunno.Bluesky.Drafts.DraftEmbedExternal.Uri.
[JsonRequired]
public Uri Uri { get; init; }Property Value
- Uri
Exceptions
- ArgumentNullException
-
Thrown when setting to null.
Uri
Gets the embedded external idunno.Bluesky.Drafts.DraftEmbedExternal.Uri.
[JsonRequired]
public Uri Uri { get; init; }Property Value
- Uri
Exceptions
- ArgumentNullException
-
Thrown when setting to null.
Methods
<Clone>$()
public virtual DraftEmbedExternal <Clone>$()Returns
<Clone>$()
public virtual DraftEmbedExternal <Clone>$()Returns
<Clone>$()
public virtual DraftEmbedExternal <Clone>$()Returns
Equals(object?)
public override bool Equals(object? obj)Parameters
objobject?
Returns
Equals(DraftEmbedExternal?)
public virtual bool Equals(DraftEmbedExternal? other)Parameters
otherDraftEmbedExternal?
Returns
Equals(object?)
public override bool Equals(object? obj)Parameters
objobject?
Returns
Equals(DraftEmbedExternal?)
public virtual bool Equals(DraftEmbedExternal? other)Parameters
otherDraftEmbedExternal?
Returns
Equals(object?)
public override bool Equals(object? obj)Parameters
objobject?
Returns
Equals(DraftEmbedExternal?)
public virtual bool Equals(DraftEmbedExternal? other)Parameters
otherDraftEmbedExternal?
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 ==(DraftEmbedExternal?, DraftEmbedExternal?)
public static bool operator ==(DraftEmbedExternal? left, DraftEmbedExternal? right)Parameters
leftDraftEmbedExternal?rightDraftEmbedExternal?
Returns
operator ==(DraftEmbedExternal?, DraftEmbedExternal?)
public static bool operator ==(DraftEmbedExternal? left, DraftEmbedExternal? right)Parameters
leftDraftEmbedExternal?rightDraftEmbedExternal?
Returns
operator ==(DraftEmbedExternal?, DraftEmbedExternal?)
public static bool operator ==(DraftEmbedExternal? left, DraftEmbedExternal? right)Parameters
leftDraftEmbedExternal?rightDraftEmbedExternal?
Returns
operator !=(DraftEmbedExternal?, DraftEmbedExternal?)
public static bool operator !=(DraftEmbedExternal? left, DraftEmbedExternal? right)Parameters
leftDraftEmbedExternal?rightDraftEmbedExternal?
Returns
operator !=(DraftEmbedExternal?, DraftEmbedExternal?)
public static bool operator !=(DraftEmbedExternal? left, DraftEmbedExternal? right)Parameters
leftDraftEmbedExternal?rightDraftEmbedExternal?
Returns
operator !=(DraftEmbedExternal?, DraftEmbedExternal?)
public static bool operator !=(DraftEmbedExternal? left, DraftEmbedExternal? right)Parameters
leftDraftEmbedExternal?rightDraftEmbedExternal?