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
externalProperties-
The properties for the externally linked content.
Exceptions
- ArgumentNullException
-
Thrown when
externalis 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
uristring-
The external uri for the link, as a string.
titlestring-
The title for the external link.
descriptionstring-
The description of the external link, if any.
thumbnailBlob?-
The idunno.AtProto.Blob for the thumbnail of the link, if any.
associatedRefsStrongReference[]?-
An array of strong references associated with the embed.
Exceptions
- ArgumentNullException
-
Thrown when
uri,title, ordescriptionis null.
EmbeddedExternal(Properties)
Creates a new instance of idunno.Bluesky.Embed.EmbeddedExternal
[JsonConstructor]
public EmbeddedExternal(Properties external)Parameters
externalProperties-
The properties for the externally linked content.
Exceptions
- ArgumentNullException
-
Thrown when
externalis 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
uristring-
The external uri for the link, as a string.
titlestring-
The title for the external link.
descriptionstring-
The description of the external link, if any.
thumbnailBlob?-
The idunno.AtProto.Blob for the thumbnail of the link, if any.
associatedRefsStrongReference[]?-
An array of strong references associated with the embed.
Exceptions
- ArgumentNullException
-
Thrown when
uri,title, ordescriptionis null.
EmbeddedExternal(Properties)
Creates a new instance of idunno.Bluesky.Embed.EmbeddedExternal
[JsonConstructor]
public EmbeddedExternal(Properties external)Parameters
externalProperties-
The properties for the externally linked content.
Exceptions
- ArgumentNullException
-
Thrown when
externalis 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
uristring-
The external uri for the link, as a string.
titlestring-
The title for the external link.
descriptionstring-
The description of the external link, if any.
thumbnailBlob?-
The idunno.AtProto.Blob for the thumbnail of the link, if any.
associatedRefsStrongReference[]?-
An array of strong references associated with the embed.
Exceptions
- ArgumentNullException
-
Thrown when
uri,title, ordescriptionis null.
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
External
Gets the properties for the embedded media.
[JsonInclude]
[JsonRequired]
public Properties External { get; init; }Property Value
External
Gets the properties for the embedded media.
[JsonInclude]
[JsonRequired]
public Properties External { get; init; }Property Value
External
Gets the properties for the embedded media.
[JsonInclude]
[JsonRequired]
public Properties External { get; init; }Property Value
Methods
<Clone>$()
public override EmbeddedExternal <Clone>$()Returns
<Clone>$()
public override EmbeddedExternal <Clone>$()Returns
<Clone>$()
public override EmbeddedExternal <Clone>$()Returns
Equals(object?)
public override bool Equals(object? obj)Parameters
objobject?
Returns
Equals(EmbeddedBase?)
public override sealed bool Equals(EmbeddedBase? other)Parameters
otherEmbeddedBase?
Returns
Equals(EmbeddedExternal?)
public bool Equals(EmbeddedExternal? other)Parameters
otherEmbeddedExternal?
Returns
Equals(object?)
public override bool Equals(object? obj)Parameters
objobject?
Returns
Equals(EmbeddedBase?)
public override sealed bool Equals(EmbeddedBase? other)Parameters
otherEmbeddedBase?
Returns
Equals(EmbeddedExternal?)
public bool Equals(EmbeddedExternal? other)Parameters
otherEmbeddedExternal?
Returns
Equals(object?)
public override bool Equals(object? obj)Parameters
objobject?
Returns
Equals(EmbeddedBase?)
public override sealed bool Equals(EmbeddedBase? other)Parameters
otherEmbeddedBase?
Returns
Equals(EmbeddedExternal?)
public bool Equals(EmbeddedExternal? other)Parameters
otherEmbeddedExternal?
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 ==(EmbeddedExternal?, EmbeddedExternal?)
public static bool operator ==(EmbeddedExternal? left, EmbeddedExternal? right)Parameters
leftEmbeddedExternal?rightEmbeddedExternal?
Returns
operator ==(EmbeddedExternal?, EmbeddedExternal?)
public static bool operator ==(EmbeddedExternal? left, EmbeddedExternal? right)Parameters
leftEmbeddedExternal?rightEmbeddedExternal?
Returns
operator ==(EmbeddedExternal?, EmbeddedExternal?)
public static bool operator ==(EmbeddedExternal? left, EmbeddedExternal? right)Parameters
leftEmbeddedExternal?rightEmbeddedExternal?
Returns
operator !=(EmbeddedExternal?, EmbeddedExternal?)
public static bool operator !=(EmbeddedExternal? left, EmbeddedExternal? right)Parameters
leftEmbeddedExternal?rightEmbeddedExternal?
Returns
operator !=(EmbeddedExternal?, EmbeddedExternal?)
public static bool operator !=(EmbeddedExternal? left, EmbeddedExternal? right)Parameters
leftEmbeddedExternal?rightEmbeddedExternal?
Returns
operator !=(EmbeddedExternal?, EmbeddedExternal?)
public static bool operator !=(EmbeddedExternal? left, EmbeddedExternal? right)Parameters
leftEmbeddedExternal?rightEmbeddedExternal?