Table of Contents

Class DraftPost

Namespace
idunno.Bluesky.Drafts
Assembly
idunno.Bluesky.dll

Encapsulates the content of a draft post, including text and any embedded media or records. This is used to create a new draft or update an existing draft.

[JsonPolymorphic(UnknownDerivedTypeHandling = JsonUnknownDerivedTypeHandling.FallBackToNearestAncestor)]
[JsonDerivedType(typeof(DraftPost), "app.bsky.draft.defs#draftPost")]
public record DraftPost : IEquatable<DraftPost>

Inheritance

Implements

Inherited Members

Remarks

See draft/defs.json

Constructors

DraftPost(string, SelfLabels?, IReadOnlyList<DraftEmbedImage>?, DraftEmbedGallery?, IReadOnlyList<DraftEmbedVideo>?, IReadOnlyList<DraftEmbedExternal>?, IReadOnlyList<DraftEmbedRecord>?)

Creates a new instance of idunno.Bluesky.Drafts.DraftPost with the specified content and optional embedded media and labels.

[JsonConstructor]
public DraftPost(string text, SelfLabels? labels, IReadOnlyList<DraftEmbedImage>? embedImages, DraftEmbedGallery? embedGallery, IReadOnlyList<DraftEmbedVideo>? embedVideos, IReadOnlyList<DraftEmbedExternal>? embedExternals, IReadOnlyList<DraftEmbedRecord>? embedRecords)

Parameters

text string

The primary post content. It has a higher limit than post contents to allow storing a larger text that can later be refined into smaller posts.

labels SelfLabels?

The labels to apply to the post.

embedImages IReadOnlyList<DraftEmbedImage>?

The images to embed in the post. (Maximum idunno.Bluesky.Maximum.DraftEmbedImages)

embedGallery DraftEmbedGallery?

The gallery to embed in the post.

embedVideos IReadOnlyList<DraftEmbedVideo>?

The videos to embed in the post. (Maximum idunno.Bluesky.Maximum.DraftEmbedVideos)

embedExternals IReadOnlyList<DraftEmbedExternal>?

The external content to embed in the post. (Maximum idunno.Bluesky.Maximum.DraftEmbedExternals)

embedRecords IReadOnlyList<DraftEmbedRecord>?

The records to embed in the post. (Maximum idunno.Bluesky.Maximum.DraftEmbedRecords)

Exceptions

ArgumentException

Thrown when the text is null or empty.

ArgumentOutOfRangeException

Thrown when the text length is greater than idunno.Bluesky.Maximum.DraftTextLengthInBytes UTF-8 bytes or idunno.Bluesky.Maximum.DraftTextLengthInGraphemes graphemes, or when the number of embedded media or records exceeds the specified limits.

DraftPost(string)

Creates a new instance of idunno.Bluesky.Drafts.DraftPost with the specified content.

public DraftPost(string text)

Parameters

text string

The primary post content. It has a higher limit than post contents to allow storing a larger text that can later be refined into smaller posts.

Exceptions

ArgumentException

Thrown when the text is null or empty.

ArgumentOutOfRangeException

Thrown when the text length is greater than idunno.Bluesky.Maximum.DraftTextLengthInBytes UTF-8 bytes or idunno.Bluesky.Maximum.DraftTextLengthInGraphemes graphemes.

DraftPost(string, IReadOnlyList<DraftEmbedImage>)

Creates a new instance of idunno.Bluesky.Drafts.DraftPost with the specified content and embedded images.

public DraftPost(string text, IReadOnlyList<DraftEmbedImage> embedImages)

Parameters

text string

The primary post content. It has a higher limit than post contents to allow storing a larger text that can later be refined into smaller posts.

embedImages IReadOnlyList<DraftEmbedImage>

The images to embed in the post. (Maximum idunno.Bluesky.Maximum.DraftEmbedImages)

Exceptions

ArgumentException

Thrown when the text is null or empty.

ArgumentOutOfRangeException

Thrown when the text length is greater than idunno.Bluesky.Maximum.DraftTextLengthInBytes UTF-8 bytes or idunno.Bluesky.Maximum.DraftTextLengthInGraphemes graphemes, or when the number of embedded images exceeds idunno.Bluesky.Maximum.DraftEmbedImages.

DraftPost(string, DraftEmbedImage)

Creates a new instance of idunno.Bluesky.Drafts.DraftPost with the specified content and embedded image.

