Table of Contents

Class ListViewBasic

Namespace
idunno.Bluesky.Graph
Assembly
idunno.Bluesky.dll

Encapsulates a basic view over a list.

public record ListViewBasic : View, IEquatable<View>, IEquatable<ListViewBasic>

Inheritance

Derived

Implements

Inherited Members

Remarks

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

Constructors

ListViewBasic(AtUri, Cid, string, ListPurpose, Uri?, int?, IReadOnlyCollection<Label>?, ListViewerState?, DateTimeOffset?)

Creates a new instance of idunno.Bluesky.Graph.ListViewBasic

[JsonConstructor]
public ListViewBasic(AtUri uri, Cid cid, string name, ListPurpose purpose, Uri? avatar, int? listItemCount, IReadOnlyCollection<Label>? labels, ListViewerState? viewer, DateTimeOffset? indexedAt)

Parameters

uri AtUri

The idunno.AtProto.AtUri of the list.

cid Cid

The content identifier of the list.

name string

The name of the list.

purpose ListPurpose

The list's purpose.

avatar Uri?

A idunno.Bluesky.Graph.ListViewBasic.Uri to the list's avatar, if any.

listItemCount int?

The number of items in the list.

labels IReadOnlyCollection<Label>?

Labels applied to the list

viewer ListViewerState?

A view of the relationship between the view and the current user.

indexedAt DateTimeOffset?

The date and time the list was last indexed at.

Remarks

The name is not validated against the length limits the lexicon places on idunno.Bluesky.Graph.List.Name. A view is a projection of whatever the service returned, so validating it here would turn an unexpected value from the service into an exception which fails the whole response rather than the single list it came from. Limits are enforced on idunno.Bluesky.Graph.List, the record which is actually written.

Exceptions

ArgumentNullException

Throws if uri, cid or name is null.

ListViewBasic(ListViewBasic)

protected ListViewBasic(ListViewBasic original)

Parameters

original ListViewBasic

ListViewBasic(AtUri, Cid, string, ListPurpose, Uri?, int?, IReadOnlyCollection<Label>?, ListViewerState?, DateTimeOffset?)

Creates a new instance of idunno.Bluesky.Graph.ListViewBasic

[JsonConstructor]
public ListViewBasic(AtUri uri, Cid cid, string name, ListPurpose purpose, Uri? avatar, int? listItemCount, IReadOnlyCollection<Label>? labels, ListViewerState? viewer, DateTimeOffset? indexedAt)

Parameters

uri AtUri

The idunno.AtProto.AtUri of the list.

cid Cid

The content identifier of the list.

name string

The name of the list.

purpose ListPurpose

The list's purpose.

avatar Uri?

A idunno.Bluesky.Graph.ListViewBasic.Uri to the list's avatar, if any.

listItemCount int?

The number of items in the list.

labels IReadOnlyCollection<Label>?

Labels applied to the list

viewer ListViewerState?

A view of the relationship between the view and the current user.

indexedAt DateTimeOffset?

The date and time the list was last indexed at.

Remarks

The name is not validated against the length limits the lexicon places on idunno.Bluesky.Graph.List.Name. A view is a projection of whatever the service returned, so validating it here would turn an unexpected value from the service into an exception which fails the whole response rather than the single list it came from. Limits are enforced on idunno.Bluesky.Graph.List, the record which is actually written.

Exceptions

ArgumentNullException

Throws if uri, cid or name is null.

ListViewBasic(ListViewBasic)

protected ListViewBasic(ListViewBasic original)

Parameters

original ListViewBasic

ListViewBasic(AtUri, Cid, string, ListPurpose, Uri?, int?, IReadOnlyCollection<Label>?, ListViewerState?, DateTimeOffset?)

Creates a new instance of idunno.Bluesky.Graph.ListViewBasic

[JsonConstructor]
public ListViewBasic(AtUri uri, Cid cid, string name, ListPurpose purpose, Uri? avatar, int? listItemCount, IReadOnlyCollection<Label>? labels, ListViewerState? viewer, DateTimeOffset? indexedAt)

Parameters

uri AtUri

The idunno.AtProto.AtUri of the list.

cid Cid

The content identifier of the list.

name string

The name of the list.

purpose ListPurpose

The list's purpose.

avatar Uri?

A idunno.Bluesky.Graph.ListViewBasic.Uri to the list's avatar, if any.

listItemCount int?

The number of items in the list.

labels IReadOnlyCollection<Label>?

Labels applied to the list

viewer ListViewerState?

A view of the relationship between the view and the current user.

indexedAt DateTimeOffset?

The date and time the list was last indexed at.

Remarks

The name is not validated against the length limits the lexicon places on idunno.Bluesky.Graph.List.Name. A view is a projection of whatever the service returned, so validating it here would turn an unexpected value from the service into an exception which fails the whole response rather than the single list it came from. Limits are enforced on idunno.Bluesky.Graph.List, the record which is actually written.

Exceptions

ArgumentNullException

Throws if uri, cid or name is null.

ListViewBasic(ListViewBasic)

protected ListViewBasic(ListViewBasic original)

Parameters

original ListViewBasic

Properties

Avatar

A idunno.Bluesky.Graph.ListViewBasic.Uri to the list's avatar, if any.

public Uri? Avatar { get; init; }

Property Value

Uri?

Avatar

A idunno.Bluesky.Graph.ListViewBasic.Uri to the list's avatar, if any.

public Uri? Avatar { get; init; }

Property Value

Uri?

Avatar

A idunno.Bluesky.Graph.ListViewBasic.Uri to the list's avatar, if any.

public Uri? Avatar { get; init; }

Property Value

Uri?

