Table of Contents

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

did Did

The idunno.Bluesky.Actor.ProfileViewBasic.Did of the actor.

handle Handle

The idunno.Bluesky.Actor.ProfileViewBasic.Handle of the actor.

displayName string?

The display name for the actor.

pronouns string?

The actor's pronouns, if any.

website Uri?

The actor's website, if any.

avatar Uri?

A System.Uri to the actor's avatar, if any.

associated ProfileAssociated?

Properties associated with the actor.

viewer ViewerState?

Metadata about the current user's relationship to the actor.

labels IReadOnlyCollection<Label>?

Labels applied to the actor.

createdAt DateTimeOffset?

The date and time the actor was created.

verification VerificationState?

The idunno.Bluesky.Actor.VerificationState of the actor, if any.

status StatusView?

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 did or handle are null.

ProfileViewBasic(ProfileViewBasic)

protected ProfileViewBasic(ProfileViewBasic original)

Parameters

original ProfileViewBasic

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

did Did

The idunno.Bluesky.Actor.ProfileViewBasic.Did of the actor.

handle Handle

The idunno.Bluesky.Actor.ProfileViewBasic.Handle of the actor.

displayName string?

The display name for the actor.

pronouns string?

The actor's pronouns, if any.

website Uri?

The actor's website, if any.

avatar Uri?

A System.Uri to the actor's avatar, if any.

associated ProfileAssociated?

Properties associated with the actor.

viewer ViewerState?

Metadata about the current user's relationship to the actor.

labels IReadOnlyCollection<Label>?

Labels applied to the actor.

createdAt DateTimeOffset?

The date and time the actor was created.

verification VerificationState?

The idunno.Bluesky.Actor.VerificationState of the actor, if any.

status StatusView?

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 did or handle are null.

ProfileViewBasic(ProfileViewBasic)

protected ProfileViewBasic(ProfileViewBasic original)

Parameters

original ProfileViewBasic

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

did Did

The idunno.Bluesky.Actor.ProfileViewBasic.Did of the actor.

handle Handle

The idunno.Bluesky.Actor.ProfileViewBasic.Handle of the actor.

displayName string?

The display name for the actor.

pronouns string?

The actor's pronouns, if any.

website Uri?

The actor's website, if any.

avatar Uri?

A System.Uri to the actor's avatar, if any.

associated ProfileAssociated?

Properties associated with the actor.

viewer ViewerState?

Metadata about the current user's relationship to the actor.

labels IReadOnlyCollection<Label>?

Labels applied to the actor.

createdAt DateTimeOffset?

The date and time the actor was created.

verification VerificationState?

The idunno.Bluesky.Actor.VerificationState of the actor, if any.

status StatusView?

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 did or handle are null.

ProfileViewBasic(ProfileViewBasic)

protected ProfileViewBasic(ProfileViewBasic original)

Parameters

original ProfileViewBasic

Properties

Associated

Gets the Associated properties for the subject.

public ProfileAssociated? Associated { get; init; }

Property Value

ProfileAssociated?

Associated

Gets the Associated properties for the subject.

public ProfileAssociated? Associated { get; init; }

Property Value

ProfileAssociated?

Associated

Gets the Associated properties for the subject.

public ProfileAssociated? Associated { get; init; }

Property Value

ProfileAssociated?

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

DateTimeOffset?

CreatedAt

Gets the date and time the actor was created at.

public DateTimeOffset? CreatedAt { get; init; }

Property Value

DateTimeOffset?

CreatedAt

Gets the date and time the actor was created at.

public DateTimeOffset? CreatedAt { get; init; }

Property Value

DateTimeOffset?

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

string?

DisplayName

Gets the display name, if any, of the actor.

public string? DisplayName { get; init; }

Property Value

string?

DisplayName

Gets the display name, if any, of the actor.

public string? DisplayName { get; init; }

Property Value

string?

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

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

string?

Pronouns

Gets the actor's pronouns, if any.

public string? Pronouns { get; init; }

Property Value

string?

Pronouns

Gets the actor's pronouns, if any.

public string? Pronouns { get; init; }

Property Value

string?

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

IReadOnlyList<string>

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

IReadOnlyList<string>

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

IReadOnlyList<string>

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

StatusView?

Status

Gets the idunno.Bluesky.Actor.StatusView of the actor, if any.

public StatusView? Status { get; init; }

Property Value

StatusView?

Status

Gets the idunno.Bluesky.Actor.StatusView of the actor, if any.

public StatusView? Status { get; init; }

Property Value

StatusView?

Verification

Gets the idunno.Bluesky.Actor.VerificationState of the actor, if any.

public VerificationState? Verification { get; init; }

Property Value

VerificationState?

Verification

Gets the idunno.Bluesky.Actor.VerificationState of the actor, if any.

public VerificationState? Verification { get; init; }

Property Value

VerificationState?

Verification

Gets the idunno.Bluesky.Actor.VerificationState of the actor, if any.

public VerificationState? Verification { get; init; }

Property Value

VerificationState?

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

ViewerState?

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

ViewerState?

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

ViewerState?

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

ProfileViewBasic

<Clone>$()

public override ProfileViewBasic <Clone>$()

Returns

ProfileViewBasic

<Clone>$()

public override ProfileViewBasic <Clone>$()

Returns

ProfileViewBasic

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(ProfileViewBasic?)

public virtual bool Equals(ProfileViewBasic? other)

Parameters

other ProfileViewBasic?

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(ProfileViewBasic?)

public virtual bool Equals(ProfileViewBasic? other)

Parameters

other ProfileViewBasic?

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(ProfileViewBasic?)

public virtual bool Equals(ProfileViewBasic? other)

Parameters

other ProfileViewBasic?

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()

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

left ProfileViewBasic?
right ProfileViewBasic?

Returns

bool

operator ==(ProfileViewBasic?, ProfileViewBasic?)

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

Parameters

left ProfileViewBasic?
right ProfileViewBasic?

Returns

bool

operator ==(ProfileViewBasic?, ProfileViewBasic?)

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

Parameters

left ProfileViewBasic?
right ProfileViewBasic?

Returns

bool

operator !=(ProfileViewBasic?, ProfileViewBasic?)

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

Parameters

left ProfileViewBasic?
right ProfileViewBasic?

Returns

bool

operator !=(ProfileViewBasic?, ProfileViewBasic?)

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

Parameters

left ProfileViewBasic?
right ProfileViewBasic?

Returns

bool

operator !=(ProfileViewBasic?, ProfileViewBasic?)

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

Parameters

left ProfileViewBasic?
right ProfileViewBasic?

Returns

bool