public DraftPost(string text, DraftEmbedImage embedImage)

Parameters

text string

The primary post content. It has a higher limit than post contents to allow storing a larger text that can later be refined into smaller posts.

embedImage DraftEmbedImage

The image to embed in the post.

Exceptions

ArgumentException

Thrown when the text is null or empty.

ArgumentOutOfRangeException

Thrown when the text length is greater than idunno.Bluesky.Maximum.DraftTextLengthInBytes UTF-8 bytes or idunno.Bluesky.Maximum.DraftTextLengthInGraphemes graphemes.

DraftPost(string, SelfLabels)

Creates a new instance of idunno.Bluesky.Drafts.DraftPost with the specified content and labels.

public DraftPost(string text, SelfLabels labels)

Parameters

text string

The primary post content. It has a higher limit than post contents to allow storing a larger text that can later be refined into smaller posts.

labels SelfLabels

The labels to apply to the post.

Exceptions

ArgumentException

Thrown when the text is null or empty.

ArgumentOutOfRangeException

Thrown when the text length is greater than idunno.Bluesky.Maximum.DraftTextLengthInBytes UTF-8 bytes or idunno.Bluesky.Maximum.DraftTextLengthInGraphemes graphemes.

DraftPost(string, DraftEmbedVideo)

Creates a new instance of idunno.Bluesky.Drafts.DraftPost with the specified content and embedded video.

public DraftPost(string text, DraftEmbedVideo embedVideo)

Parameters

text string

The primary post content. It has a higher limit than post contents to allow storing a larger text that can later be refined into smaller posts.

embedVideo DraftEmbedVideo

The video to embed in the post.

Exceptions

ArgumentException

Thrown when the text is null or empty.

ArgumentOutOfRangeException

Thrown when the text length is greater than idunno.Bluesky.Maximum.DraftTextLengthInBytes UTF-8 bytes or idunno.Bluesky.Maximum.DraftTextLengthInGraphemes graphemes.

DraftPost(string, PostSelfLabels?, IReadOnlyList<DraftEmbedImage>?, DraftEmbedGallery?, IReadOnlyList<DraftEmbedVideo>?, IReadOnlyList<DraftEmbedExternal>?, IReadOnlyList<DraftEmbedRecord>?)

Creates a new instance of idunno.Bluesky.Drafts.DraftPost with the specified content and optional embedded media and labels.

public DraftPost(string text, PostSelfLabels? postSelfLabels, IReadOnlyList<DraftEmbedImage>? embedImages, DraftEmbedGallery? embedGallery, IReadOnlyList<DraftEmbedVideo>? embedVideos, IReadOnlyList<DraftEmbedExternal>? embedExternals, IReadOnlyList<DraftEmbedRecord>? embedRecords)

Parameters

text string

The primary post content. It has a higher limit than post contents to allow storing a larger text that can later be refined into smaller posts.

postSelfLabels PostSelfLabels?

The labels to apply to the post.

embedImages IReadOnlyList<DraftEmbedImage>?

The images to embed in the post. (Maximum 4)

embedGallery DraftEmbedGallery?

The gallery to embed in the post.

embedVideos IReadOnlyList<DraftEmbedVideo>?

The videos to embed in the post. (Maximum 1)

embedExternals IReadOnlyList<DraftEmbedExternal>?

The external content to embed in the post. (Maximum 1)

embedRecords IReadOnlyList<DraftEmbedRecord>?

The records to embed in the post. (Maximum 1)

Exceptions

ArgumentException

Thrown when the text is null or empty.

ArgumentOutOfRangeException

Thrown when the text length is greater than idunno.Bluesky.Maximum.DraftTextLengthInBytes UTF-8 bytes or idunno.Bluesky.Maximum.DraftTextLengthInGraphemes graphemes.

DraftPost(DraftPost)

protected DraftPost(DraftPost original)

Parameters

original DraftPost

DraftPost(string, SelfLabels?, IReadOnlyList<DraftEmbedImage>?, DraftEmbedGallery?, IReadOnlyList<DraftEmbedVideo>?, IReadOnlyList<DraftEmbedExternal>?, IReadOnlyList<DraftEmbedRecord>?)

Creates a new instance of idunno.Bluesky.Drafts.DraftPost with the specified content and optional embedded media and labels.

