Table of Contents

Class PostInteractionSettingsPreferences

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

User's default post interaction preferences These values should be applied as default values when creating new posts. These refs should mirror the threadgate and postgate records exactly.

public sealed record PostInteractionSettingsPreferences : Preference, IEquatable<Preference>, IEquatable<PostInteractionSettingsPreferences>

Inheritance

Implements

Inherited Members

Constructors

PostInteractionSettingsPreferences(ICollection<ThreadGateRule>?, ICollection<PostGateRule>?)

Creates a new instance of idunno.Bluesky.Actor.PostInteractionSettingsPreferences.

[JsonConstructor]
public PostInteractionSettingsPreferences(ICollection<ThreadGateRule>? threadGateAllowRules, ICollection<PostGateRule>? postGateEmbeddingRules)

Parameters

threadGateAllowRules ICollection<ThreadGateRule>?

List of rules defining who can reply to this users posts.

postGateEmbeddingRules ICollection<PostGateRule>?

List of rules defining who can embed this users posts.

Exceptions

ArgumentOutOfRangeException

Thrown when more than idunno.Bluesky.Maximum.ThreadGateRules thread gate rules or more than idunno.Bluesky.Maximum.PostGateRules post gate rules are provided.

PostInteractionSettingsPreferences(ICollection<ThreadGateRule>?, ICollection<PostGateRule>?)

Creates a new instance of idunno.Bluesky.Actor.PostInteractionSettingsPreferences.

[JsonConstructor]
public PostInteractionSettingsPreferences(ICollection<ThreadGateRule>? threadGateAllowRules, ICollection<PostGateRule>? postGateEmbeddingRules)

Parameters

threadGateAllowRules ICollection<ThreadGateRule>?

List of rules defining who can reply to this users posts.

postGateEmbeddingRules ICollection<PostGateRule>?

List of rules defining who can embed this users posts.

Exceptions

ArgumentOutOfRangeException

Thrown when more than idunno.Bluesky.Maximum.ThreadGateRules thread gate rules or more than idunno.Bluesky.Maximum.PostGateRules post gate rules are provided.

PostInteractionSettingsPreferences(ICollection<ThreadGateRule>?, ICollection<PostGateRule>?)

Creates a new instance of idunno.Bluesky.Actor.PostInteractionSettingsPreferences.

[JsonConstructor]
public PostInteractionSettingsPreferences(ICollection<ThreadGateRule>? threadGateAllowRules, ICollection<PostGateRule>? postGateEmbeddingRules)

Parameters

threadGateAllowRules ICollection<ThreadGateRule>?

List of rules defining who can reply to this users posts.

postGateEmbeddingRules ICollection<PostGateRule>?

List of rules defining who can embed this users posts.

Exceptions

ArgumentOutOfRangeException

Thrown when more than idunno.Bluesky.Maximum.ThreadGateRules thread gate rules or more than idunno.Bluesky.Maximum.PostGateRules post gate rules are provided.

Properties

EqualityContract

protected override Type EqualityContract { get; }

Property Value

Type

EqualityContract

protected override Type EqualityContract { get; }

Property Value

Type

EqualityContract

protected override Type EqualityContract { get; }

Property Value

Type

PostGateEmbeddingRules

List of rules defining who can embed this users posts. If value is an empty array or is null, no particular rules apply and anyone can embed.

[JsonInclude]
[JsonPropertyName("postgateEmbeddingRules")]
public ICollection<PostGateRule>? PostGateEmbeddingRules { get; init; }

Property Value

ICollection<PostGateRule>?

PostGateEmbeddingRules

List of rules defining who can embed this users posts. If value is an empty array or is null, no particular rules apply and anyone can embed.

[JsonInclude]
[JsonPropertyName("postgateEmbeddingRules")]
public ICollection<PostGateRule>? PostGateEmbeddingRules { get; init; }

Property Value

ICollection<PostGateRule>?

PostGateEmbeddingRules

List of rules defining who can embed this users posts. If value is an empty array or is null, no particular rules apply and anyone can embed.

