Table of Contents

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.EqualityContract
AtProtoRecord.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

name string

The name of the list.

purpose ListPurpose

The list's purpose.

description string?

The list's description, if any.

descriptionFacets IEnumerable<Facet>?

Any rich text facets to apply to the description.

avatar Blob?

The list's avatar, if any.

labels SelfLabels?

The list's self labels, if any.

createdAt DateTimeOffset?

The System.DateTimeOffset the list was created at. Defaults to System.DateTimeOffset.UtcNow.

Exceptions

ArgumentException

Thrown when name is empty.

ArgumentNullException

Thrown when name is null.

ArgumentOutOfRangeException

Thrown when purpose is idunno.Bluesky.Graph.ListPurpose.Unknown, or name is > 64 UTF-8 bytes, or description is > 300 graphemes or > 3000 UTF-8 bytes.

List(List)

protected List(List original)

Parameters

original List

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

name string

The name of the list.

purpose ListPurpose

The list's purpose.

description string?

The list's description, if any.

descriptionFacets IEnumerable<Facet>?

Any rich text facets to apply to the description.

avatar Blob?

The list's avatar, if any.

labels SelfLabels?

The list's self labels, if any.

createdAt DateTimeOffset?

The System.DateTimeOffset the list was created at. Defaults to System.DateTimeOffset.UtcNow.

Exceptions

ArgumentException

Thrown when name is empty.

ArgumentNullException

Thrown when name is null.

ArgumentOutOfRangeException

Thrown when purpose is idunno.Bluesky.Graph.ListPurpose.Unknown, or name is > 64 UTF-8 bytes, or description is > 300 graphemes or > 3000 UTF-8 bytes.

List(List)

protected List(List original)

Parameters

original List

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

name string

The name of the list.

purpose ListPurpose

The list's purpose.

description string?

The list's description, if any.

descriptionFacets IEnumerable<Facet>?

Any rich text facets to apply to the description.

avatar Blob?

The list's avatar, if any.

labels SelfLabels?

The list's self labels, if any.

createdAt DateTimeOffset?

The System.DateTimeOffset the list was created at. Defaults to System.DateTimeOffset.UtcNow.

Exceptions

ArgumentException

Thrown when name is empty.

ArgumentNullException

Thrown when name is null.

ArgumentOutOfRangeException

Thrown when purpose is idunno.Bluesky.Graph.ListPurpose.Unknown, or name is > 64 UTF-8 bytes, or description is > 300 graphemes or > 3000 UTF-8 bytes.

List(List)

protected List(List original)

Parameters

original List

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

string?

Exceptions

ArgumentOutOfRangeException

Thrown when value exceeds 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

string?

Exceptions

ArgumentOutOfRangeException

Thrown when value exceeds 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

string?

Exceptions

ArgumentOutOfRangeException

Thrown when value exceeds 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

IEnumerable<Facet>?

DescriptionFacets

Gets the rich text facets for the list, if any.

[JsonInclude]
public IEnumerable<Facet>? DescriptionFacets { get; set; }

Property Value

IEnumerable<Facet>?

DescriptionFacets

Gets the rich text facets for the list, if any.

[JsonInclude]
public IEnumerable<Facet>? DescriptionFacets { get; set; }

Property Value

IEnumerable<Facet>?

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

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

string

Exceptions

ArgumentException

Thrown when value is null or empty.

ArgumentOutOfRangeException

Thrown when value exceeds 64 UTF-8 bytes.

Name

Gets or sets the display name for the list.

[JsonInclude]
[JsonRequired]
public string Name { get; set; }

Property Value

string

Exceptions

ArgumentException

Thrown when value is null or empty.

ArgumentOutOfRangeException

Thrown when value exceeds 64 UTF-8 bytes.

Name

Gets or sets the display name for the list.

[JsonInclude]
[JsonRequired]
public string Name { get; set; }

Property Value

string

Exceptions

ArgumentException

Thrown when value is null or empty.

ArgumentOutOfRangeException

Thrown when value exceeds 64 UTF-8 bytes.

Purpose

Gets the purpose for the list.

[JsonInclude]
[JsonRequired]
public ListPurpose Purpose { get; init; }

Property Value

ListPurpose

Purpose

Gets the purpose for the list.

[JsonInclude]
[JsonRequired]
public ListPurpose Purpose { get; init; }

Property Value

ListPurpose

Purpose

Gets the purpose for the list.

[JsonInclude]
[JsonRequired]
public ListPurpose Purpose { get; init; }

Property Value

ListPurpose

Methods

<Clone>$()

public override List <Clone>$()

Returns

List

<Clone>$()

public override List <Clone>$()

Returns

List

<Clone>$()

public override List <Clone>$()

Returns

List

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object?

Returns

bool

Equals(BlueskyTimestampedRecord?)

public override sealed bool Equals(BlueskyTimestampedRecord? other)

Parameters

other BlueskyTimestampedRecord?

Returns

bool

Equals(List?)

public virtual bool Equals(List? other)

Parameters

other List?

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object?

Returns

bool

Equals(BlueskyTimestampedRecord?)

public override sealed bool Equals(BlueskyTimestampedRecord? other)

Parameters

other BlueskyTimestampedRecord?

Returns

bool

Equals(List?)

public virtual bool Equals(List? other)

Parameters

other List?

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object?

Returns

bool

Equals(BlueskyTimestampedRecord?)

public override sealed bool Equals(BlueskyTimestampedRecord? other)

Parameters

other BlueskyTimestampedRecord?

Returns

bool

Equals(List?)

public virtual bool Equals(List? other)

Parameters

other List?

Returns

bool

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

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

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

Parameters

left List?
right List?

Returns

bool

operator ==(List?, List?)

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

Parameters

left List?
right List?

Returns

bool

operator ==(List?, List?)

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

Parameters

left List?
right List?

Returns

bool

operator !=(List?, List?)

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

Parameters

left List?
right List?

Returns

bool

operator !=(List?, List?)

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

Parameters

left List?
right List?

Returns

bool

operator !=(List?, List?)

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

Parameters

left List?
right List?

Returns

bool