[JsonConstructor]
public DraftPost(string text, SelfLabels? labels, IReadOnlyList<DraftEmbedImage>? embedImages, DraftEmbedGallery? embedGallery, IReadOnlyList<DraftEmbedVideo>? embedVideos, IReadOnlyList<DraftEmbedExternal>? embedExternals, IReadOnlyList<DraftEmbedRecord>? embedRecords)

Parameters

text string

The primary post content. It has a higher limit than post contents to allow storing a larger text that can later be refined into smaller posts.

labels SelfLabels?

The labels to apply to the post.

embedImages IReadOnlyList<DraftEmbedImage>?

The images to embed in the post. (Maximum idunno.Bluesky.Maximum.DraftEmbedImages)

embedGallery DraftEmbedGallery?

The gallery to embed in the post.

embedVideos IReadOnlyList<DraftEmbedVideo>?

The videos to embed in the post. (Maximum idunno.Bluesky.Maximum.DraftEmbedVideos)

embedExternals IReadOnlyList<DraftEmbedExternal>?

The external content to embed in the post. (Maximum idunno.Bluesky.Maximum.DraftEmbedExternals)

embedRecords IReadOnlyList<DraftEmbedRecord>?

The records to embed in the post. (Maximum idunno.Bluesky.Maximum.DraftEmbedRecords)

Exceptions

ArgumentException

Thrown when the text is null or empty.

ArgumentOutOfRangeException

Thrown when the text length is greater than idunno.Bluesky.Maximum.DraftTextLengthInBytes UTF-8 bytes or idunno.Bluesky.Maximum.DraftTextLengthInGraphemes graphemes, or when the number of embedded media or records exceeds the specified limits.

DraftPost(string)

Creates a new instance of idunno.Bluesky.Drafts.DraftPost with the specified content.

public DraftPost(string text)

Parameters

text string

The primary post content. It has a higher limit than post contents to allow storing a larger text that can later be refined into smaller posts.

Exceptions

ArgumentException

Thrown when the text is null or empty.

ArgumentOutOfRangeException

Thrown when the text length is greater than idunno.Bluesky.Maximum.DraftTextLengthInBytes UTF-8 bytes or idunno.Bluesky.Maximum.DraftTextLengthInGraphemes graphemes.

DraftPost(string, IReadOnlyList<DraftEmbedImage>)

Creates a new instance of idunno.Bluesky.Drafts.DraftPost with the specified content and embedded images.

public DraftPost(string text, IReadOnlyList<DraftEmbedImage> embedImages)

Parameters

text string

The primary post content. It has a higher limit than post contents to allow storing a larger text that can later be refined into smaller posts.

embedImages IReadOnlyList<DraftEmbedImage>

The images to embed in the post. (Maximum idunno.Bluesky.Maximum.DraftEmbedImages)

Exceptions

ArgumentException

Thrown when the text is null or empty.

ArgumentOutOfRangeException

Thrown when the text length is greater than idunno.Bluesky.Maximum.DraftTextLengthInBytes UTF-8 bytes or idunno.Bluesky.Maximum.DraftTextLengthInGraphemes graphemes, or when the number of embedded images exceeds idunno.Bluesky.Maximum.DraftEmbedImages.

DraftPost(string, DraftEmbedImage)

Creates a new instance of idunno.Bluesky.Drafts.DraftPost with the specified content and embedded image.

public DraftPost(string text, DraftEmbedImage embedImage)

Parameters

text string

The primary post content. It has a higher limit than post contents to allow storing a larger text that can later be refined into smaller posts.

embedImage DraftEmbedImage

The image to embed in the post.

Exceptions

ArgumentException

Thrown when the text is null or empty.

ArgumentOutOfRangeException

Thrown when the text length is greater than idunno.Bluesky.Maximum.DraftTextLengthInBytes UTF-8 bytes or idunno.Bluesky.Maximum.DraftTextLengthInGraphemes graphemes.

DraftPost(string, SelfLabels)

Creates a new instance of idunno.Bluesky.Drafts.DraftPost with the specified content and labels.

public DraftPost(string text, SelfLabels labels)

Parameters

text string

The primary post content. It has a higher limit than post contents to allow storing a larger text that can later be refined into smaller posts.

labels SelfLabels

The labels to apply to the post.

Exceptions

ArgumentException

Thrown when the text is null or empty.

ArgumentOutOfRangeException

Thrown when the text length is greater than idunno.Bluesky.Maximum.DraftTextLengthInBytes UTF-8 bytes or idunno.Bluesky.Maximum.DraftTextLengthInGraphemes graphemes.

