Class List
- Namespace
- idunno.Bluesky.Graph
- Assembly
- idunno.Bluesky.dll
Record representing a list of accounts (actors). Scope includes moderation-oriented lists, curation-oriented lists and starter packs.
[JsonPolymorphic(IgnoreUnrecognizedTypeDiscriminators = true, UnknownDerivedTypeHandling = JsonUnknownDerivedTypeHandling.FallBackToBaseType)]
[JsonDerivedType(typeof(List), "app.bsky.graph.list")]
public record List : BlueskyTimestampedRecord, IEquatable<AtProtoRecord>, IEquatable<BlueskyRecord>, IEquatable<BlueskyTimestampedRecord>, IEquatable<List>Inheritance
-
AtProtoRecord
Implements
Inherited Members
-
AtProtoRecord.Equals(AtProtoRecord?)AtProtoRecord.GetHashCode()AtProtoRecord.ToString()AtProtoRecord.PrintMembers(StringBuilder)AtProtoRecord.Equals(object?)AtProtoRecord.<Clone>$()AtProtoRecord.EqualityContractAtProtoRecord.ExtensionData
Constructors
List(string, ListPurpose, string?, IEnumerable<Facet>?, Blob?, SelfLabels?, DateTimeOffset?)
Creates a new instance of idunno.Bluesky.Graph.List.
public List(string name, ListPurpose purpose, string? description, IEnumerable<Facet>? descriptionFacets = null, Blob? avatar = null, SelfLabels? labels = null, DateTimeOffset? createdAt = null)Parameters
namestring-
The name of the list.
purposeListPurpose-
The list's purpose.
descriptionstring?-
The list's description, if any.
descriptionFacetsIEnumerable<Facet>?-
Any rich text facets to apply to the description.
avatarBlob?-
The list's avatar, if any.
labelsSelfLabels?-
The list's self labels, if any.
createdAtDateTimeOffset?-
The System.DateTimeOffset the list was created at. Defaults to System.DateTimeOffset.UtcNow.
Exceptions
- ArgumentException
-
Thrown when
nameis empty. - ArgumentNullException
-
Thrown when
nameis null. - ArgumentOutOfRangeException
-
Thrown when
purposeis idunno.Bluesky.Graph.ListPurpose.Unknown, ornameis > 64 UTF-8 bytes, ordescriptionis > 300 graphemes or > 3000 UTF-8 bytes.
List(List)
protected List(List original)Parameters
originalList
List(string, ListPurpose, string?, IEnumerable<Facet>?, Blob?, SelfLabels?, DateTimeOffset?)
Creates a new instance of idunno.Bluesky.Graph.List.
public List(string name, ListPurpose purpose, string? description, IEnumerable<Facet>? descriptionFacets = null, Blob? avatar = null, SelfLabels? labels = null, DateTimeOffset? createdAt = null)Parameters
namestring-
The name of the list.
purposeListPurpose-
The list's purpose.
descriptionstring?-
The list's description, if any.
descriptionFacetsIEnumerable<Facet>?-
Any rich text facets to apply to the description.
avatarBlob?-
The list's avatar, if any.
labelsSelfLabels?-
The list's self labels, if any.
createdAtDateTimeOffset?-
The System.DateTimeOffset the list was created at. Defaults to System.DateTimeOffset.UtcNow.
Exceptions
- ArgumentException
-
Thrown when
nameis empty. - ArgumentNullException
-
Thrown when
nameis null. - ArgumentOutOfRangeException
-
Thrown when
purposeis idunno.Bluesky.Graph.ListPurpose.Unknown, ornameis > 64 UTF-8 bytes, ordescriptionis > 300 graphemes or > 3000 UTF-8 bytes.
List(List)
protected List(List original)Parameters
originalList
List(string, ListPurpose, string?, IEnumerable<Facet>?, Blob?, SelfLabels?, DateTimeOffset?)
Creates a new instance of idunno.Bluesky.Graph.List.
public List(string name, ListPurpose purpose, string? description, IEnumerable<Facet>? descriptionFacets = null, Blob? avatar = null, SelfLabels? labels = null, DateTimeOffset? createdAt = null)Parameters
namestring-
The name of the list.
purposeListPurpose-
The list's purpose.
descriptionstring?-
The list's description, if any.
descriptionFacetsIEnumerable<Facet>?-
Any rich text facets to apply to the description.
avatarBlob?-
The list's avatar, if any.
labelsSelfLabels?-
The list's self labels, if any.
createdAtDateTimeOffset?-
The System.DateTimeOffset the list was created at. Defaults to System.DateTimeOffset.UtcNow.
Exceptions
- ArgumentException
-
Thrown when
nameis empty. - ArgumentNullException
-
Thrown when
nameis null. - ArgumentOutOfRangeException
-
Thrown when
purposeis idunno.Bluesky.Graph.ListPurpose.Unknown, ornameis > 64 UTF-8 bytes, ordescriptionis > 300 graphemes or > 3000 UTF-8 bytes.
List(List)
protected List(List original)Parameters
originalList
Properties
Avatar
Gets the avatar for the list, if any.
[JsonInclude]
public Blob? Avatar { get; set; }Property Value
- Blob?
Avatar
Gets the avatar for the list, if any.
[JsonInclude]
public Blob? Avatar { get; set; }Property Value
- Blob?
Avatar
Gets the avatar for the list, if any.
[JsonInclude]
public Blob? Avatar { get; set; }Property Value
- Blob?
Description
Gets or sets the description of the list, if any.
[JsonInclude]
public string? Description { get; set; }Property Value
Exceptions
- ArgumentOutOfRangeException
-
Thrown when
valueexceeds 300 graphemes or 3000 UTF-8 bytes.
Description
Gets or sets the description of the list, if any.
[JsonInclude]
public string? Description { get; set; }Property Value
Exceptions
- ArgumentOutOfRangeException
-
Thrown when
valueexceeds 300 graphemes or 3000 UTF-8 bytes.
Description
Gets or sets the description of the list, if any.
[JsonInclude]
public string? Description { get; set; }Property Value
Exceptions
- ArgumentOutOfRangeException
-
Thrown when
valueexceeds 300 graphemes or 3000 UTF-8 bytes.
DescriptionFacets
Gets the rich text facets for the list, if any.
[JsonInclude]
public IEnumerable<Facet>? DescriptionFacets { get; set; }Property Value
DescriptionFacets
Gets the rich text facets for the list, if any.
[JsonInclude]
public IEnumerable<Facet>? DescriptionFacets { get; set; }Property Value
DescriptionFacets
Gets the rich text facets for the list, if any.
[JsonInclude]
public IEnumerable<Facet>? DescriptionFacets { get; set; }Property Value
EqualityContract
protected override Type EqualityContract { get; }Property Value
EqualityContract
protected override Type EqualityContract { get; }Property Value
EqualityContract
protected override Type EqualityContract { get; }Property Value
Labels
Gets self labels for the list, if any.
[JsonInclude]
public SelfLabels? Labels { get; set; }Property Value
- SelfLabels?
Labels
Gets self labels for the list, if any.
[JsonInclude]
public SelfLabels? Labels { get; set; }Property Value
- SelfLabels?
Labels
Gets self labels for the list, if any.
[JsonInclude]
public SelfLabels? Labels { get; set; }Property Value
- SelfLabels?
Name
Gets or sets the display name for the list.
[JsonInclude]
[JsonRequired]
public string Name { get; set; }Property Value
Exceptions
- ArgumentException
-
Thrown when
valueis null or empty. - ArgumentOutOfRangeException
-
Thrown when
valueexceeds 64 UTF-8 bytes.
Name
Gets or sets the display name for the list.
[JsonInclude]
[JsonRequired]
public string Name { get; set; }Property Value
Exceptions
- ArgumentException
-
Thrown when
valueis null or empty. - ArgumentOutOfRangeException
-
Thrown when
valueexceeds 64 UTF-8 bytes.
Name
Gets or sets the display name for the list.
[JsonInclude]
[JsonRequired]
public string Name { get; set; }Property Value
Exceptions
- ArgumentException
-
Thrown when
valueis null or empty. - ArgumentOutOfRangeException
-
Thrown when
valueexceeds 64 UTF-8 bytes.
Purpose
Gets the purpose for the list.
[JsonInclude]
[JsonRequired]
public ListPurpose Purpose { get; init; }Property Value
Purpose
Gets the purpose for the list.
[JsonInclude]
[JsonRequired]
public ListPurpose Purpose { get; init; }Property Value
Purpose
Gets the purpose for the list.
[JsonInclude]
[JsonRequired]
public ListPurpose Purpose { get; init; }Property Value
Methods
<Clone>$()
public override List <Clone>$()Returns
<Clone>$()
public override List <Clone>$()Returns
<Clone>$()
public override List <Clone>$()Returns
Equals(object?)
public override bool Equals(object? obj)Parameters
objobject?
Returns
Equals(BlueskyTimestampedRecord?)
public override sealed bool Equals(BlueskyTimestampedRecord? other)Parameters
otherBlueskyTimestampedRecord?
Returns
Equals(List?)
public virtual bool Equals(List? other)Parameters
otherList?
Returns
Equals(object?)
public override bool Equals(object? obj)Parameters
objobject?
Returns
Equals(BlueskyTimestampedRecord?)
public override sealed bool Equals(BlueskyTimestampedRecord? other)Parameters
otherBlueskyTimestampedRecord?
Returns
Equals(List?)
public virtual bool Equals(List? other)Parameters
otherList?
Returns
Equals(object?)
public override bool Equals(object? obj)Parameters
objobject?
Returns
Equals(BlueskyTimestampedRecord?)
public override sealed bool Equals(BlueskyTimestampedRecord? other)Parameters
otherBlueskyTimestampedRecord?
Returns
Equals(List?)
public virtual bool Equals(List? other)Parameters
otherList?
Returns
GetHashCode()
Returns the hash code for the current instance.
public override int GetHashCode()Returns
- int
-
The hash code for the current instance.
Remarks
The hash code is derived from the keys of idunno.AtProto.Repo.AtProtoRecord.ExtensionData rather than from its identity.
GetHashCode()
Returns the hash code for the current instance.
public override int GetHashCode()Returns
- int
-
The hash code for the current instance.
Remarks
The hash code is derived from the keys of idunno.AtProto.Repo.AtProtoRecord.ExtensionData rather than from its identity.
GetHashCode()
Returns the hash code for the current instance.
public override int GetHashCode()Returns
- int
-
The hash code for the current instance.
Remarks
The hash code is derived from the keys of idunno.AtProto.Repo.AtProtoRecord.ExtensionData rather than from its identity.
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 ==(List?, List?)
public static bool operator ==(List? left, List? right)Parameters
Returns
operator ==(List?, List?)
public static bool operator ==(List? left, List? right)Parameters
Returns
operator ==(List?, List?)
public static bool operator ==(List? left, List? right)Parameters
Returns
operator !=(List?, List?)
public static bool operator !=(List? left, List? right)Parameters
Returns
operator !=(List?, List?)
public static bool operator !=(List? left, List? right)Parameters
Returns
operator !=(List?, List?)
public static bool operator !=(List? left, List? right)