[JsonInclude]
[JsonPropertyName("postgateEmbeddingRules")]
public ICollection<PostGateRule>? PostGateEmbeddingRules { get; init; }

Property Value

ICollection<PostGateRule>?

ThreadGateAllowRules

List of rules defining who can reply to this users posts. If value is an empty array, no one can reply. If value is null, anyone can reply.

[JsonInclude]
[JsonPropertyName("threadgateAllowRules")]
public ICollection<ThreadGateRule>? ThreadGateAllowRules { get; init; }

Property Value

ICollection<ThreadGateRule>?

ThreadGateAllowRules

List of rules defining who can reply to this users posts. If value is an empty array, no one can reply. If value is null, anyone can reply.

[JsonInclude]
[JsonPropertyName("threadgateAllowRules")]
public ICollection<ThreadGateRule>? ThreadGateAllowRules { get; init; }

Property Value

ICollection<ThreadGateRule>?

ThreadGateAllowRules

List of rules defining who can reply to this users posts. If value is an empty array, no one can reply. If value is null, anyone can reply.

[JsonInclude]
[JsonPropertyName("threadgateAllowRules")]
public ICollection<ThreadGateRule>? ThreadGateAllowRules { get; init; }

Property Value

ICollection<ThreadGateRule>?

Methods

<Clone>$()

public override PostInteractionSettingsPreferences <Clone>$()

Returns

PostInteractionSettingsPreferences

<Clone>$()

public override PostInteractionSettingsPreferences <Clone>$()

Returns

PostInteractionSettingsPreferences

<Clone>$()

public override PostInteractionSettingsPreferences <Clone>$()

Returns

PostInteractionSettingsPreferences

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object?

Returns

bool

Equals(Preference?)

public override sealed bool Equals(Preference? other)

Parameters

other Preference?

Returns

bool

Equals(PostInteractionSettingsPreferences?)

public bool Equals(PostInteractionSettingsPreferences? other)

Parameters

other PostInteractionSettingsPreferences?

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object?

Returns

bool

Equals(Preference?)

public override sealed bool Equals(Preference? other)

Parameters

other Preference?

Returns

bool

Equals(PostInteractionSettingsPreferences?)

public bool Equals(PostInteractionSettingsPreferences? other)

Parameters

other PostInteractionSettingsPreferences?

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object?

Returns

bool

Equals(Preference?)

public override sealed bool Equals(Preference? other)

Parameters

other Preference?

Returns

bool

Equals(PostInteractionSettingsPreferences?)

public bool Equals(PostInteractionSettingsPreferences? other)

Parameters

other PostInteractionSettingsPreferences?

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 override bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

PrintMembers(StringBuilder)

protected override bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

PrintMembers(StringBuilder)

protected override 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 ==(PostInteractionSettingsPreferences?, PostInteractionSettingsPreferences?)

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

Parameters

left PostInteractionSettingsPreferences?
right PostInteractionSettingsPreferences?

Returns

bool

operator ==(PostInteractionSettingsPreferences?, PostInteractionSettingsPreferences?)

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

Parameters

left PostInteractionSettingsPreferences?
right PostInteractionSettingsPreferences?

Returns

bool

operator ==(PostInteractionSettingsPreferences?, PostInteractionSettingsPreferences?)

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

Parameters

left PostInteractionSettingsPreferences?
right PostInteractionSettingsPreferences?

Returns

bool

operator !=(PostInteractionSettingsPreferences?, PostInteractionSettingsPreferences?)

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

Parameters

left PostInteractionSettingsPreferences?
right PostInteractionSettingsPreferences?

Returns

bool

operator !=(PostInteractionSettingsPreferences?, PostInteractionSettingsPreferences?)

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

Parameters

left PostInteractionSettingsPreferences?
right PostInteractionSettingsPreferences?

Returns

bool

operator !=(PostInteractionSettingsPreferences?, PostInteractionSettingsPreferences?)

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

Parameters

left PostInteractionSettingsPreferences?
right PostInteractionSettingsPreferences?

Returns

bool