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
didDid-
The idunno.Bluesky.RichText.Mention.Did of the actor being mentioned.
textstring-
The text to "wrap" the mention around.
Exceptions
- ArgumentNullException
-
Thrown when
didis null.
Mention(Did, Handle)
Creates a new instance of idunno.Bluesky.RichText.Mention.
public Mention(Did did, Handle handle)Parameters
didDid-
The idunno.Bluesky.RichText.Mention.Did of the actor being mentioned.
handleHandle-
The idunno.AtProto.Handle of the actor being mentioned, which will generate the text for the facet.
Exceptions
- ArgumentNullException
-
Thrown when
didorhandleis null.
Mention(Did, string)
Creates a new instance of idunno.Bluesky.RichText.Mention.
public Mention(Did did, string text)Parameters
didDid-
The idunno.Bluesky.RichText.Mention.Did of the actor being mentioned.
textstring-
The text to "wrap" the mention around.
Exceptions
- ArgumentNullException
-
Thrown when
didis null.
Mention(Did, Handle)
Creates a new instance of idunno.Bluesky.RichText.Mention.
public Mention(Did did, Handle handle)Parameters
didDid-
The idunno.Bluesky.RichText.Mention.Did of the actor being mentioned.
handleHandle-
The idunno.AtProto.Handle of the actor being mentioned, which will generate the text for the facet.
Exceptions
- ArgumentNullException
-
Thrown when
didorhandleis null.
Mention(Did, string)
Creates a new instance of idunno.Bluesky.RichText.Mention.
public Mention(Did did, string text)Parameters
didDid-
The idunno.Bluesky.RichText.Mention.Did of the actor being mentioned.
textstring-
The text to "wrap" the mention around.
Exceptions
- ArgumentNullException
-
Thrown when
didis null.
Mention(Did, Handle)
Creates a new instance of idunno.Bluesky.RichText.Mention.
public Mention(Did did, Handle handle)Parameters
didDid-
The idunno.Bluesky.RichText.Mention.Did of the actor being mentioned.
handleHandle-
The idunno.AtProto.Handle of the actor being mentioned, which will generate the text for the facet.
Exceptions
- ArgumentNullException
-
Thrown when
didorhandleis 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
EqualityContract
protected override Type EqualityContract { get; }Property Value
EqualityContract
protected override Type EqualityContract { get; }Property Value
Methods
<Clone>$()
public override Mention <Clone>$()Returns
<Clone>$()
public override Mention <Clone>$()Returns
<Clone>$()
public override Mention <Clone>$()Returns
Equals(object?)
public override bool Equals(object? obj)Parameters
objobject?
Returns
Equals(PostBuilderFacetFeature?)
public override sealed bool Equals(PostBuilderFacetFeature? other)Parameters
otherPostBuilderFacetFeature?
Returns
Equals(Mention?)
public bool Equals(Mention? other)Parameters
otherMention?
Returns
Equals(object?)
public override bool Equals(object? obj)Parameters
objobject?
Returns
Equals(PostBuilderFacetFeature?)
public override sealed bool Equals(PostBuilderFacetFeature? other)Parameters
otherPostBuilderFacetFeature?
Returns
Equals(Mention?)
public bool Equals(Mention? other)Parameters
otherMention?
Returns
Equals(object?)
public override bool Equals(object? obj)Parameters
objobject?
Returns
Equals(PostBuilderFacetFeature?)
public override sealed bool Equals(PostBuilderFacetFeature? other)Parameters
otherPostBuilderFacetFeature?
Returns
Equals(Mention?)
public bool Equals(Mention? other)Parameters
otherMention?
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()
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
Returns
operator ==(Mention?, Mention?)
public static bool operator ==(Mention? left, Mention? right)Parameters
Returns
operator ==(Mention?, Mention?)
public static bool operator ==(Mention? left, Mention? right)Parameters
Returns
operator !=(Mention?, Mention?)
public static bool operator !=(Mention? left, Mention? right)Parameters
Returns
operator !=(Mention?, Mention?)
public static bool operator !=(Mention? left, Mention? right)Parameters
Returns
operator !=(Mention?, Mention?)
public static bool operator !=(Mention? left, Mention? right)