Class Facet
- Namespace
- idunno.Bluesky.RichText
- Assembly
- idunno.Bluesky.dll
Annotation of a sub-string within rich text.
[JsonPolymorphic]
[JsonDerivedType(typeof(Facet), "app.bsky.richtext.facet")]
public record Facet : IEquatable<Facet>Inheritance
Implements
Inherited Members
Constructors
Facet(ByteSlice, IList<FacetFeature>)
Creates a new instance of idunno.Bluesky.RichText.Facet.
[JsonConstructor]
public Facet(ByteSlice index, IList<FacetFeature> features)Parameters
indexByteSlice-
The byte slice the facet refers to.
featuresIList<FacetFeature>-
A list of idunno.Bluesky.RichText.FacetFeatures for the facet.
Exceptions
- ArgumentNullException
-
Thrown when
indexorfeaturesis null. - ArgumentOutOfRangeException
-
Thrown when
featureshas no idunno.Bluesky.RichText.FacetFeatures.
Facet(Facet)
protected Facet(Facet original)Parameters
originalFacet
Facet(ByteSlice, IList<FacetFeature>)
Creates a new instance of idunno.Bluesky.RichText.Facet.
[JsonConstructor]
public Facet(ByteSlice index, IList<FacetFeature> features)Parameters
indexByteSlice-
The byte slice the facet refers to.
featuresIList<FacetFeature>-
A list of idunno.Bluesky.RichText.FacetFeatures for the facet.
Exceptions
- ArgumentNullException
-
Thrown when
indexorfeaturesis null. - ArgumentOutOfRangeException
-
Thrown when
featureshas no idunno.Bluesky.RichText.FacetFeatures.
Facet(Facet)
protected Facet(Facet original)Parameters
originalFacet
Facet(ByteSlice, IList<FacetFeature>)
Creates a new instance of idunno.Bluesky.RichText.Facet.
[JsonConstructor]
public Facet(ByteSlice index, IList<FacetFeature> features)Parameters
indexByteSlice-
The byte slice the facet refers to.
featuresIList<FacetFeature>-
A list of idunno.Bluesky.RichText.FacetFeatures for the facet.
Exceptions
- ArgumentNullException
-
Thrown when
indexorfeaturesis null. - ArgumentOutOfRangeException
-
Thrown when
featureshas no idunno.Bluesky.RichText.FacetFeatures.
Facet(Facet)
protected Facet(Facet original)Parameters
originalFacet
Properties
EqualityContract
protected virtual Type EqualityContract { get; }Property Value
EqualityContract
protected virtual Type EqualityContract { get; }Property Value
EqualityContract
protected virtual Type EqualityContract { get; }Property Value
ExtensionData
A list of keys and element data that do not map to any strongly typed properties.
[JsonExtensionData]
public IDictionary<string, JsonElement>? ExtensionData { get; set; }Property Value
ExtensionData
A list of keys and element data that do not map to any strongly typed properties.
[JsonExtensionData]
public IDictionary<string, JsonElement>? ExtensionData { get; set; }Property Value
ExtensionData
A list of keys and element data that do not map to any strongly typed properties.
[JsonExtensionData]
public IDictionary<string, JsonElement>? ExtensionData { get; set; }Property Value
Features
A list of idunno.Bluesky.RichText.FacetFeatures for the facet.
[JsonInclude]
[JsonRequired]
public IList<FacetFeature> Features { get; init; }Property Value
Remarks
The collection is copied when it is set, so later changes to the collection the caller supplied do not alter the facet, and the returned collection is read only.
Features
A list of idunno.Bluesky.RichText.FacetFeatures for the facet.
[JsonInclude]
[JsonRequired]
public IList<FacetFeature> Features { get; init; }Property Value
Remarks
The collection is copied when it is set, so later changes to the collection the caller supplied do not alter the facet, and the returned collection is read only.
Features
A list of idunno.Bluesky.RichText.FacetFeatures for the facet.
[JsonInclude]
[JsonRequired]
public IList<FacetFeature> Features { get; init; }Property Value
Remarks
The collection is copied when it is set, so later changes to the collection the caller supplied do not alter the facet, and the returned collection is read only.
Index
The byte slice the facet refers to.
[JsonInclude]
[JsonRequired]
public ByteSlice Index { get; init; }Property Value
Index
The byte slice the facet refers to.
[JsonInclude]
[JsonRequired]
public ByteSlice Index { get; init; }Property Value
Index
The byte slice the facet refers to.
[JsonInclude]
[JsonRequired]
public ByteSlice Index { get; init; }Property Value
Methods
<Clone>$()
public virtual Facet <Clone>$()Returns
<Clone>$()
public virtual Facet <Clone>$()Returns
<Clone>$()
public virtual Facet <Clone>$()Returns
Equals(object?)
public override bool Equals(object? obj)Parameters
objobject?
Returns
Equals(Facet?)
public virtual bool Equals(Facet? other)Parameters
otherFacet?
Returns
Equals(object?)
public override bool Equals(object? obj)Parameters
objobject?
Returns
Equals(Facet?)
public virtual bool Equals(Facet? other)Parameters
otherFacet?
Returns
Equals(object?)
public override bool Equals(object? obj)Parameters
objobject?
Returns
Equals(Facet?)
public virtual bool Equals(Facet? other)Parameters
otherFacet?
Returns
GetHashCode()
public override int GetHashCode()Returns
GetHashCode()
public override int GetHashCode()Returns
GetHashCode()
public override int GetHashCode()Returns
PrintMembers(StringBuilder)
protected virtual bool PrintMembers(StringBuilder builder)Parameters
builderStringBuilder
Returns
PrintMembers(StringBuilder)
protected virtual bool PrintMembers(StringBuilder builder)Parameters
builderStringBuilder
Returns
PrintMembers(StringBuilder)
protected virtual 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 ==(Facet?, Facet?)
public static bool operator ==(Facet? left, Facet? right)Parameters
Returns
operator ==(Facet?, Facet?)
public static bool operator ==(Facet? left, Facet? right)Parameters
Returns
operator ==(Facet?, Facet?)
public static bool operator ==(Facet? left, Facet? right)Parameters
Returns
operator !=(Facet?, Facet?)
public static bool operator !=(Facet? left, Facet? right)Parameters
Returns
operator !=(Facet?, Facet?)
public static bool operator !=(Facet? left, Facet? right)Parameters
Returns
operator !=(Facet?, Facet?)
public static bool operator !=(Facet? left, Facet? right)