Class LinkFacetFeature
- Namespace
- idunno.Bluesky.RichText
- Assembly
- idunno.Bluesky.dll
Facet feature for a URL. The text URL may have been simplified or truncated, but the facet reference should be a complete URL.
public sealed record LinkFacetFeature : FacetFeature, IEquatable<FacetFeature>, IEquatable<LinkFacetFeature>Inheritance
Implements
Inherited Members
Constructors
LinkFacetFeature(string)
Constructs a new instance of idunno.Bluesky.RichText.LinkFacetFeature.
[JsonConstructor]
public LinkFacetFeature(string uri)Parameters
uristring-
The uri, as a string, for the facet.
Exceptions
- ArgumentException
-
Thrown when
uriis null or whitespace.
LinkFacetFeature(string)
Constructs a new instance of idunno.Bluesky.RichText.LinkFacetFeature.
[JsonConstructor]
public LinkFacetFeature(string uri)Parameters
uristring-
The uri, as a string, for the facet.
Exceptions
- ArgumentException
-
Thrown when
uriis null or whitespace.
LinkFacetFeature(string)
Constructs a new instance of idunno.Bluesky.RichText.LinkFacetFeature.
[JsonConstructor]
public LinkFacetFeature(string uri)Parameters
uristring-
The uri, as a string, for the facet.
Exceptions
- ArgumentException
-
Thrown when
uriis null or whitespace.
Properties
EqualityContract
protected override Type EqualityContract { get; }Property Value
EqualityContract
protected override Type EqualityContract { get; }Property Value
EqualityContract
protected override Type EqualityContract { get; }Property Value
Uri
The uri, as a string, for the facet.
[JsonInclude]
[JsonRequired]
public string Uri { get; init; }Property Value
Remarks
This property is a string to accommodate illegal URIs that the Bluesky web app can create. Validate the URI before using it.
Uri
The uri, as a string, for the facet.
[JsonInclude]
[JsonRequired]
public string Uri { get; init; }Property Value
Remarks
This property is a string to accommodate illegal URIs that the Bluesky web app can create. Validate the URI before using it.
Uri
The uri, as a string, for the facet.
[JsonInclude]
[JsonRequired]
public string Uri { get; init; }Property Value
Remarks
This property is a string to accommodate illegal URIs that the Bluesky web app can create. Validate the URI before using it.
Methods
<Clone>$()
public override LinkFacetFeature <Clone>$()Returns
<Clone>$()
public override LinkFacetFeature <Clone>$()Returns
<Clone>$()
public override LinkFacetFeature <Clone>$()Returns
Equals(object?)
public override bool Equals(object? obj)Parameters
objobject?
Returns
Equals(FacetFeature?)
public override sealed bool Equals(FacetFeature? other)Parameters
otherFacetFeature?
Returns
Equals(LinkFacetFeature?)
public bool Equals(LinkFacetFeature? other)Parameters
otherLinkFacetFeature?
Returns
Equals(object?)
public override bool Equals(object? obj)Parameters
objobject?
Returns
Equals(FacetFeature?)
public override sealed bool Equals(FacetFeature? other)Parameters
otherFacetFeature?
Returns
Equals(LinkFacetFeature?)
public bool Equals(LinkFacetFeature? other)Parameters
otherLinkFacetFeature?
Returns
Equals(object?)
public override bool Equals(object? obj)Parameters
objobject?
Returns
Equals(FacetFeature?)
public override sealed bool Equals(FacetFeature? other)Parameters
otherFacetFeature?
Returns
Equals(LinkFacetFeature?)
public bool Equals(LinkFacetFeature? other)Parameters
otherLinkFacetFeature?
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()
public override string ToString()Returns
ToString()
public override string ToString()Returns
ToString()
public override string ToString()Returns
Operators
operator ==(LinkFacetFeature?, LinkFacetFeature?)
public static bool operator ==(LinkFacetFeature? left, LinkFacetFeature? right)Parameters
leftLinkFacetFeature?rightLinkFacetFeature?
Returns
operator ==(LinkFacetFeature?, LinkFacetFeature?)
public static bool operator ==(LinkFacetFeature? left, LinkFacetFeature? right)Parameters
leftLinkFacetFeature?rightLinkFacetFeature?
Returns
operator ==(LinkFacetFeature?, LinkFacetFeature?)
public static bool operator ==(LinkFacetFeature? left, LinkFacetFeature? right)Parameters
leftLinkFacetFeature?rightLinkFacetFeature?
Returns
operator !=(LinkFacetFeature?, LinkFacetFeature?)
public static bool operator !=(LinkFacetFeature? left, LinkFacetFeature? right)Parameters
leftLinkFacetFeature?rightLinkFacetFeature?
Returns
operator !=(LinkFacetFeature?, LinkFacetFeature?)
public static bool operator !=(LinkFacetFeature? left, LinkFacetFeature? right)Parameters
leftLinkFacetFeature?rightLinkFacetFeature?
Returns
operator !=(LinkFacetFeature?, LinkFacetFeature?)
public static bool operator !=(LinkFacetFeature? left, LinkFacetFeature? right)Parameters
leftLinkFacetFeature?rightLinkFacetFeature?