DraftPost(string, DraftEmbedVideo)

Creates a new instance of idunno.Bluesky.Drafts.DraftPost with the specified content and embedded video.

public DraftPost(string text, DraftEmbedVideo embedVideo)

Parameters

text string

The primary post content. It has a higher limit than post contents to allow storing a larger text that can later be refined into smaller posts.

embedVideo DraftEmbedVideo

The video to embed in the post.

Exceptions

ArgumentException

Thrown when the text is null or empty.

ArgumentOutOfRangeException

Thrown when the text length is greater than idunno.Bluesky.Maximum.DraftTextLengthInBytes UTF-8 bytes or idunno.Bluesky.Maximum.DraftTextLengthInGraphemes graphemes.

DraftPost(string, PostSelfLabels?, IReadOnlyList<DraftEmbedImage>?, DraftEmbedGallery?, IReadOnlyList<DraftEmbedVideo>?, IReadOnlyList<DraftEmbedExternal>?, IReadOnlyList<DraftEmbedRecord>?)

Creates a new instance of idunno.Bluesky.Drafts.DraftPost with the specified content and optional embedded media and labels.

public DraftPost(string text, PostSelfLabels? postSelfLabels, IReadOnlyList<DraftEmbedImage>? embedImages, DraftEmbedGallery? embedGallery, IReadOnlyList<DraftEmbedVideo>? embedVideos, IReadOnlyList<DraftEmbedExternal>? embedExternals, IReadOnlyList<DraftEmbedRecord>? embedRecords)

Parameters

text string

The primary post content. It has a higher limit than post contents to allow storing a larger text that can later be refined into smaller posts.

postSelfLabels PostSelfLabels?

The labels to apply to the post.

embedImages IReadOnlyList<DraftEmbedImage>?

The images to embed in the post. (Maximum 4)

embedGallery DraftEmbedGallery?

The gallery to embed in the post.

embedVideos IReadOnlyList<DraftEmbedVideo>?

The videos to embed in the post. (Maximum 1)

embedExternals IReadOnlyList<DraftEmbedExternal>?

The external content to embed in the post. (Maximum 1)

embedRecords IReadOnlyList<DraftEmbedRecord>?

The records to embed in the post. (Maximum 1)

Exceptions

ArgumentException

Thrown when the text is null or empty.

ArgumentOutOfRangeException

Thrown when the text length is greater than idunno.Bluesky.Maximum.DraftTextLengthInBytes UTF-8 bytes or idunno.Bluesky.Maximum.DraftTextLengthInGraphemes graphemes.

DraftPost(DraftPost)

protected DraftPost(DraftPost original)

Parameters

original DraftPost

DraftPost(string, SelfLabels?, IReadOnlyList<DraftEmbedImage>?, DraftEmbedGallery?, IReadOnlyList<DraftEmbedVideo>?, IReadOnlyList<DraftEmbedExternal>?, IReadOnlyList<DraftEmbedRecord>?)

Creates a new instance of idunno.Bluesky.Drafts.DraftPost with the specified content and optional embedded media and labels.

[JsonConstructor]
public DraftPost(string text, SelfLabels? labels, IReadOnlyList<DraftEmbedImage>? embedImages, DraftEmbedGallery? embedGallery, IReadOnlyList<DraftEmbedVideo>? embedVideos, IReadOnlyList<DraftEmbedExternal>? embedExternals, IReadOnlyList<DraftEmbedRecord>? embedRecords)

Parameters

text string

The primary post content. It has a higher limit than post contents to allow storing a larger text that can later be refined into smaller posts.

labels SelfLabels?

The labels to apply to the post.

embedImages IReadOnlyList<DraftEmbedImage>?

The images to embed in the post. (Maximum idunno.Bluesky.Maximum.DraftEmbedImages)

embedGallery DraftEmbedGallery?

The gallery to embed in the post.

embedVideos IReadOnlyList<DraftEmbedVideo>?

The videos to embed in the post. (Maximum idunno.Bluesky.Maximum.DraftEmbedVideos)

embedExternals IReadOnlyList<DraftEmbedExternal>?

The external content to embed in the post. (Maximum idunno.Bluesky.Maximum.DraftEmbedExternals)

embedRecords IReadOnlyList<DraftEmbedRecord>?

The records to embed in the post. (Maximum idunno.Bluesky.Maximum.DraftEmbedRecords)

Exceptions

ArgumentException

Thrown when the text is null or empty.

