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
uriAtUri-
The idunno.AtProto.AtUri of the list.
cidCid-
The content identifier of the list.
namestring-
The name of the list.
purposeListPurpose-
The list's purpose.
avatarUri?-
A idunno.Bluesky.Graph.ListViewBasic.Uri to the list's avatar, if any.
listItemCountint?-
The number of items in the list.
labelsIReadOnlyCollection<Label>?-
Labels applied to the list
viewerListViewerState?-
A view of the relationship between the view and the current user.
indexedAtDateTimeOffset?-
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,cidornameis null.
ListViewBasic(ListViewBasic)
protected ListViewBasic(ListViewBasic original)Parameters
originalListViewBasic
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
uriAtUri-
The idunno.AtProto.AtUri of the list.
cidCid-
The content identifier of the list.
namestring-
The name of the list.
purposeListPurpose-
The list's purpose.
avatarUri?-
A idunno.Bluesky.Graph.ListViewBasic.Uri to the list's avatar, if any.
listItemCountint?-
The number of items in the list.
labelsIReadOnlyCollection<Label>?-
Labels applied to the list
viewerListViewerState?-
A view of the relationship between the view and the current user.
indexedAtDateTimeOffset?-
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,cidornameis null.
ListViewBasic(ListViewBasic)
protected ListViewBasic(ListViewBasic original)Parameters
originalListViewBasic
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
uriAtUri-
The idunno.AtProto.AtUri of the list.
cidCid-
The content identifier of the list.
namestring-
The name of the list.
purposeListPurpose-
The list's purpose.
avatarUri?-
A idunno.Bluesky.Graph.ListViewBasic.Uri to the list's avatar, if any.
listItemCountint?-
The number of items in the list.
labelsIReadOnlyCollection<Label>?-
Labels applied to the list
viewerListViewerState?-
A view of the relationship between the view and the current user.
indexedAtDateTimeOffset?-
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,cidornameis null.
ListViewBasic(ListViewBasic)
protected ListViewBasic(ListViewBasic original)Parameters
originalListViewBasic
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
EqualityContract
protected override Type EqualityContract { get; }Property Value
EqualityContract
protected override Type EqualityContract { get; }Property Value
IndexedAt
The date and time the list was last indexed at.
public DateTimeOffset? IndexedAt { get; init; }Property Value
IndexedAt
The date and time the list was last indexed at.
public DateTimeOffset? IndexedAt { get; init; }Property Value
IndexedAt
The date and time the list was last indexed at.
public DateTimeOffset? IndexedAt { get; init; }Property Value
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
Name
Gets the name of the list.
[JsonRequired]
public string Name { get; init; }Property Value
Name
Gets the name of the list.
[JsonRequired]
public string Name { get; init; }Property Value
Purpose
Gets the list's purpose.
[JsonRequired]
public ListPurpose Purpose { get; init; }Property Value
Purpose
Gets the list's purpose.
[JsonRequired]
public ListPurpose Purpose { get; init; }Property Value
Purpose
Gets the list's purpose.
[JsonRequired]
public ListPurpose Purpose { get; init; }Property Value
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
Viewer
Gets a view of the relationship between the view and the current user.
public ListViewerState? Viewer { get; init; }Property Value
Viewer
Gets a view of the relationship between the view and the current user.
public ListViewerState? Viewer { get; init; }Property Value
Methods
<Clone>$()
public override ListViewBasic <Clone>$()Returns
<Clone>$()
public override ListViewBasic <Clone>$()Returns
<Clone>$()
public override ListViewBasic <Clone>$()Returns
Equals(object?)
public override bool Equals(object? obj)Parameters
objobject?
Returns
Equals(View?)
public override sealed bool Equals(View? other)Parameters
otherView?
Returns
Equals(ListViewBasic?)
public virtual bool Equals(ListViewBasic? other)Parameters
otherListViewBasic?
Returns
Equals(object?)
public override bool Equals(object? obj)Parameters
objobject?
Returns
Equals(View?)
public override sealed bool Equals(View? other)Parameters
otherView?
Returns
Equals(ListViewBasic?)
public virtual bool Equals(ListViewBasic? other)Parameters
otherListViewBasic?
Returns
Equals(object?)
public override bool Equals(object? obj)Parameters
objobject?
Returns
Equals(View?)
public override sealed bool Equals(View? other)Parameters
otherView?
Returns
Equals(ListViewBasic?)
public virtual bool Equals(ListViewBasic? other)Parameters
otherListViewBasic?
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 ==(ListViewBasic?, ListViewBasic?)
public static bool operator ==(ListViewBasic? left, ListViewBasic? right)Parameters
leftListViewBasic?rightListViewBasic?
Returns
operator ==(ListViewBasic?, ListViewBasic?)
public static bool operator ==(ListViewBasic? left, ListViewBasic? right)Parameters
leftListViewBasic?rightListViewBasic?
Returns
operator ==(ListViewBasic?, ListViewBasic?)
public static bool operator ==(ListViewBasic? left, ListViewBasic? right)Parameters
leftListViewBasic?rightListViewBasic?
Returns
operator !=(ListViewBasic?, ListViewBasic?)
public static bool operator !=(ListViewBasic? left, ListViewBasic? right)Parameters
leftListViewBasic?rightListViewBasic?
Returns
operator !=(ListViewBasic?, ListViewBasic?)
public static bool operator !=(ListViewBasic? left, ListViewBasic? right)Parameters
leftListViewBasic?rightListViewBasic?
Returns
operator !=(ListViewBasic?, ListViewBasic?)
public static bool operator !=(ListViewBasic? left, ListViewBasic? right)Parameters
leftListViewBasic?rightListViewBasic?