Table of Contents

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

uri AtUri

The idunno.AtProto.AtUri of the thread gate.

cid Cid

The content identifier of the thread gate.

record ThreadGate?

The record for the idunno.Bluesky.Feed.Gates.ThreadGate.

lists IReadOnlyCollection<ListViewBasic>?

A collection of rules for the thread gate.

Exceptions

ArgumentNullException

Thrown when uri or cid are null.

ThreadGateView(ThreadGateView)

protected ThreadGateView(ThreadGateView original)

Parameters

original ThreadGateView

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

uri AtUri

The idunno.AtProto.AtUri of the thread gate.

cid Cid

The content identifier of the thread gate.

record ThreadGate?

The record for the idunno.Bluesky.Feed.Gates.ThreadGate.

lists IReadOnlyCollection<ListViewBasic>?

A collection of rules for the thread gate.

Exceptions

ArgumentNullException

Thrown when uri or cid are null.

ThreadGateView(ThreadGateView)

protected ThreadGateView(ThreadGateView original)

Parameters

original ThreadGateView

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

uri AtUri

The idunno.AtProto.AtUri of the thread gate.

cid Cid

The content identifier of the thread gate.

record ThreadGate?

The record for the idunno.Bluesky.Feed.Gates.ThreadGate.

lists IReadOnlyCollection<ListViewBasic>?

A collection of rules for the thread gate.

Exceptions

ArgumentNullException

Thrown when uri or cid are null.

ThreadGateView(ThreadGateView)

protected ThreadGateView(ThreadGateView original)

Parameters

original ThreadGateView

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

Type

EqualityContract

protected virtual Type EqualityContract { get; }

Property Value

Type

EqualityContract

protected virtual Type EqualityContract { get; }

Property Value

Type

Lists

Gets the collection of rules for the thread gate.

public IReadOnlyCollection<ListViewBasic> Lists { get; init; }

Property Value

IReadOnlyCollection<ListViewBasic>

Lists

Gets the collection of rules for the thread gate.

public IReadOnlyCollection<ListViewBasic> Lists { get; init; }

Property Value

IReadOnlyCollection<ListViewBasic>

Lists

Gets the collection of rules for the thread gate.

public IReadOnlyCollection<ListViewBasic> Lists { get; init; }

Property Value

IReadOnlyCollection<ListViewBasic>

Record

Gets the record for the idunno.Bluesky.Feed.Gates.ThreadGate.

public ThreadGate? Record { get; init; }

Property Value

ThreadGate?

Record

Gets the record for the idunno.Bluesky.Feed.Gates.ThreadGate.

public ThreadGate? Record { get; init; }

Property Value

ThreadGate?

Record

Gets the record for the idunno.Bluesky.Feed.Gates.ThreadGate.

public ThreadGate? Record { get; init; }

Property Value

ThreadGate?

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

ThreadGateView

<Clone>$()

public virtual ThreadGateView <Clone>$()

Returns

ThreadGateView

<Clone>$()

public virtual ThreadGateView <Clone>$()

Returns

ThreadGateView

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object?

Returns

bool

Equals(ThreadGateView?)

public virtual bool Equals(ThreadGateView? other)

Parameters

other ThreadGateView?

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object?

Returns

bool

Equals(ThreadGateView?)

public virtual bool Equals(ThreadGateView? other)

Parameters

other ThreadGateView?

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object?

Returns

bool

Equals(ThreadGateView?)

public virtual bool Equals(ThreadGateView? other)

Parameters

other ThreadGateView?

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

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

Parameters

left ThreadGateView?
right ThreadGateView?

Returns

bool

operator ==(ThreadGateView?, ThreadGateView?)

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

Parameters

left ThreadGateView?
right ThreadGateView?

Returns

bool

operator ==(ThreadGateView?, ThreadGateView?)

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

Parameters

left ThreadGateView?
right ThreadGateView?

Returns

bool

operator !=(ThreadGateView?, ThreadGateView?)

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

Parameters

left ThreadGateView?
right ThreadGateView?

Returns

bool

operator !=(ThreadGateView?, ThreadGateView?)

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

Parameters

left ThreadGateView?
right ThreadGateView?

Returns

bool

operator !=(ThreadGateView?, ThreadGateView?)

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

Parameters

left ThreadGateView?
right ThreadGateView?

Returns

bool