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
pathstring-
The local path to the file to be embedded.
Exceptions
- ArgumentNullException
-
Thrown when
pathis null/ - ArgumentException
-
Thrown when
pathis empty or whitespace. - ArgumentOutOfRangeException
-
Thrown when the UTF-8 byte length of
pathis greater than idunno.Bluesky.Maximum.DraftEmbedLocalRefPathLengthInBytes or less than idunno.Bluesky.Maximum.DraftEmbedLocalRefPathMinimumLengthInBytes.
DraftEmbedLocalRef(DraftEmbedLocalRef)
protected DraftEmbedLocalRef(DraftEmbedLocalRef original)Parameters
originalDraftEmbedLocalRef
DraftEmbedLocalRef(string)
Creates a new instance of idunno.Bluesky.Drafts.DraftEmbedLocalRef with the specified local path.
[JsonConstructor]
public DraftEmbedLocalRef(string path)Parameters
pathstring-
The local path to the file to be embedded.
Exceptions
- ArgumentNullException
-
Thrown when
pathis null/ - ArgumentException
-
Thrown when
pathis empty or whitespace. - ArgumentOutOfRangeException
-
Thrown when the UTF-8 byte length of
pathis greater than idunno.Bluesky.Maximum.DraftEmbedLocalRefPathLengthInBytes or less than idunno.Bluesky.Maximum.DraftEmbedLocalRefPathMinimumLengthInBytes.
DraftEmbedLocalRef(DraftEmbedLocalRef)
protected DraftEmbedLocalRef(DraftEmbedLocalRef original)Parameters
originalDraftEmbedLocalRef
DraftEmbedLocalRef(string)
Creates a new instance of idunno.Bluesky.Drafts.DraftEmbedLocalRef with the specified local path.
[JsonConstructor]
public DraftEmbedLocalRef(string path)Parameters
pathstring-
The local path to the file to be embedded.
Exceptions
- ArgumentNullException
-
Thrown when
pathis null/ - ArgumentException
-
Thrown when
pathis empty or whitespace. - ArgumentOutOfRangeException
-
Thrown when the UTF-8 byte length of
pathis greater than idunno.Bluesky.Maximum.DraftEmbedLocalRefPathLengthInBytes or less than idunno.Bluesky.Maximum.DraftEmbedLocalRefPathMinimumLengthInBytes.
DraftEmbedLocalRef(DraftEmbedLocalRef)
protected DraftEmbedLocalRef(DraftEmbedLocalRef original)Parameters
originalDraftEmbedLocalRef
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
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
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
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
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
<Clone>$()
public virtual DraftEmbedLocalRef <Clone>$()Returns
<Clone>$()
public virtual DraftEmbedLocalRef <Clone>$()Returns
Equals(object?)
public override bool Equals(object? obj)Parameters
objobject?
Returns
Equals(DraftEmbedLocalRef?)
public virtual bool Equals(DraftEmbedLocalRef? other)Parameters
otherDraftEmbedLocalRef?
Returns
Equals(object?)
public override bool Equals(object? obj)Parameters
objobject?
Returns
Equals(DraftEmbedLocalRef?)
public virtual bool Equals(DraftEmbedLocalRef? other)Parameters
otherDraftEmbedLocalRef?
Returns
Equals(object?)
public override bool Equals(object? obj)Parameters
objobject?
Returns
Equals(DraftEmbedLocalRef?)
public virtual bool Equals(DraftEmbedLocalRef? other)Parameters
otherDraftEmbedLocalRef?
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 ==(DraftEmbedLocalRef?, DraftEmbedLocalRef?)
public static bool operator ==(DraftEmbedLocalRef? left, DraftEmbedLocalRef? right)Parameters
leftDraftEmbedLocalRef?rightDraftEmbedLocalRef?
Returns
operator ==(DraftEmbedLocalRef?, DraftEmbedLocalRef?)
public static bool operator ==(DraftEmbedLocalRef? left, DraftEmbedLocalRef? right)Parameters
leftDraftEmbedLocalRef?rightDraftEmbedLocalRef?
Returns
operator ==(DraftEmbedLocalRef?, DraftEmbedLocalRef?)
public static bool operator ==(DraftEmbedLocalRef? left, DraftEmbedLocalRef? right)Parameters
leftDraftEmbedLocalRef?rightDraftEmbedLocalRef?
Returns
operator !=(DraftEmbedLocalRef?, DraftEmbedLocalRef?)
public static bool operator !=(DraftEmbedLocalRef? left, DraftEmbedLocalRef? right)Parameters
leftDraftEmbedLocalRef?rightDraftEmbedLocalRef?
Returns
operator !=(DraftEmbedLocalRef?, DraftEmbedLocalRef?)
public static bool operator !=(DraftEmbedLocalRef? left, DraftEmbedLocalRef? right)Parameters
leftDraftEmbedLocalRef?rightDraftEmbedLocalRef?
Returns
operator !=(DraftEmbedLocalRef?, DraftEmbedLocalRef?)
public static bool operator !=(DraftEmbedLocalRef? left, DraftEmbedLocalRef? right)Parameters
leftDraftEmbedLocalRef?rightDraftEmbedLocalRef?