Cid

Gets the Content Identifier of the record.

[JsonInclude]
[JsonRequired]
public Cid Cid { get; init; }

Property Value

Cid

Cid

Gets the Content Identifier of the record.

[JsonInclude]
[JsonRequired]
public Cid Cid { get; init; }

Property Value

Cid

Cid

Gets the Content Identifier of the record.

[JsonInclude]
[JsonRequired]
public Cid Cid { get; init; }

Property Value

Cid

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

IndexedAt

The date and time the list was last indexed at.

public DateTimeOffset? IndexedAt { get; init; }

Property Value

DateTimeOffset?

IndexedAt

The date and time the list was last indexed at.

public DateTimeOffset? IndexedAt { get; init; }

Property Value

DateTimeOffset?

IndexedAt

The date and time the list was last indexed at.

public DateTimeOffset? IndexedAt { get; init; }

Property Value

DateTimeOffset?

Labels

Labels applied to the list by the user's list subscriptions.

public IReadOnlyCollection<Label> Labels { get; init; }

Property Value

IReadOnlyCollection<Label>

Labels

Labels applied to the list by the user's list subscriptions.

public IReadOnlyCollection<Label> Labels { get; init; }

Property Value

IReadOnlyCollection<Label>

Labels

Labels applied to the list by the user's list subscriptions.

public IReadOnlyCollection<Label> Labels { get; init; }

Property Value

IReadOnlyCollection<Label>

ListItemCount

The number of items in the list.

public int? ListItemCount { get; init; }

Property Value

int?

ListItemCount

The number of items in the list.

public int? ListItemCount { get; init; }

Property Value

int?

ListItemCount

The number of items in the list.

public int? ListItemCount { get; init; }

Property Value

int?

Name

Gets the name of the list.

[JsonRequired]
public string Name { get; init; }

Property Value

string

Name

Gets the name of the list.

[JsonRequired]
public string Name { get; init; }

Property Value

string

Name

Gets the name of the list.

[JsonRequired]
public string Name { get; init; }

Property Value

string

Purpose

Gets the list's purpose.

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

Property Value

ListPurpose

Purpose

Gets the list's purpose.

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

Property Value

ListPurpose

Purpose

Gets the list's purpose.

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

Property Value

ListPurpose

StrongReference

Gets a idunno.Bluesky.Graph.ListViewBasic.StrongReference for the record.

[JsonIgnore]
public StrongReference StrongReference { get; }

Property Value

StrongReference

StrongReference

Gets a idunno.Bluesky.Graph.ListViewBasic.StrongReference for the record.

[JsonIgnore]
public StrongReference StrongReference { get; }

Property Value

StrongReference

StrongReference

Gets a idunno.Bluesky.Graph.ListViewBasic.StrongReference for the record.

[JsonIgnore]
public StrongReference StrongReference { get; }

Property Value

StrongReference

Uri

Gets the idunno.AtProto.AtUri of the record.

[JsonInclude]
[JsonRequired]
public AtUri Uri { get; init; }

Property Value

AtUri

Uri

Gets the idunno.AtProto.AtUri of the record.

[JsonInclude]
[JsonRequired]
public AtUri Uri { get; init; }

Property Value

AtUri

Uri

Gets the idunno.AtProto.AtUri of the record.

[JsonInclude]
[JsonRequired]
public AtUri Uri { get; init; }

Property Value

AtUri

Viewer

Gets a view of the relationship between the view and the current user.

public ListViewerState? Viewer { get; init; }

Property Value

ListViewerState?

Viewer

Gets a view of the relationship between the view and the current user.

public ListViewerState? Viewer { get; init; }

Property Value

ListViewerState?

Viewer

Gets a view of the relationship between the view and the current user.

public ListViewerState? Viewer { get; init; }

Property Value

ListViewerState?

Methods

<Clone>$()

public override ListViewBasic <Clone>$()

Returns

ListViewBasic

<Clone>$()

public override ListViewBasic <Clone>$()

Returns

ListViewBasic

<Clone>$()

public override ListViewBasic <Clone>$()

Returns

ListViewBasic

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object?

Returns

bool

Equals(View?)

public override sealed bool Equals(View? other)

Parameters

other View?

Returns

bool

Equals(ListViewBasic?)

public virtual bool Equals(ListViewBasic? other)

Parameters

other ListViewBasic?

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object?

Returns

bool

Equals(View?)

public override sealed bool Equals(View? other)

Parameters

other View?

Returns

bool

Equals(ListViewBasic?)

public virtual bool Equals(ListViewBasic? other)

Parameters

other ListViewBasic?

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object?

Returns

bool

Equals(View?)

public override sealed bool Equals(View? other)

Parameters

other View?

Returns

bool

Equals(ListViewBasic?)

public virtual bool Equals(ListViewBasic? other)

Parameters

other ListViewBasic?

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

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

Parameters

left ListViewBasic?
right ListViewBasic?

Returns

bool

operator ==(ListViewBasic?, ListViewBasic?)

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

Parameters

left ListViewBasic?
right ListViewBasic?

Returns

bool

operator ==(ListViewBasic?, ListViewBasic?)

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

Parameters

left ListViewBasic?
right ListViewBasic?

Returns

bool

operator !=(ListViewBasic?, ListViewBasic?)

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

Parameters

left ListViewBasic?
right ListViewBasic?

Returns

bool

operator !=(ListViewBasic?, ListViewBasic?)

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

Parameters

left ListViewBasic?
right ListViewBasic?

Returns

bool

operator !=(ListViewBasic?, ListViewBasic?)

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

Parameters

left ListViewBasic?
right ListViewBasic?

Returns

bool