Class ProfileViewBasic
- Namespace
- idunno.Bluesky.Actor
- Assembly
- idunno.Bluesky.dll
A basic view of an actor profile
public record ProfileViewBasic : View, IEquatable<View>, IEquatable<ProfileViewBasic>Inheritance
Derived
Implements
Inherited Members
Remarks
See https://github.com/bluesky-social/atproto/blob/main/lexicons/app/bsky/actor/defs.json for the definition.
Constructors
ProfileViewBasic(Did, Handle, string?, string?, Uri?, Uri?, ProfileAssociated?, ViewerState?, IReadOnlyCollection<Label>?, DateTimeOffset?, VerificationState?, StatusView?)
Creates a new instance of idunno.Bluesky.Actor.ProfileViewBasic
[JsonConstructor]
public ProfileViewBasic(Did did, Handle handle, string? displayName, string? pronouns, Uri? website, Uri? avatar, ProfileAssociated? associated, ViewerState? viewer, IReadOnlyCollection<Label>? labels, DateTimeOffset? createdAt, VerificationState? verification, StatusView? status)Parameters
didDid-
The idunno.Bluesky.Actor.ProfileViewBasic.Did of the actor.
handleHandle-
The idunno.Bluesky.Actor.ProfileViewBasic.Handle of the actor.
displayNamestring?-
The display name for the actor.
pronounsstring?-
The actor's pronouns, if any.
websiteUri?-
The actor's website, if any.
avatarUri?-
A System.Uri to the actor's avatar, if any.
associatedProfileAssociated?-
Properties associated with the actor.
viewerViewerState?-
Metadata about the current user's relationship to the actor.
labelsIReadOnlyCollection<Label>?-
Labels applied to the actor.
createdAtDateTimeOffset?-
The date and time the actor was created.
verificationVerificationState?-
The idunno.Bluesky.Actor.VerificationState of the actor, if any.
statusStatusView?-
The idunno.Bluesky.Actor.StatusView of the actor, if any.
Remarks
A display name the service sends is not validated against idunno.Bluesky.Maximum.DisplayNameLengthInBytes or idunno.Bluesky.Maximum.DisplayNameLengthInGraphemes. A view is a report of what the service holds, and rejecting an out of specification display name would make an entire page of profiles unreadable because of one actor.
Exceptions
- ArgumentNullException
-
Thrown when
didorhandleare null.
ProfileViewBasic(ProfileViewBasic)
protected ProfileViewBasic(ProfileViewBasic original)Parameters
originalProfileViewBasic
ProfileViewBasic(Did, Handle, string?, string?, Uri?, Uri?, ProfileAssociated?, ViewerState?, IReadOnlyCollection<Label>?, DateTimeOffset?, VerificationState?, StatusView?)
Creates a new instance of idunno.Bluesky.Actor.ProfileViewBasic
[JsonConstructor]
public ProfileViewBasic(Did did, Handle handle, string? displayName, string? pronouns, Uri? website, Uri? avatar, ProfileAssociated? associated, ViewerState? viewer, IReadOnlyCollection<Label>? labels, DateTimeOffset? createdAt, VerificationState? verification, StatusView? status)Parameters
didDid-
The idunno.Bluesky.Actor.ProfileViewBasic.Did of the actor.
handleHandle-
The idunno.Bluesky.Actor.ProfileViewBasic.Handle of the actor.
displayNamestring?-
The display name for the actor.
pronounsstring?-
The actor's pronouns, if any.
websiteUri?-
The actor's website, if any.
avatarUri?-
A System.Uri to the actor's avatar, if any.
associatedProfileAssociated?-
Properties associated with the actor.
viewerViewerState?-
Metadata about the current user's relationship to the actor.
labelsIReadOnlyCollection<Label>?-
Labels applied to the actor.
createdAtDateTimeOffset?-
The date and time the actor was created.
verificationVerificationState?-
The idunno.Bluesky.Actor.VerificationState of the actor, if any.
statusStatusView?-
The idunno.Bluesky.Actor.StatusView of the actor, if any.
Remarks
A display name the service sends is not validated against idunno.Bluesky.Maximum.DisplayNameLengthInBytes or idunno.Bluesky.Maximum.DisplayNameLengthInGraphemes. A view is a report of what the service holds, and rejecting an out of specification display name would make an entire page of profiles unreadable because of one actor.
Exceptions
- ArgumentNullException
-
Thrown when
didorhandleare null.
ProfileViewBasic(ProfileViewBasic)
protected ProfileViewBasic(ProfileViewBasic original)Parameters
originalProfileViewBasic
ProfileViewBasic(Did, Handle, string?, string?, Uri?, Uri?, ProfileAssociated?, ViewerState?, IReadOnlyCollection<Label>?, DateTimeOffset?, VerificationState?, StatusView?)
Creates a new instance of idunno.Bluesky.Actor.ProfileViewBasic
[JsonConstructor]
public ProfileViewBasic(Did did, Handle handle, string? displayName, string? pronouns, Uri? website, Uri? avatar, ProfileAssociated? associated, ViewerState? viewer, IReadOnlyCollection<Label>? labels, DateTimeOffset? createdAt, VerificationState? verification, StatusView? status)Parameters
didDid-
The idunno.Bluesky.Actor.ProfileViewBasic.Did of the actor.
handleHandle-
The idunno.Bluesky.Actor.ProfileViewBasic.Handle of the actor.
displayNamestring?-
The display name for the actor.
pronounsstring?-
The actor's pronouns, if any.
websiteUri?-
The actor's website, if any.
avatarUri?-
A System.Uri to the actor's avatar, if any.
associatedProfileAssociated?-
Properties associated with the actor.
viewerViewerState?-
Metadata about the current user's relationship to the actor.
labelsIReadOnlyCollection<Label>?-
Labels applied to the actor.
createdAtDateTimeOffset?-
The date and time the actor was created.
verificationVerificationState?-
The idunno.Bluesky.Actor.VerificationState of the actor, if any.
statusStatusView?-
The idunno.Bluesky.Actor.StatusView of the actor, if any.
Remarks
A display name the service sends is not validated against idunno.Bluesky.Maximum.DisplayNameLengthInBytes or idunno.Bluesky.Maximum.DisplayNameLengthInGraphemes. A view is a report of what the service holds, and rejecting an out of specification display name would make an entire page of profiles unreadable because of one actor.
Exceptions
- ArgumentNullException
-
Thrown when
didorhandleare null.
ProfileViewBasic(ProfileViewBasic)
protected ProfileViewBasic(ProfileViewBasic original)Parameters
originalProfileViewBasic
Properties
Associated
Gets the Associated properties for the subject.
public ProfileAssociated? Associated { get; init; }Property Value
Associated
Gets the Associated properties for the subject.
public ProfileAssociated? Associated { get; init; }Property Value
Associated
Gets the Associated properties for the subject.
public ProfileAssociated? Associated { get; init; }Property Value
Avatar
Gets the System.Uri of the actor's avatar, if any.
public Uri? Avatar { get; init; }Property Value
- Uri?
Avatar
Gets the System.Uri of the actor's avatar, if any.
public Uri? Avatar { get; init; }Property Value
- Uri?
Avatar
Gets the System.Uri of the actor's avatar, if any.
public Uri? Avatar { get; init; }Property Value
- Uri?
CreatedAt
Gets the date and time the actor was created at.
public DateTimeOffset? CreatedAt { get; init; }Property Value
CreatedAt
Gets the date and time the actor was created at.
public DateTimeOffset? CreatedAt { get; init; }Property Value
CreatedAt
Gets the date and time the actor was created at.
public DateTimeOffset? CreatedAt { get; init; }Property Value
Did
Gets the did of the actor.
[JsonRequired]
public Did Did { get; init; }Property Value
- Did
Did
Gets the did of the actor.
[JsonRequired]
public Did Did { get; init; }Property Value
- Did
Did
Gets the did of the actor.
[JsonRequired]
public Did Did { get; init; }Property Value
- Did
DisplayName
Gets the display name, if any, of the actor.
public string? DisplayName { get; init; }Property Value
DisplayName
Gets the display name, if any, of the actor.
public string? DisplayName { get; init; }Property Value
DisplayName
Gets the display name, if any, of the actor.
public string? DisplayName { get; init; }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
Handle
Gets the handle of the actor.
[JsonRequired]
public Handle Handle { get; init; }Property Value
- Handle
Handle
Gets the handle of the actor.
[JsonRequired]
public Handle Handle { get; init; }Property Value
- Handle
Handle
Gets the handle of the actor.
[JsonRequired]
public Handle Handle { get; init; }Property Value
- Handle
Labels
Gets any labels applied to the actor.
public IReadOnlyCollection<Label> Labels { get; init; }Property Value
- IReadOnlyCollection<Label>
Remarks
Labels will only be populated if a list of subscribed labelers from a user's idunno.Bluesky.Actor.Preferences is passed into an API which returns this class.
Labels
Gets any labels applied to the actor.
public IReadOnlyCollection<Label> Labels { get; init; }Property Value
- IReadOnlyCollection<Label>
Remarks
Labels will only be populated if a list of subscribed labelers from a user's idunno.Bluesky.Actor.Preferences is passed into an API which returns this class.
Labels
Gets any labels applied to the actor.
public IReadOnlyCollection<Label> Labels { get; init; }Property Value
- IReadOnlyCollection<Label>
Remarks
Labels will only be populated if a list of subscribed labelers from a user's idunno.Bluesky.Actor.Preferences is passed into an API which returns this class.
Pronouns
Gets the actor's pronouns, if any.
public string? Pronouns { get; init; }Property Value
Pronouns
Gets the actor's pronouns, if any.
public string? Pronouns { get; init; }Property Value
Pronouns
Gets the actor's pronouns, if any.
public string? Pronouns { get; init; }Property Value
SelfLabels
Returns a list of label values for labels that appear to have been applied by the actor to themselves, based on the label source and uri.
[JsonIgnore]
public IReadOnlyList<string> SelfLabels { get; }Property Value
Remarks
Known Bluesky label values can be found in idunno.Bluesky.SelfLabelValues.
This is computed from idunno.Bluesky.Actor.ProfileViewBasic.Labels on every call, so that a copy made with a different set of labels reports the self labels of those labels rather than those of the record it was copied from.
SelfLabels
Returns a list of label values for labels that appear to have been applied by the actor to themselves, based on the label source and uri.
[JsonIgnore]
public IReadOnlyList<string> SelfLabels { get; }Property Value
Remarks
Known Bluesky label values can be found in idunno.Bluesky.SelfLabelValues.
This is computed from idunno.Bluesky.Actor.ProfileViewBasic.Labels on every call, so that a copy made with a different set of labels reports the self labels of those labels rather than those of the record it was copied from.
SelfLabels
Returns a list of label values for labels that appear to have been applied by the actor to themselves, based on the label source and uri.
[JsonIgnore]
public IReadOnlyList<string> SelfLabels { get; }Property Value
Remarks
Known Bluesky label values can be found in idunno.Bluesky.SelfLabelValues.
This is computed from idunno.Bluesky.Actor.ProfileViewBasic.Labels on every call, so that a copy made with a different set of labels reports the self labels of those labels rather than those of the record it was copied from.
Status
Gets the idunno.Bluesky.Actor.StatusView of the actor, if any.
public StatusView? Status { get; init; }Property Value
Status
Gets the idunno.Bluesky.Actor.StatusView of the actor, if any.
public StatusView? Status { get; init; }Property Value
Status
Gets the idunno.Bluesky.Actor.StatusView of the actor, if any.
public StatusView? Status { get; init; }Property Value
Verification
Gets the idunno.Bluesky.Actor.VerificationState of the actor, if any.
public VerificationState? Verification { get; init; }Property Value
Verification
Gets the idunno.Bluesky.Actor.VerificationState of the actor, if any.
public VerificationState? Verification { get; init; }Property Value
Verification
Gets the idunno.Bluesky.Actor.VerificationState of the actor, if any.
public VerificationState? Verification { get; init; }Property Value
Viewer
Gets metadata about the requesting account's relationship with the subject account. Only has meaningful content for authenticated requests.
public ViewerState? Viewer { get; init; }Property Value
Viewer
Gets metadata about the requesting account's relationship with the subject account. Only has meaningful content for authenticated requests.
public ViewerState? Viewer { get; init; }Property Value
Viewer
Gets metadata about the requesting account's relationship with the subject account. Only has meaningful content for authenticated requests.
public ViewerState? Viewer { get; init; }Property Value
Website
Gets the actor's website, if any
public Uri? Website { get; init; }Property Value
- Uri?
Website
Gets the actor's website, if any
public Uri? Website { get; init; }Property Value
- Uri?
Website
Gets the actor's website, if any
public Uri? Website { get; init; }Property Value
- Uri?
Methods
<Clone>$()
public override ProfileViewBasic <Clone>$()Returns
<Clone>$()
public override ProfileViewBasic <Clone>$()Returns
<Clone>$()
public override ProfileViewBasic <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(ProfileViewBasic?)
public virtual bool Equals(ProfileViewBasic? other)Parameters
otherProfileViewBasic?
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(ProfileViewBasic?)
public virtual bool Equals(ProfileViewBasic? other)Parameters
otherProfileViewBasic?
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(ProfileViewBasic?)
public virtual bool Equals(ProfileViewBasic? other)Parameters
otherProfileViewBasic?
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()
Gets a string representation of the idunno.Bluesky.Actor.ProfileView. This returns the actor's display name, if any, otherwise returns the actor's handle.
public override string ToString()Returns
- string
-
A string representation of the idunno.Bluesky.Actor.ProfileView.
ToString()
Gets a string representation of the idunno.Bluesky.Actor.ProfileView. This returns the actor's display name, if any, otherwise returns the actor's handle.
public override string ToString()Returns
- string
-
A string representation of the idunno.Bluesky.Actor.ProfileView.
ToString()
Gets a string representation of the idunno.Bluesky.Actor.ProfileView. This returns the actor's display name, if any, otherwise returns the actor's handle.
public override string ToString()Returns
- string
-
A string representation of the idunno.Bluesky.Actor.ProfileView.
Operators
operator ==(ProfileViewBasic?, ProfileViewBasic?)
public static bool operator ==(ProfileViewBasic? left, ProfileViewBasic? right)Parameters
leftProfileViewBasic?rightProfileViewBasic?
Returns
operator ==(ProfileViewBasic?, ProfileViewBasic?)
public static bool operator ==(ProfileViewBasic? left, ProfileViewBasic? right)Parameters
leftProfileViewBasic?rightProfileViewBasic?
Returns
operator ==(ProfileViewBasic?, ProfileViewBasic?)
public static bool operator ==(ProfileViewBasic? left, ProfileViewBasic? right)Parameters
leftProfileViewBasic?rightProfileViewBasic?
Returns
operator !=(ProfileViewBasic?, ProfileViewBasic?)
public static bool operator !=(ProfileViewBasic? left, ProfileViewBasic? right)Parameters
leftProfileViewBasic?rightProfileViewBasic?
Returns
operator !=(ProfileViewBasic?, ProfileViewBasic?)
public static bool operator !=(ProfileViewBasic? left, ProfileViewBasic? right)Parameters
leftProfileViewBasic?rightProfileViewBasic?
Returns
operator !=(ProfileViewBasic?, ProfileViewBasic?)
public static bool operator !=(ProfileViewBasic? left, ProfileViewBasic? right)Parameters
leftProfileViewBasic?rightProfileViewBasic?