Class DraftEmbedGallery
- Namespace
- idunno.Bluesky.Drafts
- Assembly
- idunno.Bluesky.dll
Encapsulates a gallery of local embedded images in a draft post.
[JsonPolymorphic(IgnoreUnrecognizedTypeDiscriminators = false, UnknownDerivedTypeHandling = JsonUnknownDerivedTypeHandling.FallBackToNearestAncestor)]
[JsonDerivedType(typeof(DraftEmbedGallery), "app.bsky.draft.defs#draftEmbedGallery")]
public record DraftEmbedGallery : IEquatable<DraftEmbedGallery>Inheritance
Implements
Inherited Members
Constructors
DraftEmbedGallery(IReadOnlyList<DraftEmbedImage>)
Creates a new instance of idunno.Bluesky.Drafts.DraftEmbedGallery with the specified items.
[JsonConstructor]
public DraftEmbedGallery(IReadOnlyList<DraftEmbedImage> items)Parameters
itemsIReadOnlyList<DraftEmbedImage>-
The collection of embedded images in the gallery.
Exceptions
- ArgumentNullException
-
Thrown when
itemsis null.
DraftEmbedGallery(DraftEmbedGallery)
protected DraftEmbedGallery(DraftEmbedGallery original)Parameters
originalDraftEmbedGallery
DraftEmbedGallery(IReadOnlyList<DraftEmbedImage>)
Creates a new instance of idunno.Bluesky.Drafts.DraftEmbedGallery with the specified items.
[JsonConstructor]
public DraftEmbedGallery(IReadOnlyList<DraftEmbedImage> items)Parameters
itemsIReadOnlyList<DraftEmbedImage>-
The collection of embedded images in the gallery.
Exceptions
- ArgumentNullException
-
Thrown when
itemsis null.
DraftEmbedGallery(DraftEmbedGallery)
protected DraftEmbedGallery(DraftEmbedGallery original)Parameters
originalDraftEmbedGallery
DraftEmbedGallery(IReadOnlyList<DraftEmbedImage>)
Creates a new instance of idunno.Bluesky.Drafts.DraftEmbedGallery with the specified items.
[JsonConstructor]
public DraftEmbedGallery(IReadOnlyList<DraftEmbedImage> items)Parameters
itemsIReadOnlyList<DraftEmbedImage>-
The collection of embedded images in the gallery.
Exceptions
- ArgumentNullException
-
Thrown when
itemsis null.
DraftEmbedGallery(DraftEmbedGallery)
protected DraftEmbedGallery(DraftEmbedGallery original)Parameters
originalDraftEmbedGallery
Properties
EqualityContract
protected virtual Type EqualityContract { get; }Property Value
EqualityContract
protected virtual Type EqualityContract { get; }Property Value
EqualityContract
protected virtual Type EqualityContract { get; }Property Value
Items
Gets the collection of embedded images in the gallery.
[JsonRequired]
public IReadOnlyList<DraftEmbedImage> Items { get; init; }Property Value
Exceptions
- ArgumentNullException
-
Thrown when setting to null.
Items
Gets the collection of embedded images in the gallery.
[JsonRequired]
public IReadOnlyList<DraftEmbedImage> Items { get; init; }Property Value
Exceptions
- ArgumentNullException
-
Thrown when setting to null.
Items
Gets the collection of embedded images in the gallery.
[JsonRequired]
public IReadOnlyList<DraftEmbedImage> Items { get; init; }Property Value
Exceptions
- ArgumentNullException
-
Thrown when setting to null.
Methods
<Clone>$()
public virtual DraftEmbedGallery <Clone>$()Returns
<Clone>$()
public virtual DraftEmbedGallery <Clone>$()Returns
<Clone>$()
public virtual DraftEmbedGallery <Clone>$()Returns
Equals(object?)
public override bool Equals(object? obj)Parameters
objobject?
Returns
Equals(DraftEmbedGallery?)
public virtual bool Equals(DraftEmbedGallery? other)Parameters
otherDraftEmbedGallery?
Returns
Equals(object?)
public override bool Equals(object? obj)Parameters
objobject?
Returns
Equals(DraftEmbedGallery?)
public virtual bool Equals(DraftEmbedGallery? other)Parameters
otherDraftEmbedGallery?
Returns
Equals(object?)
public override bool Equals(object? obj)Parameters
objobject?
Returns
Equals(DraftEmbedGallery?)
public virtual bool Equals(DraftEmbedGallery? other)Parameters
otherDraftEmbedGallery?
Returns
GetHashCode()
public override int GetHashCode()Returns
GetHashCode()
public override int GetHashCode()Returns
GetHashCode()
public override int GetHashCode()Returns
PrintMembers(StringBuilder)
protected virtual bool PrintMembers(StringBuilder builder)Parameters
builderStringBuilder
Returns
PrintMembers(StringBuilder)
protected virtual bool PrintMembers(StringBuilder builder)Parameters
builderStringBuilder
Returns
PrintMembers(StringBuilder)
protected virtual 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 ==(DraftEmbedGallery?, DraftEmbedGallery?)
public static bool operator ==(DraftEmbedGallery? left, DraftEmbedGallery? right)Parameters
leftDraftEmbedGallery?rightDraftEmbedGallery?
Returns
operator ==(DraftEmbedGallery?, DraftEmbedGallery?)
public static bool operator ==(DraftEmbedGallery? left, DraftEmbedGallery? right)Parameters
leftDraftEmbedGallery?rightDraftEmbedGallery?
Returns
operator ==(DraftEmbedGallery?, DraftEmbedGallery?)
public static bool operator ==(DraftEmbedGallery? left, DraftEmbedGallery? right)Parameters
leftDraftEmbedGallery?rightDraftEmbedGallery?
Returns
operator !=(DraftEmbedGallery?, DraftEmbedGallery?)
public static bool operator !=(DraftEmbedGallery? left, DraftEmbedGallery? right)Parameters
leftDraftEmbedGallery?rightDraftEmbedGallery?
Returns
operator !=(DraftEmbedGallery?, DraftEmbedGallery?)
public static bool operator !=(DraftEmbedGallery? left, DraftEmbedGallery? right)Parameters
leftDraftEmbedGallery?rightDraftEmbedGallery?
Returns
operator !=(DraftEmbedGallery?, DraftEmbedGallery?)
public static bool operator !=(DraftEmbedGallery? left, DraftEmbedGallery? right)Parameters
leftDraftEmbedGallery?rightDraftEmbedGallery?