Table of Contents

Class EmbeddedExternal

Namespace
idunno.Bluesky.Embed
Assembly
idunno.Bluesky.dll

A representation of some externally linked content (eg, a URL and 'card'), embedded in a Bluesky record (eg, a post)

public sealed record EmbeddedExternal : EmbeddedBase, IEquatable<AtProtoRecord>, IEquatable<EmbeddedBase>, IEquatable<EmbeddedExternal>

Inheritance

AtProtoRecord

Implements

Inherited Members

AtProtoRecord.Equals(AtProtoRecord?)
AtProtoRecord.GetHashCode()
AtProtoRecord.ToString()
AtProtoRecord.Equals(object?)
AtProtoRecord.<Clone>$()
AtProtoRecord.ExtensionData

Constructors

EmbeddedExternal(Properties)

Creates a new instance of idunno.Bluesky.Embed.EmbeddedExternal

[JsonConstructor]
public EmbeddedExternal(Properties external)

Parameters

external Properties

The properties for the externally linked content.

Exceptions

ArgumentNullException

Thrown when external is null.

EmbeddedExternal(string, string, string, Blob?, StrongReference[]?)

Creates a new instance of idunno.Bluesky.Embed.EmbeddedExternal.

public EmbeddedExternal(string uri, string title, string description, Blob? thumbnail = null, StrongReference[]? associatedRefs = null)

Parameters

uri string

The external uri for the link, as a string.

title string

The title for the external link.

description string

The description of the external link, if any.

thumbnail Blob?

The idunno.AtProto.Blob for the thumbnail of the link, if any.

associatedRefs StrongReference[]?

An array of strong references associated with the embed.

Exceptions

ArgumentNullException

Thrown when uri, title, or description is null.

EmbeddedExternal(Properties)

Creates a new instance of idunno.Bluesky.Embed.EmbeddedExternal

[JsonConstructor]
public EmbeddedExternal(Properties external)

Parameters

external Properties

The properties for the externally linked content.

Exceptions

ArgumentNullException

Thrown when external is null.

EmbeddedExternal(string, string, string, Blob?, StrongReference[]?)

Creates a new instance of idunno.Bluesky.Embed.EmbeddedExternal.

public EmbeddedExternal(string uri, string title, string description, Blob? thumbnail = null, StrongReference[]? associatedRefs = null)

Parameters

uri string

The external uri for the link, as a string.

title string

The title for the external link.

description string

The description of the external link, if any.

thumbnail Blob?

The idunno.AtProto.Blob for the thumbnail of the link, if any.

associatedRefs StrongReference[]?

An array of strong references associated with the embed.

Exceptions

ArgumentNullException

Thrown when uri, title, or description is null.

EmbeddedExternal(Properties)

Creates a new instance of idunno.Bluesky.Embed.EmbeddedExternal

[JsonConstructor]
public EmbeddedExternal(Properties external)

Parameters

external Properties

The properties for the externally linked content.

Exceptions

ArgumentNullException

Thrown when external is null.

EmbeddedExternal(string, string, string, Blob?, StrongReference[]?)

Creates a new instance of idunno.Bluesky.Embed.EmbeddedExternal.

public EmbeddedExternal(string uri, string title, string description, Blob? thumbnail = null, StrongReference[]? associatedRefs = null)

Parameters

uri string

The external uri for the link, as a string.

title string

The title for the external link.

description string

The description of the external link, if any.

thumbnail Blob?

The idunno.AtProto.Blob for the thumbnail of the link, if any.

associatedRefs StrongReference[]?

An array of strong references associated with the embed.

Exceptions

ArgumentNullException

Thrown when uri, title, or description is null.

Properties

EqualityContract

protected override Type EqualityContract { get; }

Property Value

Type

EqualityContract

protected override Type EqualityContract { get; }

Property Value

Type

EqualityContract

protected override Type EqualityContract { get; }

Property Value

Type

External

Gets the properties for the embedded media.

[JsonInclude]
[JsonRequired]
public Properties External { get; init; }

Property Value

Properties

External

Gets the properties for the embedded media.

[JsonInclude]
[JsonRequired]
public Properties External { get; init; }

Property Value

Properties

External

Gets the properties for the embedded media.

[JsonInclude]
[JsonRequired]
public Properties External { get; init; }

Property Value

Properties

Methods

<Clone>$()

public override EmbeddedExternal <Clone>$()

Returns

EmbeddedExternal

<Clone>$()

public override EmbeddedExternal <Clone>$()

Returns

EmbeddedExternal

<Clone>$()

public override EmbeddedExternal <Clone>$()

Returns

EmbeddedExternal

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object?

Returns

bool

Equals(EmbeddedBase?)

public override sealed bool Equals(EmbeddedBase? other)

Parameters

other EmbeddedBase?

Returns

bool

Equals(EmbeddedExternal?)

public bool Equals(EmbeddedExternal? other)

Parameters

other EmbeddedExternal?

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object?

Returns

bool

Equals(EmbeddedBase?)

public override sealed bool Equals(EmbeddedBase? other)

Parameters

other EmbeddedBase?

Returns

bool

Equals(EmbeddedExternal?)

public bool Equals(EmbeddedExternal? other)

Parameters

other EmbeddedExternal?

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object?

Returns

bool

Equals(EmbeddedBase?)

public override sealed bool Equals(EmbeddedBase? other)

Parameters

other EmbeddedBase?

Returns

bool

Equals(EmbeddedExternal?)

public bool Equals(EmbeddedExternal? other)

Parameters

other EmbeddedExternal?

Returns

bool

GetHashCode()

Returns the hash code for the current instance.

public override int GetHashCode()

Returns

int

The hash code for the current instance.

Remarks

The hash code is derived from the keys of idunno.AtProto.Repo.AtProtoRecord.ExtensionData rather than from its identity.

GetHashCode()

Returns the hash code for the current instance.

public override int GetHashCode()

Returns

int

The hash code for the current instance.

Remarks

The hash code is derived from the keys of idunno.AtProto.Repo.AtProtoRecord.ExtensionData rather than from its identity.

GetHashCode()

Returns the hash code for the current instance.

public override int GetHashCode()

Returns

int

The hash code for the current instance.

Remarks

The hash code is derived from the keys of idunno.AtProto.Repo.AtProtoRecord.ExtensionData rather than from its identity.

PrintMembers(StringBuilder)

protected override bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

PrintMembers(StringBuilder)

protected override bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

PrintMembers(StringBuilder)

protected override 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 ==(EmbeddedExternal?, EmbeddedExternal?)

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

Parameters

left EmbeddedExternal?
right EmbeddedExternal?

Returns

bool

operator ==(EmbeddedExternal?, EmbeddedExternal?)

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

Parameters

left EmbeddedExternal?
right EmbeddedExternal?

Returns

bool

operator ==(EmbeddedExternal?, EmbeddedExternal?)

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

Parameters

left EmbeddedExternal?
right EmbeddedExternal?

Returns

bool

operator !=(EmbeddedExternal?, EmbeddedExternal?)

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

Parameters

left EmbeddedExternal?
right EmbeddedExternal?

Returns

bool

operator !=(EmbeddedExternal?, EmbeddedExternal?)

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

Parameters

left EmbeddedExternal?
right EmbeddedExternal?

Returns

bool

operator !=(EmbeddedExternal?, EmbeddedExternal?)

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

Parameters

left EmbeddedExternal?
right EmbeddedExternal?

Returns

bool