Class DraftWithId
- Namespace
- idunno.Bluesky.Drafts
- Assembly
- idunno.Bluesky.dll
Encapsulates a draft with an identifier, used to store drafts in private storage (stash).
public record DraftWithId : IEquatable<DraftWithId>Inheritance
Implements
Inherited Members
Constructors
DraftWithId(TimestampIdentifier, Draft)
Creates a new instance of idunno.Bluesky.Drafts.DraftWithId with the specified identifier.
[JsonConstructor]
public DraftWithId(TimestampIdentifier id, Draft draft)Parameters
idTimestampIdentifier-
The idunno.AtProto.TimestampIdentifier the draft was created at.
draftDraft-
The draft.
Exceptions
- ArgumentNullException
-
Thrown when
idordraftis null.
DraftWithId(Draft)
Creates a new instance of idunno.Bluesky.Drafts.DraftWithId with a new unique identifier.
public DraftWithId(Draft draft)Parameters
draftDraft-
The draft.
Exceptions
- ArgumentNullException
-
Thrown when
draftis null.
DraftWithId(DraftWithId)
protected DraftWithId(DraftWithId original)Parameters
originalDraftWithId
DraftWithId(TimestampIdentifier, Draft)
Creates a new instance of idunno.Bluesky.Drafts.DraftWithId with the specified identifier.
[JsonConstructor]
public DraftWithId(TimestampIdentifier id, Draft draft)Parameters
idTimestampIdentifier-
The idunno.AtProto.TimestampIdentifier the draft was created at.
draftDraft-
The draft.
Exceptions
- ArgumentNullException
-
Thrown when
idordraftis null.
DraftWithId(Draft)
Creates a new instance of idunno.Bluesky.Drafts.DraftWithId with a new unique identifier.
public DraftWithId(Draft draft)Parameters
draftDraft-
The draft.
Exceptions
- ArgumentNullException
-
Thrown when
draftis null.
DraftWithId(DraftWithId)
protected DraftWithId(DraftWithId original)Parameters
originalDraftWithId
DraftWithId(TimestampIdentifier, Draft)
Creates a new instance of idunno.Bluesky.Drafts.DraftWithId with the specified identifier.
[JsonConstructor]
public DraftWithId(TimestampIdentifier id, Draft draft)Parameters
idTimestampIdentifier-
The idunno.AtProto.TimestampIdentifier the draft was created at.
draftDraft-
The draft.
Exceptions
- ArgumentNullException
-
Thrown when
idordraftis null.
DraftWithId(Draft)
Creates a new instance of idunno.Bluesky.Drafts.DraftWithId with a new unique identifier.
public DraftWithId(Draft draft)Parameters
draftDraft-
The draft.
Exceptions
- ArgumentNullException
-
Thrown when
draftis null.
DraftWithId(DraftWithId)
protected DraftWithId(DraftWithId original)Parameters
originalDraftWithId
Properties
Draft
Gets the draft containing an array of draft posts.
[JsonRequired]
public Draft Draft { get; init; }Property Value
Exceptions
- ArgumentNullException
-
Thrown when setting to null.
Draft
Gets the draft containing an array of draft posts.
[JsonRequired]
public Draft Draft { get; init; }Property Value
Exceptions
- ArgumentNullException
-
Thrown when setting to null.
Draft
Gets the draft containing an array of draft posts.
[JsonRequired]
public Draft Draft { get; init; }Property Value
Exceptions
- ArgumentNullException
-
Thrown when setting to null.
EqualityContract
protected virtual Type EqualityContract { get; }Property Value
EqualityContract
protected virtual Type EqualityContract { get; }Property Value
EqualityContract
protected virtual Type EqualityContract { get; }Property Value
Id
Gets the idunno.AtProto.TimestampIdentifier used as a draft identifier.
[JsonRequired]
public TimestampIdentifier Id { get; init; }Property Value
- TimestampIdentifier
Exceptions
- ArgumentNullException
-
Thrown when setting to null.
Id
Gets the idunno.AtProto.TimestampIdentifier used as a draft identifier.
[JsonRequired]
public TimestampIdentifier Id { get; init; }Property Value
- TimestampIdentifier
Exceptions
- ArgumentNullException
-
Thrown when setting to null.
Id
Gets the idunno.AtProto.TimestampIdentifier used as a draft identifier.
[JsonRequired]
public TimestampIdentifier Id { get; init; }Property Value
- TimestampIdentifier
Exceptions
- ArgumentNullException
-
Thrown when setting to null.
Methods
<Clone>$()
public virtual DraftWithId <Clone>$()Returns
<Clone>$()
public virtual DraftWithId <Clone>$()Returns
<Clone>$()
public virtual DraftWithId <Clone>$()Returns
Equals(object?)
public override bool Equals(object? obj)Parameters
objobject?
Returns
Equals(DraftWithId?)
public virtual bool Equals(DraftWithId? other)Parameters
otherDraftWithId?
Returns
Equals(object?)
public override bool Equals(object? obj)Parameters
objobject?
Returns
Equals(DraftWithId?)
public virtual bool Equals(DraftWithId? other)Parameters
otherDraftWithId?
Returns
Equals(object?)
public override bool Equals(object? obj)Parameters
objobject?
Returns
Equals(DraftWithId?)
public virtual bool Equals(DraftWithId? other)Parameters
otherDraftWithId?
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 ==(DraftWithId?, DraftWithId?)
public static bool operator ==(DraftWithId? left, DraftWithId? right)Parameters
leftDraftWithId?rightDraftWithId?
Returns
operator ==(DraftWithId?, DraftWithId?)
public static bool operator ==(DraftWithId? left, DraftWithId? right)Parameters
leftDraftWithId?rightDraftWithId?
Returns
operator ==(DraftWithId?, DraftWithId?)
public static bool operator ==(DraftWithId? left, DraftWithId? right)Parameters
leftDraftWithId?rightDraftWithId?
Returns
operator !=(DraftWithId?, DraftWithId?)
public static bool operator !=(DraftWithId? left, DraftWithId? right)Parameters
leftDraftWithId?rightDraftWithId?
Returns
operator !=(DraftWithId?, DraftWithId?)
public static bool operator !=(DraftWithId? left, DraftWithId? right)Parameters
leftDraftWithId?rightDraftWithId?
Returns
operator !=(DraftWithId?, DraftWithId?)
public static bool operator !=(DraftWithId? left, DraftWithId? right)Parameters
leftDraftWithId?rightDraftWithId?