Table of Contents

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

id TimestampIdentifier

The idunno.AtProto.TimestampIdentifier the draft was created at.

draft Draft

The draft.

Exceptions

ArgumentNullException

Thrown when id or draft is null.

DraftWithId(Draft)

Creates a new instance of idunno.Bluesky.Drafts.DraftWithId with a new unique identifier.

public DraftWithId(Draft draft)

Parameters

draft Draft

The draft.

Exceptions

ArgumentNullException

Thrown when draft is null.

DraftWithId(DraftWithId)

protected DraftWithId(DraftWithId original)

Parameters

original DraftWithId

DraftWithId(TimestampIdentifier, Draft)

Creates a new instance of idunno.Bluesky.Drafts.DraftWithId with the specified identifier.

[JsonConstructor]
public DraftWithId(TimestampIdentifier id, Draft draft)

Parameters

id TimestampIdentifier

The idunno.AtProto.TimestampIdentifier the draft was created at.

draft Draft

The draft.

Exceptions

ArgumentNullException

Thrown when id or draft is null.

DraftWithId(Draft)

Creates a new instance of idunno.Bluesky.Drafts.DraftWithId with a new unique identifier.

public DraftWithId(Draft draft)

Parameters

draft Draft

The draft.

Exceptions

ArgumentNullException

Thrown when draft is null.

DraftWithId(DraftWithId)

protected DraftWithId(DraftWithId original)

Parameters

original DraftWithId

DraftWithId(TimestampIdentifier, Draft)

Creates a new instance of idunno.Bluesky.Drafts.DraftWithId with the specified identifier.

[JsonConstructor]
public DraftWithId(TimestampIdentifier id, Draft draft)

Parameters

id TimestampIdentifier

The idunno.AtProto.TimestampIdentifier the draft was created at.

draft Draft

The draft.

Exceptions

ArgumentNullException

Thrown when id or draft is null.

DraftWithId(Draft)

Creates a new instance of idunno.Bluesky.Drafts.DraftWithId with a new unique identifier.

public DraftWithId(Draft draft)

Parameters

draft Draft

The draft.

Exceptions

ArgumentNullException

Thrown when draft is null.

DraftWithId(DraftWithId)

protected DraftWithId(DraftWithId original)

Parameters

original DraftWithId

Properties

Draft

Gets the draft containing an array of draft posts.

[JsonRequired]
public Draft Draft { get; init; }

Property Value

Draft

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

Draft

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

Draft

Exceptions

ArgumentNullException

Thrown when setting to null.

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

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

DraftWithId

<Clone>$()

public virtual DraftWithId <Clone>$()

Returns

DraftWithId

<Clone>$()

public virtual DraftWithId <Clone>$()

Returns

DraftWithId

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object?

Returns

bool

Equals(DraftWithId?)

public virtual bool Equals(DraftWithId? other)

Parameters

other DraftWithId?

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object?

Returns

bool

Equals(DraftWithId?)

public virtual bool Equals(DraftWithId? other)

Parameters

other DraftWithId?

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object?

Returns

bool

Equals(DraftWithId?)

public virtual bool Equals(DraftWithId? other)

Parameters

other DraftWithId?

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

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

Parameters

left DraftWithId?
right DraftWithId?

Returns

bool

operator ==(DraftWithId?, DraftWithId?)

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

Parameters

left DraftWithId?
right DraftWithId?

Returns

bool

operator ==(DraftWithId?, DraftWithId?)

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

Parameters

left DraftWithId?
right DraftWithId?

Returns

bool

operator !=(DraftWithId?, DraftWithId?)

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

Parameters

left DraftWithId?
right DraftWithId?

Returns

bool

operator !=(DraftWithId?, DraftWithId?)

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

Parameters

left DraftWithId?
right DraftWithId?

Returns

bool

operator !=(DraftWithId?, DraftWithId?)

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

Parameters

left DraftWithId?
right DraftWithId?

Returns

bool