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.EqualityContractAtProtoRecord.ExtensionData
Constructors
EmbeddedBase(EmbeddedBase)
protected EmbeddedBase(EmbeddedBase original)Parameters
originalEmbeddedBase
EmbeddedBase()
public EmbeddedBase()EmbeddedBase(EmbeddedBase)
protected EmbeddedBase(EmbeddedBase original)Parameters
originalEmbeddedBase
EmbeddedBase()
public EmbeddedBase()EmbeddedBase(EmbeddedBase)
protected EmbeddedBase(EmbeddedBase original)Parameters
originalEmbeddedBase
EmbeddedBase()
public EmbeddedBase()Properties
EqualityContract
protected override Type EqualityContract { get; }Property Value
EqualityContract
protected override Type EqualityContract { get; }Property Value
EqualityContract
protected override Type EqualityContract { get; }Property Value
Methods
<Clone>$()
public override EmbeddedBase <Clone>$()Returns
<Clone>$()
public override EmbeddedBase <Clone>$()Returns
<Clone>$()
public override EmbeddedBase <Clone>$()Returns
Equals(object?)
public override bool Equals(object? obj)Parameters
objobject?
Returns
Equals(AtProtoRecord?)
Determines whether the specified idunno.AtProto.Repo.AtProtoRecord is equal to the current instance.
public override sealed bool Equals(AtProtoRecord? other)Parameters
otherAtProtoRecord?-
The idunno.AtProto.Repo.AtProtoRecord to compare against the current instance.
Returns
Remarks
idunno.AtProto.Repo.AtProtoRecord.ExtensionData is compared by its contents rather than by reference.
Equals(EmbeddedBase?)
public virtual bool Equals(EmbeddedBase? other)Parameters
otherEmbeddedBase?
Returns
Equals(object?)
public override bool Equals(object? obj)Parameters
objobject?
Returns
Equals(AtProtoRecord?)
Determines whether the specified idunno.AtProto.Repo.AtProtoRecord is equal to the current instance.
public override sealed bool Equals(AtProtoRecord? other)Parameters
otherAtProtoRecord?-
The idunno.AtProto.Repo.AtProtoRecord to compare against the current instance.
Returns
Remarks
idunno.AtProto.Repo.AtProtoRecord.ExtensionData is compared by its contents rather than by reference.
Equals(EmbeddedBase?)
public virtual bool Equals(EmbeddedBase? other)Parameters
otherEmbeddedBase?
Returns
Equals(object?)
public override bool Equals(object? obj)Parameters
objobject?
Returns
Equals(AtProtoRecord?)
Determines whether the specified idunno.AtProto.Repo.AtProtoRecord is equal to the current instance.
public override sealed bool Equals(AtProtoRecord? other)Parameters
otherAtProtoRecord?-
The idunno.AtProto.Repo.AtProtoRecord to compare against the current instance.
Returns
Remarks
idunno.AtProto.Repo.AtProtoRecord.ExtensionData is compared by its contents rather than by reference.
Equals(EmbeddedBase?)
public virtual bool Equals(EmbeddedBase? other)Parameters
otherEmbeddedBase?
Returns
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
builderStringBuilder
Returns
PrintMembers(StringBuilder)
protected override bool PrintMembers(StringBuilder builder)Parameters
builderStringBuilder
Returns
PrintMembers(StringBuilder)
protected override bool PrintMembers(StringBuilder builder)Parameters
builderStringBuilder
Returns
ToString()
public override string ToString()Returns
ToString()
public override string ToString()Returns
ToString()
public override string ToString()Returns
Operators
operator ==(EmbeddedBase?, EmbeddedBase?)
public static bool operator ==(EmbeddedBase? left, EmbeddedBase? right)Parameters
leftEmbeddedBase?rightEmbeddedBase?
Returns
operator ==(EmbeddedBase?, EmbeddedBase?)
public static bool operator ==(EmbeddedBase? left, EmbeddedBase? right)Parameters
leftEmbeddedBase?rightEmbeddedBase?
Returns
operator ==(EmbeddedBase?, EmbeddedBase?)
public static bool operator ==(EmbeddedBase? left, EmbeddedBase? right)Parameters
leftEmbeddedBase?rightEmbeddedBase?
Returns
operator !=(EmbeddedBase?, EmbeddedBase?)
public static bool operator !=(EmbeddedBase? left, EmbeddedBase? right)Parameters
leftEmbeddedBase?rightEmbeddedBase?
Returns
operator !=(EmbeddedBase?, EmbeddedBase?)
public static bool operator !=(EmbeddedBase? left, EmbeddedBase? right)Parameters
leftEmbeddedBase?rightEmbeddedBase?
Returns
operator !=(EmbeddedBase?, EmbeddedBase?)
public static bool operator !=(EmbeddedBase? left, EmbeddedBase? right)Parameters
leftEmbeddedBase?rightEmbeddedBase?