Table of Contents

Class ViewerState

Namespace
idunno.Bluesky.Actor
Assembly
idunno.Bluesky.dll

Metadata about the requesting account's relationship with the subject account. Only has meaningful content for authenticated requests

public record ViewerState : IEquatable<ViewerState>

Inheritance

Implements

Inherited Members

Remarks

See https://github.com/bluesky-social/atproto/blob/main/lexicons/app/bsky/actor/defs.json for definition.

Constructors

ViewerState(ViewerState)

protected ViewerState(ViewerState original)

Parameters

original ViewerState

ViewerState(ViewerState)

protected ViewerState(ViewerState original)

Parameters

original ViewerState

ViewerState(ViewerState)

protected ViewerState(ViewerState original)

Parameters

original ViewerState

Properties

ActivitySubscription

Gets idunno.Bluesky.Actor.ViewerState.ActivitySubscription the current user has to the subject's activity, if any.

public ActivitySubscription? ActivitySubscription { get; init; }

Property Value

ActivitySubscription?

Remarks

This property is present only in selected cases, as an optimization.

ActivitySubscription

Gets idunno.Bluesky.Actor.ViewerState.ActivitySubscription the current user has to the subject's activity, if any.

public ActivitySubscription? ActivitySubscription { get; init; }

Property Value

ActivitySubscription?

Remarks

This property is present only in selected cases, as an optimization.

ActivitySubscription

Gets idunno.Bluesky.Actor.ViewerState.ActivitySubscription the current user has to the subject's activity, if any.

public ActivitySubscription? ActivitySubscription { get; init; }

Property Value

ActivitySubscription?

Remarks

This property is present only in selected cases, as an optimization.

BlockedBy

Gets a flag indicating whether the actor is blocking the current user.

public bool? BlockedBy { get; init; }

Property Value

bool?

BlockedBy

Gets a flag indicating whether the actor is blocking the current user.

public bool? BlockedBy { get; init; }

Property Value

bool?

BlockedBy

Gets a flag indicating whether the actor is blocking the current user.

public bool? BlockedBy { get; init; }

Property Value

bool?

Blocking

Gets an idunno.AtProto.AtUri reference to the current user's block record, if they are blocking the actor.

public AtUri? Blocking { get; init; }

Property Value

AtUri?

Blocking

Gets an idunno.AtProto.AtUri reference to the current user's block record, if they are blocking the actor.

public AtUri? Blocking { get; init; }

Property Value

AtUri?

Blocking

Gets an idunno.AtProto.AtUri reference to the current user's block record, if they are blocking the actor.

public AtUri? Blocking { get; init; }

Property Value

AtUri?

BlockingByList

Gets a idunno.Bluesky.Graph.ListViewBasic of the list the current user subscribes to which is blocking the actor, if any.

public ListViewBasic? BlockingByList { get; init; }

Property Value

ListViewBasic?

BlockingByList

Gets a idunno.Bluesky.Graph.ListViewBasic of the list the current user subscribes to which is blocking the actor, if any.

public ListViewBasic? BlockingByList { get; init; }

Property Value

ListViewBasic?

BlockingByList

Gets a idunno.Bluesky.Graph.ListViewBasic of the list the current user subscribes to which is blocking the actor, if any.

public ListViewBasic? BlockingByList { get; init; }

Property Value

ListViewBasic?

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

FollowedBy

Gets an idunno.AtProto.AtUri reference to the actor's follow record, if the actor is following the current user.

public AtUri? FollowedBy { get; init; }

Property Value

AtUri?

FollowedBy

Gets an idunno.AtProto.AtUri reference to the actor's follow record, if the actor is following the current user.

public AtUri? FollowedBy { get; init; }

Property Value

AtUri?

FollowedBy

Gets an idunno.AtProto.AtUri reference to the actor's follow record, if the actor is following the current user.

public AtUri? FollowedBy { get; init; }

Property Value

AtUri?

Following

Gets an idunno.AtProto.AtUri reference to the follow record, if the current user is following the actor.

public AtUri? Following { get; init; }

Property Value

AtUri?

Following

Gets an idunno.AtProto.AtUri reference to the follow record, if the current user is following the actor.

public AtUri? Following { get; init; }

Property Value

AtUri?

Following

Gets an idunno.AtProto.AtUri reference to the follow record, if the current user is following the actor.

public AtUri? Following { get; init; }

Property Value

AtUri?

KnownFollowers

Gets a idunno.Bluesky.Actor.ViewerState.KnownFollowers record of mutual followers shared between the actor and the current user, if any.

public KnownFollowers? KnownFollowers { get; init; }

Property Value

KnownFollowers?

Remarks

This property is present only in selected cases, as an optimization.

KnownFollowers

Gets a idunno.Bluesky.Actor.ViewerState.KnownFollowers record of mutual followers shared between the actor and the current user, if any.

public KnownFollowers? KnownFollowers { get; init; }

Property Value

KnownFollowers?

