Table of Contents

Class EmbeddedBase

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

Base class for embedded records.

[JsonPolymorphic(IgnoreUnrecognizedTypeDiscriminators = true, UnknownDerivedTypeHandling = JsonUnknownDerivedTypeHandling.FallBackToNearestAncestor)]
[JsonDerivedType(typeof(EmbeddedExternal), "app.bsky.embed.external")]
[JsonDerivedType(typeof(EmbeddedImages), "app.bsky.embed.images")]
[JsonDerivedType(typeof(EmbeddedVideo), "app.bsky.embed.video")]
[JsonDerivedType(typeof(EmbeddedRecord), "app.bsky.embed.record")]
[JsonDerivedType(typeof(EmbeddedRecordWithMedia), "app.bsky.embed.recordWithMedia")]
[JsonDerivedType(typeof(EmbeddedGallery), "app.bsky.embed.gallery")]
public record EmbeddedBase : AtProtoRecord, IEquatable<AtProtoRecord>, IEquatable<EmbeddedBase>

Inheritance

AtProtoRecord

Derived

Implements

Inherited Members

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

Constructors

EmbeddedBase(EmbeddedBase)

protected EmbeddedBase(EmbeddedBase original)

Parameters

original EmbeddedBase

EmbeddedBase()

public EmbeddedBase()

EmbeddedBase(EmbeddedBase)

protected EmbeddedBase(EmbeddedBase original)

Parameters

original EmbeddedBase

EmbeddedBase()

public EmbeddedBase()

EmbeddedBase(EmbeddedBase)

protected EmbeddedBase(EmbeddedBase original)

Parameters

original EmbeddedBase

EmbeddedBase()

public EmbeddedBase()

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

Methods

<Clone>$()

public override EmbeddedBase <Clone>$()

Returns

EmbeddedBase

<Clone>$()

public override EmbeddedBase <Clone>$()

Returns

EmbeddedBase

<Clone>$()

public override EmbeddedBase <Clone>$()

Returns

EmbeddedBase

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object?

Returns

bool

Equals(AtProtoRecord?)

Determines whether the specified idunno.AtProto.Repo.AtProtoRecord is equal to the current instance.

public override sealed bool Equals(AtProtoRecord? other)

Parameters

other AtProtoRecord?

The idunno.AtProto.Repo.AtProtoRecord to compare against the current instance.

Returns

bool

true if other is equal to the current instance, otherwise false.

Remarks

idunno.AtProto.Repo.AtProtoRecord.ExtensionData is compared by its contents rather than by reference.

Equals(EmbeddedBase?)

public virtual bool Equals(EmbeddedBase? other)

Parameters

other EmbeddedBase?

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object?

Returns

bool

Equals(AtProtoRecord?)

Determines whether the specified idunno.AtProto.Repo.AtProtoRecord is equal to the current instance.

public override sealed bool Equals(AtProtoRecord? other)

Parameters

other AtProtoRecord?

The idunno.AtProto.Repo.AtProtoRecord to compare against the current instance.

Returns

bool

true if other is equal to the current instance, otherwise false.

Remarks

idunno.AtProto.Repo.AtProtoRecord.ExtensionData is compared by its contents rather than by reference.

Equals(EmbeddedBase?)

public virtual bool Equals(EmbeddedBase? other)

Parameters

other EmbeddedBase?

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object?

Returns

bool

Equals(AtProtoRecord?)

Determines whether the specified idunno.AtProto.Repo.AtProtoRecord is equal to the current instance.

public override sealed bool Equals(AtProtoRecord? other)

Parameters

other AtProtoRecord?

The idunno.AtProto.Repo.AtProtoRecord to compare against the current instance.

Returns

bool

true if other is equal to the current instance, otherwise false.

Remarks

idunno.AtProto.Repo.AtProtoRecord.ExtensionData is compared by its contents rather than by reference.

Equals(EmbeddedBase?)

public virtual bool Equals(EmbeddedBase? other)

Parameters

other EmbeddedBase?

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 ==(EmbeddedBase?, EmbeddedBase?)

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

Parameters

left EmbeddedBase?
right EmbeddedBase?

Returns

bool

operator ==(EmbeddedBase?, EmbeddedBase?)

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

Parameters

left EmbeddedBase?
right EmbeddedBase?

Returns

bool

operator ==(EmbeddedBase?, EmbeddedBase?)

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

Parameters

left EmbeddedBase?
right EmbeddedBase?

Returns

bool

operator !=(EmbeddedBase?, EmbeddedBase?)

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

Parameters

left EmbeddedBase?
right EmbeddedBase?

Returns

bool

operator !=(EmbeddedBase?, EmbeddedBase?)

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

Parameters

left EmbeddedBase?
right EmbeddedBase?

Returns

bool

operator !=(EmbeddedBase?, EmbeddedBase?)

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

Parameters

left EmbeddedBase?
right EmbeddedBase?

Returns

bool