Table of Contents

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

index ByteSlice

The byte slice the facet refers to.

features IList<FacetFeature>

A list of idunno.Bluesky.RichText.FacetFeatures for the facet.

Exceptions

ArgumentNullException

Thrown when index or features is null.

ArgumentOutOfRangeException

Thrown when features has no idunno.Bluesky.RichText.FacetFeatures.

Facet(Facet)

protected Facet(Facet original)

Parameters

original Facet

Facet(ByteSlice, IList<FacetFeature>)

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

[JsonConstructor]
public Facet(ByteSlice index, IList<FacetFeature> features)

Parameters

index ByteSlice

The byte slice the facet refers to.

features IList<FacetFeature>

A list of idunno.Bluesky.RichText.FacetFeatures for the facet.

Exceptions

ArgumentNullException

Thrown when index or features is null.

ArgumentOutOfRangeException

Thrown when features has no idunno.Bluesky.RichText.FacetFeatures.

Facet(Facet)

protected Facet(Facet original)

Parameters

original Facet

Facet(ByteSlice, IList<FacetFeature>)

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

[JsonConstructor]
public Facet(ByteSlice index, IList<FacetFeature> features)

Parameters

index ByteSlice

The byte slice the facet refers to.

features IList<FacetFeature>

A list of idunno.Bluesky.RichText.FacetFeatures for the facet.

Exceptions

ArgumentNullException

Thrown when index or features is null.

ArgumentOutOfRangeException

Thrown when features has no idunno.Bluesky.RichText.FacetFeatures.

Facet(Facet)

protected Facet(Facet original)

Parameters

original Facet

Properties

EqualityContract

protected virtual Type EqualityContract { get; }

Property Value

Type

EqualityContract

protected virtual Type EqualityContract { get; }

Property Value

Type

EqualityContract

protected virtual Type EqualityContract { get; }

Property Value

Type

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

IDictionary<string, JsonElement>?

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

IDictionary<string, JsonElement>?

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

IDictionary<string, JsonElement>?

Features

A list of idunno.Bluesky.RichText.FacetFeatures for the facet.

[JsonInclude]
[JsonRequired]
public IList<FacetFeature> Features { get; init; }

Property Value

IList<FacetFeature>

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

IList<FacetFeature>

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

IList<FacetFeature>

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

ByteSlice

Index

The byte slice the facet refers to.

[JsonInclude]
[JsonRequired]
public ByteSlice Index { get; init; }

Property Value

ByteSlice

Index

The byte slice the facet refers to.

[JsonInclude]
[JsonRequired]
public ByteSlice Index { get; init; }

Property Value

ByteSlice

Methods

<Clone>$()

public virtual Facet <Clone>$()

Returns

Facet

<Clone>$()

public virtual Facet <Clone>$()

Returns

Facet

<Clone>$()

public virtual Facet <Clone>$()

Returns

Facet

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object?

Returns

bool

Equals(Facet?)

public virtual bool Equals(Facet? other)

Parameters

other Facet?

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object?

Returns

bool

Equals(Facet?)

public virtual bool Equals(Facet? other)

Parameters

other Facet?

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object?

Returns

bool

Equals(Facet?)

public virtual bool Equals(Facet? other)

Parameters

other Facet?

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 virtual bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

PrintMembers(StringBuilder)

protected virtual bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

PrintMembers(StringBuilder)

protected virtual bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

ToString()

public override string ToString()

Returns

string

ToString()

public override string ToString()

Returns

string

ToString()

public override string ToString()

Returns

string

Operators

operator ==(Facet?, Facet?)

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

Parameters

left Facet?
right Facet?

Returns

bool

operator ==(Facet?, Facet?)

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

Parameters

left Facet?
right Facet?

Returns

bool

operator ==(Facet?, Facet?)

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

Parameters

left Facet?
right Facet?

Returns

bool

operator !=(Facet?, Facet?)

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

Parameters

left Facet?
right Facet?

Returns

bool

operator !=(Facet?, Facet?)

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

Parameters

left Facet?
right Facet?

Returns

bool

operator !=(Facet?, Facet?)

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

Parameters

left Facet?
right Facet?

Returns

bool