ArgumentOutOfRangeException

Thrown when the text length is greater than idunno.Bluesky.Maximum.DraftTextLengthInBytes UTF-8 bytes or idunno.Bluesky.Maximum.DraftTextLengthInGraphemes graphemes, or when the number of embedded media or records exceeds the specified limits.

DraftPost(string)

Creates a new instance of idunno.Bluesky.Drafts.DraftPost with the specified content.

public DraftPost(string text)

Parameters

text string

The primary post content. It has a higher limit than post contents to allow storing a larger text that can later be refined into smaller posts.

Exceptions

ArgumentException

Thrown when the text is null or empty.

ArgumentOutOfRangeException

Thrown when the text length is greater than idunno.Bluesky.Maximum.DraftTextLengthInBytes UTF-8 bytes or idunno.Bluesky.Maximum.DraftTextLengthInGraphemes graphemes.

DraftPost(string, IReadOnlyList<DraftEmbedImage>)

Creates a new instance of idunno.Bluesky.Drafts.DraftPost with the specified content and embedded images.

public DraftPost(string text, IReadOnlyList<DraftEmbedImage> embedImages)

Parameters

text string

The primary post content. It has a higher limit than post contents to allow storing a larger text that can later be refined into smaller posts.

embedImages IReadOnlyList<DraftEmbedImage>

The images to embed in the post. (Maximum idunno.Bluesky.Maximum.DraftEmbedImages)

Exceptions

ArgumentException

Thrown when the text is null or empty.

ArgumentOutOfRangeException

Thrown when the text length is greater than idunno.Bluesky.Maximum.DraftTextLengthInBytes UTF-8 bytes or idunno.Bluesky.Maximum.DraftTextLengthInGraphemes graphemes, or when the number of embedded images exceeds idunno.Bluesky.Maximum.DraftEmbedImages.

DraftPost(string, DraftEmbedImage)

Creates a new instance of idunno.Bluesky.Drafts.DraftPost with the specified content and embedded image.

public DraftPost(string text, DraftEmbedImage embedImage)

Parameters

text string

The primary post content. It has a higher limit than post contents to allow storing a larger text that can later be refined into smaller posts.

embedImage DraftEmbedImage

The image to embed in the post.

Exceptions

ArgumentException

Thrown when the text is null or empty.

ArgumentOutOfRangeException

Thrown when the text length is greater than idunno.Bluesky.Maximum.DraftTextLengthInBytes UTF-8 bytes or idunno.Bluesky.Maximum.DraftTextLengthInGraphemes graphemes.

DraftPost(string, SelfLabels)

Creates a new instance of idunno.Bluesky.Drafts.DraftPost with the specified content and labels.

public DraftPost(string text, SelfLabels labels)

Parameters

text string

The primary post content. It has a higher limit than post contents to allow storing a larger text that can later be refined into smaller posts.

labels SelfLabels

The labels to apply to the post.

Exceptions

ArgumentException

Thrown when the text is null or empty.

ArgumentOutOfRangeException

Thrown when the text length is greater than idunno.Bluesky.Maximum.DraftTextLengthInBytes UTF-8 bytes or idunno.Bluesky.Maximum.DraftTextLengthInGraphemes graphemes.

DraftPost(string, DraftEmbedVideo)

Creates a new instance of idunno.Bluesky.Drafts.DraftPost with the specified content and embedded video.

public DraftPost(string text, DraftEmbedVideo embedVideo)

Parameters

text string

The primary post content. It has a higher limit than post contents to allow storing a larger text that can later be refined into smaller posts.

embedVideo DraftEmbedVideo

The video to embed in the post.

Exceptions

ArgumentException

Thrown when the text is null or empty.

ArgumentOutOfRangeException

Thrown when the text length is greater than idunno.Bluesky.Maximum.DraftTextLengthInBytes UTF-8 bytes or idunno.Bluesky.Maximum.DraftTextLengthInGraphemes graphemes.

DraftPost(string, PostSelfLabels?, IReadOnlyList<DraftEmbedImage>?, DraftEmbedGallery?, IReadOnlyList<DraftEmbedVideo>?, IReadOnlyList<DraftEmbedExternal>?, IReadOnlyList<DraftEmbedRecord>?)

Creates a new instance of idunno.Bluesky.Drafts.DraftPost with the specified content and optional embedded media and labels.

