Table of Contents

Class Mention

Namespace
idunno.Bluesky.RichText
Assembly
idunno.Bluesky.dll

Provides an object representation of a mention in a Bluesky post.

public sealed record Mention : PostBuilderFacetFeature, IEquatable<PostBuilderFacetFeature>, IEquatable<Mention>

Inheritance

Implements

Inherited Members

Constructors

Mention(Did, string)

Creates a new instance of idunno.Bluesky.RichText.Mention.

public Mention(Did did, string text)

Parameters

did Did

The idunno.Bluesky.RichText.Mention.Did of the actor being mentioned.

text string

The text to "wrap" the mention around.

Exceptions

ArgumentNullException

Thrown when did is null.

Mention(Did, Handle)

Creates a new instance of idunno.Bluesky.RichText.Mention.

public Mention(Did did, Handle handle)

Parameters

did Did

The idunno.Bluesky.RichText.Mention.Did of the actor being mentioned.

handle Handle

The idunno.AtProto.Handle of the actor being mentioned, which will generate the text for the facet.

Exceptions

ArgumentNullException

Thrown when did or handle is null.

Mention(Did, string)

Creates a new instance of idunno.Bluesky.RichText.Mention.

public Mention(Did did, string text)

Parameters

did Did

The idunno.Bluesky.RichText.Mention.Did of the actor being mentioned.

text string

The text to "wrap" the mention around.

Exceptions

ArgumentNullException

Thrown when did is null.

Mention(Did, Handle)

Creates a new instance of idunno.Bluesky.RichText.Mention.

public Mention(Did did, Handle handle)

Parameters

did Did

The idunno.Bluesky.RichText.Mention.Did of the actor being mentioned.

handle Handle

The idunno.AtProto.Handle of the actor being mentioned, which will generate the text for the facet.

Exceptions

ArgumentNullException

Thrown when did or handle is null.

Mention(Did, string)

Creates a new instance of idunno.Bluesky.RichText.Mention.

public Mention(Did did, string text)

Parameters

did Did

The idunno.Bluesky.RichText.Mention.Did of the actor being mentioned.

text string

The text to "wrap" the mention around.

Exceptions

ArgumentNullException

Thrown when did is null.

Mention(Did, Handle)

Creates a new instance of idunno.Bluesky.RichText.Mention.

public Mention(Did did, Handle handle)

Parameters

did Did

The idunno.Bluesky.RichText.Mention.Did of the actor being mentioned.

handle Handle

The idunno.AtProto.Handle of the actor being mentioned, which will generate the text for the facet.

Exceptions

ArgumentNullException

Thrown when did or handle is null.

Properties

Did

Gets the idunno.Bluesky.RichText.Mention.Did of the actor being mentioned in the facet feature.

public Did Did { get; init; }

Property Value

Did

Did

Gets the idunno.Bluesky.RichText.Mention.Did of the actor being mentioned in the facet feature.

public Did Did { get; init; }

Property Value

Did

Did

Gets the idunno.Bluesky.RichText.Mention.Did of the actor being mentioned in the facet feature.

public Did Did { get; init; }

Property Value

Did

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

Methods

<Clone>$()

public override Mention <Clone>$()

Returns

Mention

<Clone>$()

public override Mention <Clone>$()

Returns

Mention

<Clone>$()

public override Mention <Clone>$()

Returns

Mention

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object?

Returns

bool

Equals(PostBuilderFacetFeature?)

public override sealed bool Equals(PostBuilderFacetFeature? other)

Parameters

other PostBuilderFacetFeature?

Returns

bool

Equals(Mention?)

public bool Equals(Mention? other)

Parameters

other Mention?

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object?

Returns

bool

Equals(PostBuilderFacetFeature?)

public override sealed bool Equals(PostBuilderFacetFeature? other)

Parameters

other PostBuilderFacetFeature?

Returns

bool

Equals(Mention?)

public bool Equals(Mention? other)

Parameters

other Mention?

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object?

Returns

bool

Equals(PostBuilderFacetFeature?)

public override sealed bool Equals(PostBuilderFacetFeature? other)

Parameters

other PostBuilderFacetFeature?

Returns

bool

Equals(Mention?)

public bool Equals(Mention? other)

Parameters

other Mention?

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

Returns a string that represents the current object.

public override string ToString()

Returns

string

The text of the facet, or an empty string if the facet has no text.

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

The text of the facet, or an empty string if the facet has no text.

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

The text of the facet, or an empty string if the facet has no text.

Operators

operator ==(Mention?, Mention?)

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

Parameters

left Mention?
right Mention?

Returns

bool

operator ==(Mention?, Mention?)

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

Parameters

left Mention?
right Mention?

Returns

bool

operator ==(Mention?, Mention?)

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

Parameters

left Mention?
right Mention?

Returns

bool

operator !=(Mention?, Mention?)

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

Parameters

left Mention?
right Mention?

Returns

bool

operator !=(Mention?, Mention?)

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

Parameters

left Mention?
right Mention?

Returns

bool

operator !=(Mention?, Mention?)

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

Parameters

left Mention?
right Mention?

Returns

bool