Class ThreadGateView
- Namespace
- idunno.Bluesky.Feed
- Assembly
- idunno.Bluesky.dll
Represents a thread gate, rules that set who can reply to a post. If a thread gate record is present but empty, then nobody can reply.
public record ThreadGateView : IEquatable<ThreadGateView>Inheritance
Implements
Inherited Members
Remarks
See https://docs.bsky.app/docs/tutorials/thread-gates for documentation.
Constructors
ThreadGateView(AtUri, Cid, ThreadGate?, IReadOnlyCollection<ListViewBasic>?)
Creates a new instance of idunno.Bluesky.Feed.ThreadGateView with the specified parameters.
[JsonConstructor]
public ThreadGateView(AtUri uri, Cid cid, ThreadGate? record, IReadOnlyCollection<ListViewBasic>? lists)Parameters
uriAtUri-
The idunno.AtProto.AtUri of the thread gate.
cidCid-
The content identifier of the thread gate.
recordThreadGate?-
The record for the idunno.Bluesky.Feed.Gates.ThreadGate.
listsIReadOnlyCollection<ListViewBasic>?-
A collection of rules for the thread gate.
Exceptions
- ArgumentNullException
-
Thrown when
uriorcidare null.
ThreadGateView(ThreadGateView)
protected ThreadGateView(ThreadGateView original)Parameters
originalThreadGateView
ThreadGateView(AtUri, Cid, ThreadGate?, IReadOnlyCollection<ListViewBasic>?)
Creates a new instance of idunno.Bluesky.Feed.ThreadGateView with the specified parameters.
[JsonConstructor]
public ThreadGateView(AtUri uri, Cid cid, ThreadGate? record, IReadOnlyCollection<ListViewBasic>? lists)Parameters
uriAtUri-
The idunno.AtProto.AtUri of the thread gate.
cidCid-
The content identifier of the thread gate.
recordThreadGate?-
The record for the idunno.Bluesky.Feed.Gates.ThreadGate.
listsIReadOnlyCollection<ListViewBasic>?-
A collection of rules for the thread gate.
Exceptions
- ArgumentNullException
-
Thrown when
uriorcidare null.
ThreadGateView(ThreadGateView)
protected ThreadGateView(ThreadGateView original)Parameters
originalThreadGateView
ThreadGateView(AtUri, Cid, ThreadGate?, IReadOnlyCollection<ListViewBasic>?)
Creates a new instance of idunno.Bluesky.Feed.ThreadGateView with the specified parameters.
[JsonConstructor]
public ThreadGateView(AtUri uri, Cid cid, ThreadGate? record, IReadOnlyCollection<ListViewBasic>? lists)Parameters
uriAtUri-
The idunno.AtProto.AtUri of the thread gate.
cidCid-
The content identifier of the thread gate.
recordThreadGate?-
The record for the idunno.Bluesky.Feed.Gates.ThreadGate.
listsIReadOnlyCollection<ListViewBasic>?-
A collection of rules for the thread gate.
Exceptions
- ArgumentNullException
-
Thrown when
uriorcidare null.
ThreadGateView(ThreadGateView)
protected ThreadGateView(ThreadGateView original)Parameters
originalThreadGateView
Properties
Cid
Gets the The content identifier of the thread gate.
public Cid Cid { get; init; }Property Value
- Cid
Cid
Gets the The content identifier of the thread gate.
public Cid Cid { get; init; }Property Value
- Cid
Cid
Gets the The content identifier of the thread gate.
public Cid Cid { get; init; }Property Value
- Cid
EqualityContract
protected virtual Type EqualityContract { get; }Property Value
EqualityContract
protected virtual Type EqualityContract { get; }Property Value
EqualityContract
protected virtual Type EqualityContract { get; }Property Value
Lists
Gets the collection of rules for the thread gate.
public IReadOnlyCollection<ListViewBasic> Lists { get; init; }Property Value
Lists
Gets the collection of rules for the thread gate.
public IReadOnlyCollection<ListViewBasic> Lists { get; init; }Property Value
Lists
Gets the collection of rules for the thread gate.
public IReadOnlyCollection<ListViewBasic> Lists { get; init; }Property Value
Record
Gets the record for the idunno.Bluesky.Feed.Gates.ThreadGate.
public ThreadGate? Record { get; init; }Property Value
Record
Gets the record for the idunno.Bluesky.Feed.Gates.ThreadGate.
public ThreadGate? Record { get; init; }Property Value
Record
Gets the record for the idunno.Bluesky.Feed.Gates.ThreadGate.
public ThreadGate? Record { get; init; }Property Value
Uri
Gets the idunno.AtProto.AtUri of the thread gate.
public AtUri Uri { get; init; }Property Value
- AtUri
Uri
Gets the idunno.AtProto.AtUri of the thread gate.
public AtUri Uri { get; init; }Property Value
- AtUri
Uri
Gets the idunno.AtProto.AtUri of the thread gate.
public AtUri Uri { get; init; }Property Value
- AtUri
Methods
<Clone>$()
public virtual ThreadGateView <Clone>$()Returns
<Clone>$()
public virtual ThreadGateView <Clone>$()Returns
<Clone>$()
public virtual ThreadGateView <Clone>$()Returns
Equals(object?)
public override bool Equals(object? obj)Parameters
objobject?
Returns
Equals(ThreadGateView?)
public virtual bool Equals(ThreadGateView? other)Parameters
otherThreadGateView?
Returns
Equals(object?)
public override bool Equals(object? obj)Parameters
objobject?
Returns
Equals(ThreadGateView?)
public virtual bool Equals(ThreadGateView? other)Parameters
otherThreadGateView?
Returns
Equals(object?)
public override bool Equals(object? obj)Parameters
objobject?
Returns
Equals(ThreadGateView?)
public virtual bool Equals(ThreadGateView? other)Parameters
otherThreadGateView?
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 ==(ThreadGateView?, ThreadGateView?)
public static bool operator ==(ThreadGateView? left, ThreadGateView? right)Parameters
leftThreadGateView?rightThreadGateView?
Returns
operator ==(ThreadGateView?, ThreadGateView?)
public static bool operator ==(ThreadGateView? left, ThreadGateView? right)Parameters
leftThreadGateView?rightThreadGateView?
Returns
operator ==(ThreadGateView?, ThreadGateView?)
public static bool operator ==(ThreadGateView? left, ThreadGateView? right)Parameters
leftThreadGateView?rightThreadGateView?
Returns
operator !=(ThreadGateView?, ThreadGateView?)
public static bool operator !=(ThreadGateView? left, ThreadGateView? right)Parameters
leftThreadGateView?rightThreadGateView?
Returns
operator !=(ThreadGateView?, ThreadGateView?)
public static bool operator !=(ThreadGateView? left, ThreadGateView? right)Parameters
leftThreadGateView?rightThreadGateView?
Returns
operator !=(ThreadGateView?, ThreadGateView?)
public static bool operator !=(ThreadGateView? left, ThreadGateView? right)Parameters
leftThreadGateView?rightThreadGateView?