public DraftPost(string text, PostSelfLabels? postSelfLabels, IReadOnlyList<DraftEmbedImage>? embedImages, DraftEmbedGallery? embedGallery, IReadOnlyList<DraftEmbedVideo>? embedVideos, IReadOnlyList<DraftEmbedExternal>? embedExternals, IReadOnlyList<DraftEmbedRecord>? embedRecords)

Parameters

text string

The primary post content. It has a higher limit than post contents to allow storing a larger text that can later be refined into smaller posts.

postSelfLabels PostSelfLabels?

The labels to apply to the post.

embedImages IReadOnlyList<DraftEmbedImage>?

The images to embed in the post. (Maximum 4)

embedGallery DraftEmbedGallery?

The gallery to embed in the post.

embedVideos IReadOnlyList<DraftEmbedVideo>?

The videos to embed in the post. (Maximum 1)

embedExternals IReadOnlyList<DraftEmbedExternal>?

The external content to embed in the post. (Maximum 1)

embedRecords IReadOnlyList<DraftEmbedRecord>?

The records to embed in the post. (Maximum 1)

Exceptions

ArgumentException

Thrown when the text is null or empty.

ArgumentOutOfRangeException

Thrown when the text length is greater than idunno.Bluesky.Maximum.DraftTextLengthInBytes UTF-8 bytes or idunno.Bluesky.Maximum.DraftTextLengthInGraphemes graphemes.

DraftPost(DraftPost)

protected DraftPost(DraftPost original)

Parameters

original DraftPost

Properties

ContainsGraphicMedia

Gets or sets a flag indicating the post media contains graphic media. This behaves like idunno.Bluesky.Drafts.DraftPost.ContainsPorn but is for violence or gore.

[JsonIgnore]
public bool ContainsGraphicMedia { get; set; }

Property Value

bool

ContainsGraphicMedia

Gets or sets a flag indicating the post media contains graphic media. This behaves like idunno.Bluesky.Drafts.DraftPost.ContainsPorn but is for violence or gore.

[JsonIgnore]
public bool ContainsGraphicMedia { get; set; }

Property Value

bool

ContainsGraphicMedia

Gets or sets a flag indicating the post media contains graphic media. This behaves like idunno.Bluesky.Drafts.DraftPost.ContainsPorn but is for violence or gore.

[JsonIgnore]
public bool ContainsGraphicMedia { get; set; }

Property Value

bool

ContainsNudity

Gets or sets a flag indicating the post media contains nudity. This puts a warning on images but isn't 18+ and defaults to ignore.

[JsonIgnore]
public bool ContainsNudity { get; set; }

Property Value

bool

ContainsNudity

Gets or sets a flag indicating the post media contains nudity. This puts a warning on images but isn't 18+ and defaults to ignore.

[JsonIgnore]
public bool ContainsNudity { get; set; }

Property Value

bool

ContainsNudity

Gets or sets a flag indicating the post media contains nudity. This puts a warning on images but isn't 18+ and defaults to ignore.

[JsonIgnore]
public bool ContainsNudity { get; set; }

Property Value

bool

ContainsPorn

Gets or sets a flag indicating the post media contains porn. This puts a warning on images and can only be clicked through if the user is 18+ and has enabled adult content.

[JsonIgnore]
public bool ContainsPorn { get; set; }

Property Value

bool

ContainsPorn

Gets or sets a flag indicating the post media contains porn. This puts a warning on images and can only be clicked through if the user is 18+ and has enabled adult content.

[JsonIgnore]
public bool ContainsPorn { get; set; }

Property Value

bool

ContainsPorn

Gets or sets a flag indicating the post media contains porn. This puts a warning on images and can only be clicked through if the user is 18+ and has enabled adult content.

[JsonIgnore]
public bool ContainsPorn { get; set; }

Property Value

bool

ContainsSexualContent

Gets or sets a flag indicating the post media contains sexual content. This behaves like idunno.Bluesky.Drafts.DraftPost.ContainsPorn but is meant to handle less intense sexual content.

[JsonIgnore]
public bool ContainsSexualContent { get; set; }

Property Value

bool

ContainsSexualContent

Gets or sets a flag indicating the post media contains sexual content. This behaves like idunno.Bluesky.Drafts.DraftPost.ContainsPorn but is meant to handle less intense sexual content.

[JsonIgnore]
public bool ContainsSexualContent { get; set; }

Property Value

bool

ContainsSexualContent

Gets or sets a flag indicating the post media contains sexual content. This behaves like idunno.Bluesky.Drafts.DraftPost.ContainsPorn but is meant to handle less intense sexual content.

