Class ProfileView
- Namespace
- idunno.Bluesky.Actor
- Assembly
- idunno.Bluesky.dll
Encapsulates a view over a user profile.
public record ProfileView : ProfileViewBasic, IEquatable<View>, IEquatable<ProfileViewBasic>, IEquatable<ProfileView>Inheritance
Derived
Implements
Inherited Members
Constructors
ProfileView(Did, Handle, string?, string?, string?, Uri?, Uri?, ProfileAssociated?, ViewerState?, IReadOnlyCollection<Label>?, DateTimeOffset?, DateTimeOffset?, VerificationState?, StatusView?)
Creates a new instance of idunno.Bluesky.Actor.ProfileView
[JsonConstructor]
public ProfileView(Did did, Handle handle, string? displayName, string? description, string? pronouns, Uri? website, Uri? avatar, ProfileAssociated? associated, ViewerState? viewer, IReadOnlyCollection<Label>? labels, DateTimeOffset? indexedAt, DateTimeOffset? createdAt, VerificationState? verification, StatusView? status = null)Parameters
didDid-
The idunno.AtProto.Did of the actor.
handleHandle-
The idunno.AtProto.Handle of the actor.
displayNamestring?-
The display name for the actor.
descriptionstring?-
The description 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.
indexedAtDateTimeOffset?-
The date and time the actor was last indexed.
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.
Exceptions
- ArgumentNullException
-
Thrown when
didorhandleare null.
ProfileView(ProfileView)
protected ProfileView(ProfileView original)Parameters
originalProfileView
ProfileView(Did, Handle, string?, string?, string?, Uri?, Uri?, ProfileAssociated?, ViewerState?, IReadOnlyCollection<Label>?, DateTimeOffset?, DateTimeOffset?, VerificationState?, StatusView?)
Creates a new instance of idunno.Bluesky.Actor.ProfileView
[JsonConstructor]
public ProfileView(Did did, Handle handle, string? displayName, string? description, string? pronouns, Uri? website, Uri? avatar, ProfileAssociated? associated, ViewerState? viewer, IReadOnlyCollection<Label>? labels, DateTimeOffset? indexedAt, DateTimeOffset? createdAt, VerificationState? verification, StatusView? status = null)Parameters
didDid-
The idunno.AtProto.Did of the actor.
handleHandle-
The idunno.AtProto.Handle of the actor.
displayNamestring?-
The display name for the actor.
descriptionstring?-
The description 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.
indexedAtDateTimeOffset?-
The date and time the actor was last indexed.
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.
Exceptions
- ArgumentNullException
-
Thrown when
didorhandleare null.
ProfileView(ProfileView)
protected ProfileView(ProfileView original)Parameters
originalProfileView
ProfileView(Did, Handle, string?, string?, string?, Uri?, Uri?, ProfileAssociated?, ViewerState?, IReadOnlyCollection<Label>?, DateTimeOffset?, DateTimeOffset?, VerificationState?, StatusView?)
Creates a new instance of idunno.Bluesky.Actor.ProfileView
[JsonConstructor]
public ProfileView(Did did, Handle handle, string? displayName, string? description, string? pronouns, Uri? website, Uri? avatar, ProfileAssociated? associated, ViewerState? viewer, IReadOnlyCollection<Label>? labels, DateTimeOffset? indexedAt, DateTimeOffset? createdAt, VerificationState? verification, StatusView? status = null)Parameters
didDid-
The idunno.AtProto.Did of the actor.
handleHandle-
The idunno.AtProto.Handle of the actor.
displayNamestring?-
The display name for the actor.
descriptionstring?-
The description 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.
indexedAtDateTimeOffset?-
The date and time the actor was last indexed.
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.
Exceptions
- ArgumentNullException
-
Thrown when
didorhandleare null.
ProfileView(ProfileView)
protected ProfileView(ProfileView original)Parameters
originalProfileView
Properties
Description
Gets the actor's profile description
public string? Description { get; init; }Property Value
Description
Gets the actor's profile description
public string? Description { get; init; }Property Value
Description
Gets the actor's profile description
public string? Description { 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
IndexedAt
Gets the date and time the actor was last indexed.
public DateTimeOffset? IndexedAt { get; init; }Property Value
IndexedAt
Gets the date and time the actor was last indexed.
public DateTimeOffset? IndexedAt { get; init; }Property Value
IndexedAt
Gets the date and time the actor was last indexed.
public DateTimeOffset? IndexedAt { get; init; }Property Value
Methods
<Clone>$()
public override ProfileView <Clone>$()Returns
<Clone>$()
public override ProfileView <Clone>$()Returns
<Clone>$()
public override ProfileView <Clone>$()Returns
Equals(object?)
public override bool Equals(object? obj)Parameters
objobject?
Returns
Equals(ProfileViewBasic?)
public override sealed bool Equals(ProfileViewBasic? other)Parameters
otherProfileViewBasic?
Returns
Equals(ProfileView?)
public virtual bool Equals(ProfileView? other)Parameters
otherProfileView?
Returns
Equals(object?)
public override bool Equals(object? obj)Parameters
objobject?
Returns
Equals(ProfileViewBasic?)
public override sealed bool Equals(ProfileViewBasic? other)Parameters
otherProfileViewBasic?
Returns
Equals(ProfileView?)
public virtual bool Equals(ProfileView? other)Parameters
otherProfileView?
Returns
Equals(object?)
public override bool Equals(object? obj)Parameters
objobject?
Returns
Equals(ProfileViewBasic?)
public override sealed bool Equals(ProfileViewBasic? other)Parameters
otherProfileViewBasic?
Returns
Equals(ProfileView?)
public virtual bool Equals(ProfileView? other)Parameters
otherProfileView?
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 ==(ProfileView?, ProfileView?)
public static bool operator ==(ProfileView? left, ProfileView? right)Parameters
leftProfileView?rightProfileView?
Returns
operator ==(ProfileView?, ProfileView?)
public static bool operator ==(ProfileView? left, ProfileView? right)Parameters
leftProfileView?rightProfileView?
Returns
operator ==(ProfileView?, ProfileView?)
public static bool operator ==(ProfileView? left, ProfileView? right)Parameters
leftProfileView?rightProfileView?
Returns
operator !=(ProfileView?, ProfileView?)
public static bool operator !=(ProfileView? left, ProfileView? right)Parameters
leftProfileView?rightProfileView?
Returns
operator !=(ProfileView?, ProfileView?)
public static bool operator !=(ProfileView? left, ProfileView? right)Parameters
leftProfileView?rightProfileView?
Returns
operator !=(ProfileView?, ProfileView?)
public static bool operator !=(ProfileView? left, ProfileView? right)Parameters
leftProfileView?rightProfileView?