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
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
textstring-
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.
labelsSelfLabels?-
The labels to apply to the post.
embedImagesIReadOnlyList<DraftEmbedImage>?-
The images to embed in the post. (Maximum idunno.Bluesky.Maximum.DraftEmbedImages)
embedGalleryDraftEmbedGallery?-
The gallery to embed in the post.
embedVideosIReadOnlyList<DraftEmbedVideo>?-
The videos to embed in the post. (Maximum idunno.Bluesky.Maximum.DraftEmbedVideos)
embedExternalsIReadOnlyList<DraftEmbedExternal>?-
The external content to embed in the post. (Maximum idunno.Bluesky.Maximum.DraftEmbedExternals)
embedRecordsIReadOnlyList<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
textstring-
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
textstring-
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.
embedImagesIReadOnlyList<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
textstring-
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.
embedImageDraftEmbedImage-
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
textstring-
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.
labelsSelfLabels-
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
textstring-
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.
embedVideoDraftEmbedVideo-
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
textstring-
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.
postSelfLabelsPostSelfLabels?-
The labels to apply to the post.
embedImagesIReadOnlyList<DraftEmbedImage>?-
The images to embed in the post. (Maximum 4)
embedGalleryDraftEmbedGallery?-
The gallery to embed in the post.
embedVideosIReadOnlyList<DraftEmbedVideo>?-
The videos to embed in the post. (Maximum 1)
embedExternalsIReadOnlyList<DraftEmbedExternal>?-
The external content to embed in the post. (Maximum 1)
embedRecordsIReadOnlyList<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
originalDraftPost
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
textstring-
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.
labelsSelfLabels?-
The labels to apply to the post.
embedImagesIReadOnlyList<DraftEmbedImage>?-
The images to embed in the post. (Maximum idunno.Bluesky.Maximum.DraftEmbedImages)
embedGalleryDraftEmbedGallery?-
The gallery to embed in the post.
embedVideosIReadOnlyList<DraftEmbedVideo>?-
The videos to embed in the post. (Maximum idunno.Bluesky.Maximum.DraftEmbedVideos)
embedExternalsIReadOnlyList<DraftEmbedExternal>?-
The external content to embed in the post. (Maximum idunno.Bluesky.Maximum.DraftEmbedExternals)
embedRecordsIReadOnlyList<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
textstring-
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
textstring-
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.
embedImagesIReadOnlyList<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
textstring-
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.
embedImageDraftEmbedImage-
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
textstring-
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.
labelsSelfLabels-
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
textstring-
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.
embedVideoDraftEmbedVideo-
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
textstring-
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.
postSelfLabelsPostSelfLabels?-
The labels to apply to the post.
embedImagesIReadOnlyList<DraftEmbedImage>?-
The images to embed in the post. (Maximum 4)
embedGalleryDraftEmbedGallery?-
The gallery to embed in the post.
embedVideosIReadOnlyList<DraftEmbedVideo>?-
The videos to embed in the post. (Maximum 1)
embedExternalsIReadOnlyList<DraftEmbedExternal>?-
The external content to embed in the post. (Maximum 1)
embedRecordsIReadOnlyList<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
originalDraftPost
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
textstring-
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.
labelsSelfLabels?-
The labels to apply to the post.
embedImagesIReadOnlyList<DraftEmbedImage>?-
The images to embed in the post. (Maximum idunno.Bluesky.Maximum.DraftEmbedImages)
embedGalleryDraftEmbedGallery?-
The gallery to embed in the post.
embedVideosIReadOnlyList<DraftEmbedVideo>?-
The videos to embed in the post. (Maximum idunno.Bluesky.Maximum.DraftEmbedVideos)
embedExternalsIReadOnlyList<DraftEmbedExternal>?-
The external content to embed in the post. (Maximum idunno.Bluesky.Maximum.DraftEmbedExternals)
embedRecordsIReadOnlyList<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
textstring-
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
textstring-
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.
embedImagesIReadOnlyList<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
textstring-
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.
embedImageDraftEmbedImage-
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
textstring-
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.
labelsSelfLabels-
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
textstring-
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.
embedVideoDraftEmbedVideo-
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
textstring-
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.
postSelfLabelsPostSelfLabels?-
The labels to apply to the post.
embedImagesIReadOnlyList<DraftEmbedImage>?-
The images to embed in the post. (Maximum 4)
embedGalleryDraftEmbedGallery?-
The gallery to embed in the post.
embedVideosIReadOnlyList<DraftEmbedVideo>?-
The videos to embed in the post. (Maximum 1)
embedExternalsIReadOnlyList<DraftEmbedExternal>?-
The external content to embed in the post. (Maximum 1)
embedRecordsIReadOnlyList<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
originalDraftPost
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
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
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
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
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
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
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
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
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
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
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
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
EmbedExternals
Gets the embedded external content for this draft.
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public IReadOnlyList<DraftEmbedExternal>? EmbedExternals { get; }Property Value
EmbedExternals
Gets the embedded external content for this draft.
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public IReadOnlyList<DraftEmbedExternal>? EmbedExternals { get; }Property Value
EmbedExternals
Gets the embedded external content for this draft.
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public IReadOnlyList<DraftEmbedExternal>? EmbedExternals { get; }Property Value
EmbedGallery
Gets the embedded gallery for this draft.
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public DraftEmbedGallery? EmbedGallery { get; }Property Value
EmbedGallery
Gets the embedded gallery for this draft.
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public DraftEmbedGallery? EmbedGallery { get; }Property Value
EmbedGallery
Gets the embedded gallery for this draft.
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public DraftEmbedGallery? EmbedGallery { get; }Property Value
EmbedImages
Gets the embedded images for this draft.
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public IReadOnlyList<DraftEmbedImage>? EmbedImages { get; }Property Value
EmbedImages
Gets the embedded images for this draft.
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public IReadOnlyList<DraftEmbedImage>? EmbedImages { get; }Property Value
EmbedImages
Gets the embedded images for this draft.
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public IReadOnlyList<DraftEmbedImage>? EmbedImages { get; }Property Value
EmbedRecords
Gets the embedded records for this draft.
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public IReadOnlyList<DraftEmbedRecord>? EmbedRecords { get; }Property Value
EmbedRecords
Gets the embedded records for this draft.
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public IReadOnlyList<DraftEmbedRecord>? EmbedRecords { get; }Property Value
EmbedRecords
Gets the embedded records for this draft.
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public IReadOnlyList<DraftEmbedRecord>? EmbedRecords { get; }Property Value
EmbedVideos
Gets the embedded videos for this draft.
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public IReadOnlyList<DraftEmbedVideo>? EmbedVideos { get; }Property Value
EmbedVideos
Gets the embedded videos for this draft.
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public IReadOnlyList<DraftEmbedVideo>? EmbedVideos { get; }Property Value
EmbedVideos
Gets the embedded videos for this draft.
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public IReadOnlyList<DraftEmbedVideo>? EmbedVideos { get; }Property Value
EqualityContract
protected virtual Type EqualityContract { get; }Property Value
EqualityContract
protected virtual Type EqualityContract { get; }Property Value
EqualityContract
protected virtual Type EqualityContract { get; }Property Value
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
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
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
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
<Clone>$()
public virtual DraftPost <Clone>$()Returns
<Clone>$()
public virtual DraftPost <Clone>$()Returns
Equals(object?)
public override bool Equals(object? obj)Parameters
objobject?
Returns
Equals(DraftPost?)
public virtual bool Equals(DraftPost? other)Parameters
otherDraftPost?
Returns
Equals(object?)
public override bool Equals(object? obj)Parameters
objobject?
Returns
Equals(DraftPost?)
public virtual bool Equals(DraftPost? other)Parameters
otherDraftPost?
Returns
Equals(object?)
public override bool Equals(object? obj)Parameters
objobject?
Returns
Equals(DraftPost?)
public virtual bool Equals(DraftPost? other)Parameters
otherDraftPost?
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
SetSelfLabels(PostSelfLabels)
Sets the self labels for the post to the values specified in labels.
public void SetSelfLabels(PostSelfLabels labels)Parameters
labelsPostSelfLabels-
The self label values to set.
Exceptions
- ArgumentNullException
-
Thrown when
labelsis null.
SetSelfLabels(PostSelfLabels)
Sets the self labels for the post to the values specified in labels.
public void SetSelfLabels(PostSelfLabels labels)Parameters
labelsPostSelfLabels-
The self label values to set.
Exceptions
- ArgumentNullException
-
Thrown when
labelsis null.
SetSelfLabels(PostSelfLabels)
Sets the self labels for the post to the values specified in labels.
public void SetSelfLabels(PostSelfLabels labels)Parameters
labelsPostSelfLabels-
The self label values to set.
Exceptions
- ArgumentNullException
-
Thrown when
labelsis null.
ToString()
public override string ToString()Returns
ToString()
public override string ToString()Returns
ToString()
public override string ToString()Returns
Operators
operator ==(DraftPost?, DraftPost?)
public static bool operator ==(DraftPost? left, DraftPost? right)Parameters
Returns
operator ==(DraftPost?, DraftPost?)
public static bool operator ==(DraftPost? left, DraftPost? right)Parameters
Returns
operator ==(DraftPost?, DraftPost?)
public static bool operator ==(DraftPost? left, DraftPost? right)Parameters
Returns
operator !=(DraftPost?, DraftPost?)
public static bool operator !=(DraftPost? left, DraftPost? right)Parameters
Returns
operator !=(DraftPost?, DraftPost?)
public static bool operator !=(DraftPost? left, DraftPost? right)Parameters
Returns
operator !=(DraftPost?, DraftPost?)
public static bool operator !=(DraftPost? left, DraftPost? right)