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
threadGateAllowRulesICollection<ThreadGateRule>?-
List of rules defining who can reply to this users posts.
postGateEmbeddingRulesICollection<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
threadGateAllowRulesICollection<ThreadGateRule>?-
List of rules defining who can reply to this users posts.
postGateEmbeddingRulesICollection<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
threadGateAllowRulesICollection<ThreadGateRule>?-
List of rules defining who can reply to this users posts.
postGateEmbeddingRulesICollection<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
EqualityContract
protected override Type EqualityContract { get; }Property Value
EqualityContract
protected override Type EqualityContract { get; }Property Value
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
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
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
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
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
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
Methods
<Clone>$()
public override PostInteractionSettingsPreferences <Clone>$()Returns
<Clone>$()
public override PostInteractionSettingsPreferences <Clone>$()Returns
<Clone>$()
public override PostInteractionSettingsPreferences <Clone>$()Returns
Equals(object?)
public override bool Equals(object? obj)Parameters
objobject?
Returns
Equals(Preference?)
public override sealed bool Equals(Preference? other)Parameters
otherPreference?
Returns
Equals(PostInteractionSettingsPreferences?)
public bool Equals(PostInteractionSettingsPreferences? other)Parameters
Returns
Equals(object?)
public override bool Equals(object? obj)Parameters
objobject?
Returns
Equals(Preference?)
public override sealed bool Equals(Preference? other)Parameters
otherPreference?
Returns
Equals(PostInteractionSettingsPreferences?)
public bool Equals(PostInteractionSettingsPreferences? other)Parameters
Returns
Equals(object?)
public override bool Equals(object? obj)Parameters
objobject?
Returns
Equals(Preference?)
public override sealed bool Equals(Preference? other)Parameters
otherPreference?
Returns
Equals(PostInteractionSettingsPreferences?)
public bool Equals(PostInteractionSettingsPreferences? other)Parameters
Returns
GetHashCode()
public override int GetHashCode()Returns
GetHashCode()
public override int GetHashCode()Returns
GetHashCode()
public override int GetHashCode()Returns
PrintMembers(StringBuilder)
protected override bool PrintMembers(StringBuilder builder)Parameters
builderStringBuilder
Returns
PrintMembers(StringBuilder)
protected override bool PrintMembers(StringBuilder builder)Parameters
builderStringBuilder
Returns
PrintMembers(StringBuilder)
protected override 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 ==(PostInteractionSettingsPreferences?, PostInteractionSettingsPreferences?)
public static bool operator ==(PostInteractionSettingsPreferences? left, PostInteractionSettingsPreferences? right)Parameters
Returns
operator ==(PostInteractionSettingsPreferences?, PostInteractionSettingsPreferences?)
public static bool operator ==(PostInteractionSettingsPreferences? left, PostInteractionSettingsPreferences? right)Parameters
Returns
operator ==(PostInteractionSettingsPreferences?, PostInteractionSettingsPreferences?)
public static bool operator ==(PostInteractionSettingsPreferences? left, PostInteractionSettingsPreferences? right)Parameters
Returns
operator !=(PostInteractionSettingsPreferences?, PostInteractionSettingsPreferences?)
public static bool operator !=(PostInteractionSettingsPreferences? left, PostInteractionSettingsPreferences? right)Parameters
Returns
operator !=(PostInteractionSettingsPreferences?, PostInteractionSettingsPreferences?)
public static bool operator !=(PostInteractionSettingsPreferences? left, PostInteractionSettingsPreferences? right)Parameters
Returns
operator !=(PostInteractionSettingsPreferences?, PostInteractionSettingsPreferences?)
public static bool operator !=(PostInteractionSettingsPreferences? left, PostInteractionSettingsPreferences? right)