[JsonIgnore]
public bool ContainsSexualContent { get; set; }

Property Value

bool

EmbedExternals

Gets the embedded external content for this draft.

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public IReadOnlyList<DraftEmbedExternal>? EmbedExternals { get; }

Property Value

IReadOnlyList<DraftEmbedExternal>?

EmbedExternals

Gets the embedded external content for this draft.

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public IReadOnlyList<DraftEmbedExternal>? EmbedExternals { get; }

Property Value

IReadOnlyList<DraftEmbedExternal>?

EmbedExternals

Gets the embedded external content for this draft.

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public IReadOnlyList<DraftEmbedExternal>? EmbedExternals { get; }

Property Value

IReadOnlyList<DraftEmbedExternal>?

EmbedGallery

Gets the embedded gallery for this draft.

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public DraftEmbedGallery? EmbedGallery { get; }

Property Value

DraftEmbedGallery?

EmbedGallery

Gets the embedded gallery for this draft.

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public DraftEmbedGallery? EmbedGallery { get; }

Property Value

DraftEmbedGallery?

EmbedGallery

Gets the embedded gallery for this draft.

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public DraftEmbedGallery? EmbedGallery { get; }

Property Value

DraftEmbedGallery?

EmbedImages

Gets the embedded images for this draft.

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public IReadOnlyList<DraftEmbedImage>? EmbedImages { get; }

Property Value

IReadOnlyList<DraftEmbedImage>?

EmbedImages

Gets the embedded images for this draft.

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public IReadOnlyList<DraftEmbedImage>? EmbedImages { get; }

Property Value

IReadOnlyList<DraftEmbedImage>?

EmbedImages

Gets the embedded images for this draft.

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public IReadOnlyList<DraftEmbedImage>? EmbedImages { get; }

Property Value

IReadOnlyList<DraftEmbedImage>?

EmbedRecords

Gets the embedded records for this draft.

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public IReadOnlyList<DraftEmbedRecord>? EmbedRecords { get; }

Property Value

IReadOnlyList<DraftEmbedRecord>?

EmbedRecords

Gets the embedded records for this draft.

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public IReadOnlyList<DraftEmbedRecord>? EmbedRecords { get; }

Property Value

IReadOnlyList<DraftEmbedRecord>?

EmbedRecords

Gets the embedded records for this draft.

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public IReadOnlyList<DraftEmbedRecord>? EmbedRecords { get; }

Property Value

IReadOnlyList<DraftEmbedRecord>?

EmbedVideos

Gets the embedded videos for this draft.

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public IReadOnlyList<DraftEmbedVideo>? EmbedVideos { get; }

Property Value

IReadOnlyList<DraftEmbedVideo>?

EmbedVideos

Gets the embedded videos for this draft.

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public IReadOnlyList<DraftEmbedVideo>? EmbedVideos { get; }

Property Value

IReadOnlyList<DraftEmbedVideo>?

EmbedVideos

Gets the embedded videos for this draft.

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public IReadOnlyList<DraftEmbedVideo>? EmbedVideos { get; }

Property Value

IReadOnlyList<DraftEmbedVideo>?

EqualityContract

protected virtual Type EqualityContract { get; }

Property Value

Type

EqualityContract

protected virtual Type EqualityContract { get; }

Property Value

Type

EqualityContract

protected virtual Type EqualityContract { get; }

Property Value

Type

Labels

Gets the self-label values for this draft. Effectively content warnings.

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public SelfLabels? Labels { get; }

Property Value

SelfLabels?

Labels

Gets the self-label values for this draft. Effectively content warnings.

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public SelfLabels? Labels { get; }

Property Value

SelfLabels?

Labels

Gets the self-label values for this draft. Effectively content warnings.

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public SelfLabels? Labels { get; }

Property Value

SelfLabels?

Text

Gets or sets the the primary post content. It has a higher limit than post contents to allow storing a larger text that can later be refined into smaller posts. Cannot be null or empty, cannot be larger than idunno.Bluesky.Maximum.DraftTextLengthInBytes UTF-8 bytes or idunno.Bluesky.Maximum.DraftTextLengthInGraphemes graphemes.

[JsonRequired]
public string Text { get; set; }

Property Value

string

Exceptions

ArgumentException

Thrown when setting if the value is null or empty.

ArgumentOutOfRangeException

