Table of Contents

Class Link

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

Provides an object representation of a link tag in a Bluesky post.

public record Link : PostBuilderFacetFeature, IEquatable<PostBuilderFacetFeature>, IEquatable<Link>

Inheritance

Implements

Inherited Members

Constructors

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

public Link(string uri)

Parameters

uri string

The System.Uri to add to a post.

Exceptions

ArgumentException

Thrown when uri is null or is not a valid System.Uri.

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

public Link(Uri uri)

Parameters

uri Uri

The System.Uri to add to a post.

Exceptions

ArgumentNullException

Thrown when uri is null.

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

public Link(Uri uri, string text)

Parameters

uri Uri

The idunno.Bluesky.RichText.Link.Uri to add to a post.

text string

The text to wrap the hashtag around.

Exceptions

ArgumentException

Thrown when text is null or white space.

ArgumentNullException

Thrown when uri is null.

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

public Link(string uri, string text)

Parameters

uri string

The System.Uri to add to a post.

text string

The text to wrap the hashtag around, if any. If not specified the uri will be used..

Exceptions

ArgumentException

when uri or text is null or white space.

protected Link(Link original)

Parameters

original Link

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

public Link(string uri)

Parameters

uri string

The System.Uri to add to a post.

Exceptions

ArgumentException

Thrown when uri is null or is not a valid System.Uri.

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

public Link(Uri uri)

Parameters

uri Uri

The System.Uri to add to a post.

Exceptions

ArgumentNullException

Thrown when uri is null.

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

public Link(Uri uri, string text)

Parameters

uri Uri

The idunno.Bluesky.RichText.Link.Uri to add to a post.

text string

The text to wrap the hashtag around.

Exceptions

ArgumentException

Thrown when text is null or white space.

ArgumentNullException

Thrown when uri is null.

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

public Link(string uri, string text)

Parameters

uri string

The System.Uri to add to a post.

text string

The text to wrap the hashtag around, if any. If not specified the uri will be used..

Exceptions

ArgumentException

when uri or text is null or white space.

protected Link(Link original)

Parameters

original Link

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

public Link(string uri)

Parameters

uri string

The System.Uri to add to a post.

Exceptions

ArgumentException

Thrown when uri is null or is not a valid System.Uri.

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

public Link(Uri uri)

Parameters

uri Uri

The System.Uri to add to a post.

Exceptions

ArgumentNullException

Thrown when uri is null.

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

public Link(Uri uri, string text)

Parameters

uri Uri

The idunno.Bluesky.RichText.Link.Uri to add to a post.

text string

The text to wrap the hashtag around.

Exceptions

ArgumentException

Thrown when text is null or white space.

ArgumentNullException

Thrown when uri is null.

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

public Link(string uri, string text)

Parameters

uri string

The System.Uri to add to a post.

text string

The text to wrap the hashtag around, if any. If not specified the uri will be used..

Exceptions

ArgumentException

when uri or text is null or white space.

protected Link(Link original)

Parameters

original Link

Properties

protected override Type EqualityContract { get; }

Property Value

Type
protected override Type EqualityContract { get; }

Property Value

Type
protected override Type EqualityContract { get; }

Property Value

Type

Gets the idunno.Bluesky.RichText.Link.Uri the facet feature links to.

public Uri Uri { get; init; }

Property Value

Uri

Gets the idunno.Bluesky.RichText.Link.Uri the facet feature links to.

public Uri Uri { get; init; }

Property Value

Uri

Gets the idunno.Bluesky.RichText.Link.Uri the facet feature links to.

public Uri Uri { get; init; }

Property Value

Uri

Methods

public override Link <Clone>$()

Returns

Link
public override Link <Clone>$()

Returns

Link
public override Link <Clone>$()

Returns

Link
public override bool Equals(object? obj)

Parameters

obj object?

Returns

bool
public override sealed bool Equals(PostBuilderFacetFeature? other)

Parameters

other PostBuilderFacetFeature?

Returns

bool
public virtual bool Equals(Link? other)

Parameters

other Link?

Returns

bool
public override bool Equals(object? obj)

Parameters

obj object?

Returns

bool
public override sealed bool Equals(PostBuilderFacetFeature? other)

Parameters

other PostBuilderFacetFeature?

Returns

bool
public virtual bool Equals(Link? other)

Parameters

other Link?

Returns

bool
public override bool Equals(object? obj)

Parameters

obj object?

Returns

bool
public override sealed bool Equals(PostBuilderFacetFeature? other)

Parameters

other PostBuilderFacetFeature?

Returns

bool
public virtual bool Equals(Link? other)

Parameters

other Link?

Returns

bool
public override int GetHashCode()

Returns

int
public override int GetHashCode()

Returns

int
public override int GetHashCode()

Returns

int
protected override bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool
protected override bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool
protected override bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

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.

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.

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

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

Parameters

left Link?
right Link?

Returns

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

Parameters

left Link?
right Link?

Returns

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

Parameters

left Link?
right Link?

Returns

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

Parameters

left Link?
right Link?

Returns

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

Parameters

left Link?
right Link?

Returns

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

Parameters

left Link?
right Link?

Returns

bool