Remarks

This property is present only in selected cases, as an optimization.

KnownFollowers

Gets a idunno.Bluesky.Actor.ViewerState.KnownFollowers record of mutual followers shared between the actor and the current user, if any.

public KnownFollowers? KnownFollowers { get; init; }

Property Value

KnownFollowers?

Remarks

This property is present only in selected cases, as an optimization.

Muted

Gets a flag indicating the account is fully muted, directly or via a mutelist. false when the mute is scoped to specific kinds; see mutedOnlyReposts and mutedOnlyQuoteposts.

public bool? Muted { get; init; }

Property Value

bool?

Muted

Gets a flag indicating the account is fully muted, directly or via a mutelist. false when the mute is scoped to specific kinds; see mutedOnlyReposts and mutedOnlyQuoteposts.

public bool? Muted { get; init; }

Property Value

bool?

Muted

Gets a flag indicating the account is fully muted, directly or via a mutelist. false when the mute is scoped to specific kinds; see mutedOnlyReposts and mutedOnlyQuoteposts.

public bool? Muted { get; init; }

Property Value

bool?

MutedByList

Gets a idunno.Bluesky.Graph.ListViewBasic of the list the current user subscribes to which has muted the actor, if any.

public ListViewBasic? MutedByList { get; init; }

Property Value

ListViewBasic?

MutedByList

Gets a idunno.Bluesky.Graph.ListViewBasic of the list the current user subscribes to which has muted the actor, if any.

public ListViewBasic? MutedByList { get; init; }

Property Value

ListViewBasic?

MutedByList

Gets a idunno.Bluesky.Graph.ListViewBasic of the list the current user subscribes to which has muted the actor, if any.

public ListViewBasic? MutedByList { get; init; }

Property Value

ListViewBasic?

MutedOnlyQuotePosts

Gets a flag indicating whether the account's quoteposts are muted. Scoped mutes are exclusive with muted: this can be true while muted is false. If muted is true, this will be false.

[JsonPropertyName("mutedOnlyQuoteposts")]
public bool? MutedOnlyQuotePosts { get; init; }

Property Value

bool?

MutedOnlyQuotePosts

Gets a flag indicating whether the account's quoteposts are muted. Scoped mutes are exclusive with muted: this can be true while muted is false. If muted is true, this will be false.

[JsonPropertyName("mutedOnlyQuoteposts")]
public bool? MutedOnlyQuotePosts { get; init; }

Property Value

bool?

MutedOnlyQuotePosts

Gets a flag indicating whether the account's quoteposts are muted. Scoped mutes are exclusive with muted: this can be true while muted is false. If muted is true, this will be false.

[JsonPropertyName("mutedOnlyQuoteposts")]
public bool? MutedOnlyQuotePosts { get; init; }

Property Value

bool?

MutedOnlyReposts

Gets a flag indicating whether the account's reposts are muted. Scoped mutes are exclusive with muted: this can be true while muted is false. If muted is true, this will be false.

public bool? MutedOnlyReposts { get; init; }

Property Value

bool?

MutedOnlyReposts

Gets a flag indicating whether the account's reposts are muted. Scoped mutes are exclusive with muted: this can be true while muted is false. If muted is true, this will be false.

public bool? MutedOnlyReposts { get; init; }

Property Value

bool?

MutedOnlyReposts

Gets a flag indicating whether the account's reposts are muted. Scoped mutes are exclusive with muted: this can be true while muted is false. If muted is true, this will be false.

public bool? MutedOnlyReposts { get; init; }

Property Value

bool?

Methods

<Clone>$()

public virtual ViewerState <Clone>$()

Returns

ViewerState

<Clone>$()

public virtual ViewerState <Clone>$()

Returns

ViewerState

<Clone>$()

public virtual ViewerState <Clone>$()

Returns

ViewerState

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object?

Returns

bool

Equals(ViewerState?)

public virtual bool Equals(ViewerState? other)

Parameters

other ViewerState?

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object?

Returns

bool

Equals(ViewerState?)

public virtual bool Equals(ViewerState? other)

Parameters

other ViewerState?

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object?

Returns

bool

Equals(ViewerState?)

public virtual bool Equals(ViewerState? other)

Parameters

other ViewerState?

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

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

Parameters

left ViewerState?
right ViewerState?

Returns

bool

operator ==(ViewerState?, ViewerState?)

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

Parameters

left ViewerState?
right ViewerState?

Returns

bool

operator ==(ViewerState?, ViewerState?)

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

Parameters

left ViewerState?
right ViewerState?

Returns

bool

operator !=(ViewerState?, ViewerState?)

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

Parameters

left ViewerState?
right ViewerState?

Returns

bool

operator !=(ViewerState?, ViewerState?)

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

Parameters

left ViewerState?
right ViewerState?

Returns

bool

operator !=(ViewerState?, ViewerState?)

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

Parameters

left ViewerState?
right ViewerState?

Returns

bool