Thrown when setting if the value length is greater than idunno.Bluesky.Maximum.DraftTextLengthInBytes UTF-8 bytes or idunno.Bluesky.Maximum.DraftTextLengthInGraphemes graphemes.

Text

Gets or sets the the primary post content. It has a higher limit than post contents to allow storing a larger text that can later be refined into smaller posts. Cannot be null or empty, cannot be larger than idunno.Bluesky.Maximum.DraftTextLengthInBytes UTF-8 bytes or idunno.Bluesky.Maximum.DraftTextLengthInGraphemes graphemes.

[JsonRequired]
public string Text { get; set; }

Property Value

string

Exceptions

ArgumentException

Thrown when setting if the value is null or empty.

ArgumentOutOfRangeException

Thrown when setting if the value length is greater than idunno.Bluesky.Maximum.DraftTextLengthInBytes UTF-8 bytes or idunno.Bluesky.Maximum.DraftTextLengthInGraphemes graphemes.

Text

Gets or sets the the primary post content. It has a higher limit than post contents to allow storing a larger text that can later be refined into smaller posts. Cannot be null or empty, cannot be larger than idunno.Bluesky.Maximum.DraftTextLengthInBytes UTF-8 bytes or idunno.Bluesky.Maximum.DraftTextLengthInGraphemes graphemes.

[JsonRequired]
public string Text { get; set; }

Property Value

string

Exceptions

ArgumentException

Thrown when setting if the value is null or empty.

ArgumentOutOfRangeException

Thrown when setting if the value length is greater than idunno.Bluesky.Maximum.DraftTextLengthInBytes UTF-8 bytes or idunno.Bluesky.Maximum.DraftTextLengthInGraphemes graphemes.

Methods

<Clone>$()

public virtual DraftPost <Clone>$()

Returns

DraftPost

<Clone>$()

public virtual DraftPost <Clone>$()

Returns

DraftPost

<Clone>$()

public virtual DraftPost <Clone>$()

Returns

DraftPost

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object?

Returns

bool

Equals(DraftPost?)

public virtual bool Equals(DraftPost? other)

Parameters

other DraftPost?

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object?

Returns

bool

Equals(DraftPost?)

public virtual bool Equals(DraftPost? other)

Parameters

other DraftPost?

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object?

Returns

bool

Equals(DraftPost?)

public virtual bool Equals(DraftPost? other)

Parameters

other DraftPost?

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

GetHashCode()

public override int GetHashCode()

Returns

int

GetHashCode()

public override int GetHashCode()

Returns

int

PrintMembers(StringBuilder)

protected virtual bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

PrintMembers(StringBuilder)

protected virtual bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

PrintMembers(StringBuilder)

protected virtual bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

SetSelfLabels(PostSelfLabels)

Sets the self labels for the post to the values specified in labels.

public void SetSelfLabels(PostSelfLabels labels)

Parameters

labels PostSelfLabels

The self label values to set.

Exceptions

ArgumentNullException

Thrown when labels is null.

SetSelfLabels(PostSelfLabels)

Sets the self labels for the post to the values specified in labels.

public void SetSelfLabels(PostSelfLabels labels)

Parameters

labels PostSelfLabels

The self label values to set.

Exceptions

ArgumentNullException

Thrown when labels is null.

SetSelfLabels(PostSelfLabels)

Sets the self labels for the post to the values specified in labels.

public void SetSelfLabels(PostSelfLabels labels)

Parameters

labels PostSelfLabels

The self label values to set.

Exceptions

ArgumentNullException

Thrown when labels is null.

ToString()

public override string ToString()

Returns

string

ToString()

public override string ToString()

Returns

string

ToString()

public override string ToString()

Returns

string

Operators

operator ==(DraftPost?, DraftPost?)

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

Parameters

left DraftPost?
right DraftPost?

Returns

bool

operator ==(DraftPost?, DraftPost?)

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

Parameters

left DraftPost?
right DraftPost?

Returns

bool

operator ==(DraftPost?, DraftPost?)

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

Parameters

left DraftPost?
right DraftPost?

Returns

bool

operator !=(DraftPost?, DraftPost?)

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

Parameters

left DraftPost?
right DraftPost?

Returns

bool

operator !=(DraftPost?, DraftPost?)

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

Parameters

left DraftPost?
right DraftPost?

Returns

bool

operator !=(DraftPost?, DraftPost?)

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

Parameters

left DraftPost?
right DraftPost?

Returns

bool