Table of Contents

Class EmbeddedRecord

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

Represents an embedded record pointing to a strongly referenced record, such as another post.

public record EmbeddedRecord : EmbeddedBase, IEquatable<AtProtoRecord>, IEquatable<EmbeddedBase>, IEquatable<EmbeddedRecord>

Inheritance

AtProtoRecord

Implements

Inherited Members

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

Constructors

EmbeddedRecord(StrongReference)

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

public EmbeddedRecord(StrongReference record)

Parameters

record StrongReference

A idunno.AtProto.Repo.StrongReference to the record to embed.

Exceptions

ArgumentNullException

Thrown when record is null.

EmbeddedRecord(EmbeddedRecord)

protected EmbeddedRecord(EmbeddedRecord original)

Parameters

original EmbeddedRecord

EmbeddedRecord(StrongReference)

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

public EmbeddedRecord(StrongReference record)

Parameters

record StrongReference

A idunno.AtProto.Repo.StrongReference to the record to embed.

Exceptions

ArgumentNullException

Thrown when record is null.

EmbeddedRecord(EmbeddedRecord)

protected EmbeddedRecord(EmbeddedRecord original)

Parameters

original EmbeddedRecord

EmbeddedRecord(StrongReference)

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

public EmbeddedRecord(StrongReference record)

Parameters

record StrongReference

A idunno.AtProto.Repo.StrongReference to the record to embed.

Exceptions

ArgumentNullException

Thrown when record is null.

EmbeddedRecord(EmbeddedRecord)

protected EmbeddedRecord(EmbeddedRecord original)

Parameters

original EmbeddedRecord

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

Record

Gets a idunno.AtProto.Repo.StrongReference to the record to embed.

[JsonInclude]
[JsonRequired]
public StrongReference Record { get; init; }

Property Value

StrongReference

Record

Gets a idunno.AtProto.Repo.StrongReference to the record to embed.

[JsonInclude]
[JsonRequired]
public StrongReference Record { get; init; }

Property Value

StrongReference

Record

Gets a idunno.AtProto.Repo.StrongReference to the record to embed.

[JsonInclude]
[JsonRequired]
public StrongReference Record { get; init; }

Property Value

StrongReference

Methods

<Clone>$()

public override EmbeddedRecord <Clone>$()

Returns

EmbeddedRecord

<Clone>$()

public override EmbeddedRecord <Clone>$()

Returns

EmbeddedRecord

<Clone>$()

public override EmbeddedRecord <Clone>$()

Returns

EmbeddedRecord

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(EmbeddedRecord?)

public virtual bool Equals(EmbeddedRecord? other)

Parameters

other EmbeddedRecord?

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(EmbeddedRecord?)

public virtual bool Equals(EmbeddedRecord? other)

Parameters

other EmbeddedRecord?

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(EmbeddedRecord?)

public virtual bool Equals(EmbeddedRecord? other)

Parameters

other EmbeddedRecord?

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

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

Parameters

left EmbeddedRecord?
right EmbeddedRecord?

Returns

bool

operator ==(EmbeddedRecord?, EmbeddedRecord?)

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

Parameters

left EmbeddedRecord?
right EmbeddedRecord?

Returns

bool

operator ==(EmbeddedRecord?, EmbeddedRecord?)

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

Parameters

left EmbeddedRecord?
right EmbeddedRecord?

Returns

bool

operator !=(EmbeddedRecord?, EmbeddedRecord?)

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

Parameters

left EmbeddedRecord?
right EmbeddedRecord?

Returns

bool

operator !=(EmbeddedRecord?, EmbeddedRecord?)

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

Parameters

left EmbeddedRecord?
right EmbeddedRecord?

Returns

bool

operator !=(EmbeddedRecord?, EmbeddedRecord?)

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

Parameters

left EmbeddedRecord?
right EmbeddedRecord?

Returns

bool