Class PostBuilder
- Namespace
- idunno.Bluesky
- Assembly
- idunno.Bluesky.dll
A builder to allow building of a Post record in a more friendly manner.
public sealed class PostBuilder : IEquatable<PostBuilder>Inheritance
Implements
Inherited Members
Constructors
PostBuilder()
Creates a new instance of a idunno.Bluesky.PostBuilder.
public PostBuilder()PostBuilder(string?, string, DateTimeOffset?, ICollection<EmbeddedImage>?, ICollection<Facet>?, PostSelfLabels?, ICollection<string>?)
Creates a new instance of a idunno.Bluesky.PostBuilder.
public PostBuilder(string? text, string lang, DateTimeOffset? createdAt = null, ICollection<EmbeddedImage>? images = null, ICollection<Facet>? facets = null, PostSelfLabels? labels = null, ICollection<string>? tags = null)Parameters
textstring?-
The text for the post.
langstring-
The languages for the post.
createdAtDateTimeOffset?-
The System.DateTimeOffset the post was created at.
imagesICollection<EmbeddedImage>?-
A collection of idunno.Bluesky.Embed.EmbeddedImages to attach to the post, if any.
facetsICollection<Facet>?-
A collection of idunno.Bluesky.RichText.Facets to attach to the post text, if any.
labelsPostSelfLabels?-
Any self labels to apply to the post.
tagsICollection<string>?-
Any tags to apply to the post.
PostBuilder(string?, ICollection<string>?, DateTimeOffset?, ICollection<EmbeddedImage>?, ICollection<Facet>?, PostSelfLabels?, ICollection<string>?)
Creates a new instance of a idunno.Bluesky.PostBuilder.
public PostBuilder(string? text, ICollection<string>? langs = null, DateTimeOffset? createdAt = null, ICollection<EmbeddedImage>? images = null, ICollection<Facet>? facets = null, PostSelfLabels? labels = null, ICollection<string>? tags = null)Parameters
textstring?-
The text for the post.
langsICollection<string>?-
The languages for the post.
createdAtDateTimeOffset?-
The System.DateTimeOffset the post was created at.
imagesICollection<EmbeddedImage>?-
A collection of idunno.Bluesky.Embed.EmbeddedImages to attach to the post, if any.
facetsICollection<Facet>?-
A collection of idunno.Bluesky.RichText.Facets to attach to the post text, if any.
labelsPostSelfLabels?-
Any self labels to apply to the post.
tagsICollection<string>?-
Any tags to apply to the post.
Exceptions
- ArgumentException
-
Thrown when the
textfor a idunno.Bluesky.PostBuilder is too long ortagscontains a null or empty tag, - ArgumentOutOfRangeException
-
Thrown when
textfor the post is too long orimagescontains too many images, or if there are too manyimageswithout an idunno.Bluesky.Embed.EmbeddedImage.AspectRatio, ortagshas too many tags, or a tag that exceeds the maximum length.
PostBuilder(string?, ICollection<GalleryImage>, ICollection<Facet>?, PostSelfLabels?, ICollection<string>?)
Creates a new instance of a idunno.Bluesky.PostBuilder.
public PostBuilder(string? text, ICollection<GalleryImage> galleryImages, ICollection<Facet>? facets = null, PostSelfLabels? labels = null, ICollection<string>? tags = null)Parameters
textstring?-
The text for the post.
galleryImagesICollection<GalleryImage>-
A collection of idunno.Bluesky.Embed.Gallery.GalleryImages to attach to the post.
facetsICollection<Facet>?-
A collection of idunno.Bluesky.RichText.Facets to attach to the post text, if any.
labelsPostSelfLabels?-
Any self labels to apply to the post.
tagsICollection<string>?-
Any tags to apply to the post.
Exceptions
- ArgumentException
-
Thrown when the
textfor a idunno.Bluesky.PostBuilder is too long ortagscontains a null or empty tag. - ArgumentNullException
-
Thrown when
galleryImagesis null. - ArgumentOutOfRangeException
-
Thrown when
textfor the post is too long orgalleryImagescontains too many images, ortagshas too many tags, or a tag that exceeds the maximum length.
PostBuilder(string?, ICollection<GalleryImage>, DateTimeOffset?, ICollection<string>?, ICollection<Facet>?, PostSelfLabels?, ICollection<string>?)
Creates a new instance of a idunno.Bluesky.PostBuilder.
public PostBuilder(string? text, ICollection<GalleryImage> galleryImages, DateTimeOffset? createdAt, ICollection<string>? langs = null, ICollection<Facet>? facets = null, PostSelfLabels? labels = null, ICollection<string>? tags = null)Parameters
textstring?-
The text for the post.
galleryImagesICollection<GalleryImage>-
A collection of idunno.Bluesky.Embed.Gallery.GalleryImages to attach to the post.
createdAtDateTimeOffset?-
The System.DateTimeOffset the post was created at.
langsICollection<string>?-
The languages for the post.
facetsICollection<Facet>?-
A collection of idunno.Bluesky.RichText.Facets to attach to the post text, if any.
labelsPostSelfLabels?-
Any self labels to apply to the post.
tagsICollection<string>?-
Any tags to apply to the post.
Exceptions
- ArgumentException
-
Thrown when the
textfor a idunno.Bluesky.PostBuilder is too long ortagscontains a null or empty tag. - ArgumentNullException
-
Thrown when
galleryImagesis null. - ArgumentOutOfRangeException
-
Thrown when
textfor the post is too long orgalleryImagescontains too many images, ortagshas too many tags, or a tag that exceeds the maximum length.
PostBuilder()
Creates a new instance of a idunno.Bluesky.PostBuilder.
public PostBuilder()PostBuilder(string?, string, DateTimeOffset?, ICollection<EmbeddedImage>?, ICollection<Facet>?, PostSelfLabels?, ICollection<string>?)
Creates a new instance of a idunno.Bluesky.PostBuilder.
public PostBuilder(string? text, string lang, DateTimeOffset? createdAt = null, ICollection<EmbeddedImage>? images = null, ICollection<Facet>? facets = null, PostSelfLabels? labels = null, ICollection<string>? tags = null)Parameters
textstring?-
The text for the post.
langstring-
The languages for the post.
createdAtDateTimeOffset?-
The System.DateTimeOffset the post was created at.
imagesICollection<EmbeddedImage>?-
A collection of idunno.Bluesky.Embed.EmbeddedImages to attach to the post, if any.
facetsICollection<Facet>?-
A collection of idunno.Bluesky.RichText.Facets to attach to the post text, if any.
labelsPostSelfLabels?-
Any self labels to apply to the post.
tagsICollection<string>?-
Any tags to apply to the post.
PostBuilder(string?, ICollection<string>?, DateTimeOffset?, ICollection<EmbeddedImage>?, ICollection<Facet>?, PostSelfLabels?, ICollection<string>?)
Creates a new instance of a idunno.Bluesky.PostBuilder.
public PostBuilder(string? text, ICollection<string>? langs = null, DateTimeOffset? createdAt = null, ICollection<EmbeddedImage>? images = null, ICollection<Facet>? facets = null, PostSelfLabels? labels = null, ICollection<string>? tags = null)Parameters
textstring?-
The text for the post.
langsICollection<string>?-
The languages for the post.
createdAtDateTimeOffset?-
The System.DateTimeOffset the post was created at.
imagesICollection<EmbeddedImage>?-
A collection of idunno.Bluesky.Embed.EmbeddedImages to attach to the post, if any.
facetsICollection<Facet>?-
A collection of idunno.Bluesky.RichText.Facets to attach to the post text, if any.
labelsPostSelfLabels?-
Any self labels to apply to the post.
tagsICollection<string>?-
Any tags to apply to the post.
Exceptions
- ArgumentException
-
Thrown when the
textfor a idunno.Bluesky.PostBuilder is too long ortagscontains a null or empty tag, - ArgumentOutOfRangeException
-
Thrown when
textfor the post is too long orimagescontains too many images, or if there are too manyimageswithout an idunno.Bluesky.Embed.EmbeddedImage.AspectRatio, ortagshas too many tags, or a tag that exceeds the maximum length.
PostBuilder(string?, ICollection<GalleryImage>, ICollection<Facet>?, PostSelfLabels?, ICollection<string>?)
Creates a new instance of a idunno.Bluesky.PostBuilder.
public PostBuilder(string? text, ICollection<GalleryImage> galleryImages, ICollection<Facet>? facets = null, PostSelfLabels? labels = null, ICollection<string>? tags = null)Parameters
textstring?-
The text for the post.
galleryImagesICollection<GalleryImage>-
A collection of idunno.Bluesky.Embed.Gallery.GalleryImages to attach to the post.
facetsICollection<Facet>?-
A collection of idunno.Bluesky.RichText.Facets to attach to the post text, if any.
labelsPostSelfLabels?-
Any self labels to apply to the post.
tagsICollection<string>?-
Any tags to apply to the post.
Exceptions
- ArgumentException
-
Thrown when the
textfor a idunno.Bluesky.PostBuilder is too long ortagscontains a null or empty tag. - ArgumentNullException
-
Thrown when
galleryImagesis null. - ArgumentOutOfRangeException
-
Thrown when
textfor the post is too long orgalleryImagescontains too many images, ortagshas too many tags, or a tag that exceeds the maximum length.
PostBuilder(string?, ICollection<GalleryImage>, DateTimeOffset?, ICollection<string>?, ICollection<Facet>?, PostSelfLabels?, ICollection<string>?)
Creates a new instance of a idunno.Bluesky.PostBuilder.
public PostBuilder(string? text, ICollection<GalleryImage> galleryImages, DateTimeOffset? createdAt, ICollection<string>? langs = null, ICollection<Facet>? facets = null, PostSelfLabels? labels = null, ICollection<string>? tags = null)Parameters
textstring?-
The text for the post.
galleryImagesICollection<GalleryImage>-
A collection of idunno.Bluesky.Embed.Gallery.GalleryImages to attach to the post.
createdAtDateTimeOffset?-
The System.DateTimeOffset the post was created at.
langsICollection<string>?-
The languages for the post.
facetsICollection<Facet>?-
A collection of idunno.Bluesky.RichText.Facets to attach to the post text, if any.
labelsPostSelfLabels?-
Any self labels to apply to the post.
tagsICollection<string>?-
Any tags to apply to the post.
Exceptions
- ArgumentException
-
Thrown when the
textfor a idunno.Bluesky.PostBuilder is too long ortagscontains a null or empty tag. - ArgumentNullException
-
Thrown when
galleryImagesis null. - ArgumentOutOfRangeException
-
Thrown when
textfor the post is too long orgalleryImagescontains too many images, ortagshas too many tags, or a tag that exceeds the maximum length.
PostBuilder()
Creates a new instance of a idunno.Bluesky.PostBuilder.
public PostBuilder()PostBuilder(string?, string, DateTimeOffset?, ICollection<EmbeddedImage>?, ICollection<Facet>?, PostSelfLabels?, ICollection<string>?)
Creates a new instance of a idunno.Bluesky.PostBuilder.
public PostBuilder(string? text, string lang, DateTimeOffset? createdAt = null, ICollection<EmbeddedImage>? images = null, ICollection<Facet>? facets = null, PostSelfLabels? labels = null, ICollection<string>? tags = null)Parameters
textstring?-
The text for the post.
langstring-
The languages for the post.
createdAtDateTimeOffset?-
The System.DateTimeOffset the post was created at.
imagesICollection<EmbeddedImage>?-
A collection of idunno.Bluesky.Embed.EmbeddedImages to attach to the post, if any.
facetsICollection<Facet>?-
A collection of idunno.Bluesky.RichText.Facets to attach to the post text, if any.
labelsPostSelfLabels?-
Any self labels to apply to the post.
tagsICollection<string>?-
Any tags to apply to the post.
PostBuilder(string?, ICollection<string>?, DateTimeOffset?, ICollection<EmbeddedImage>?, ICollection<Facet>?, PostSelfLabels?, ICollection<string>?)
Creates a new instance of a idunno.Bluesky.PostBuilder.
public PostBuilder(string? text, ICollection<string>? langs = null, DateTimeOffset? createdAt = null, ICollection<EmbeddedImage>? images = null, ICollection<Facet>? facets = null, PostSelfLabels? labels = null, ICollection<string>? tags = null)Parameters
textstring?-
The text for the post.
langsICollection<string>?-
The languages for the post.
createdAtDateTimeOffset?-
The System.DateTimeOffset the post was created at.
imagesICollection<EmbeddedImage>?-
A collection of idunno.Bluesky.Embed.EmbeddedImages to attach to the post, if any.
facetsICollection<Facet>?-
A collection of idunno.Bluesky.RichText.Facets to attach to the post text, if any.
labelsPostSelfLabels?-
Any self labels to apply to the post.
tagsICollection<string>?-
Any tags to apply to the post.
Exceptions
- ArgumentException
-
Thrown when the
textfor a idunno.Bluesky.PostBuilder is too long ortagscontains a null or empty tag, - ArgumentOutOfRangeException
-
Thrown when
textfor the post is too long orimagescontains too many images, or if there are too manyimageswithout an idunno.Bluesky.Embed.EmbeddedImage.AspectRatio, ortagshas too many tags, or a tag that exceeds the maximum length.
PostBuilder(string?, ICollection<GalleryImage>, ICollection<Facet>?, PostSelfLabels?, ICollection<string>?)
Creates a new instance of a idunno.Bluesky.PostBuilder.
public PostBuilder(string? text, ICollection<GalleryImage> galleryImages, ICollection<Facet>? facets = null, PostSelfLabels? labels = null, ICollection<string>? tags = null)Parameters
textstring?-
The text for the post.
galleryImagesICollection<GalleryImage>-
A collection of idunno.Bluesky.Embed.Gallery.GalleryImages to attach to the post.
facetsICollection<Facet>?-
A collection of idunno.Bluesky.RichText.Facets to attach to the post text, if any.
labelsPostSelfLabels?-
Any self labels to apply to the post.
tagsICollection<string>?-
Any tags to apply to the post.
Exceptions
- ArgumentException
-
Thrown when the
textfor a idunno.Bluesky.PostBuilder is too long ortagscontains a null or empty tag. - ArgumentNullException
-
Thrown when
galleryImagesis null. - ArgumentOutOfRangeException
-
Thrown when
textfor the post is too long orgalleryImagescontains too many images, ortagshas too many tags, or a tag that exceeds the maximum length.
PostBuilder(string?, ICollection<GalleryImage>, DateTimeOffset?, ICollection<string>?, ICollection<Facet>?, PostSelfLabels?, ICollection<string>?)
Creates a new instance of a idunno.Bluesky.PostBuilder.
public PostBuilder(string? text, ICollection<GalleryImage> galleryImages, DateTimeOffset? createdAt, ICollection<string>? langs = null, ICollection<Facet>? facets = null, PostSelfLabels? labels = null, ICollection<string>? tags = null)Parameters
textstring?-
The text for the post.
galleryImagesICollection<GalleryImage>-
A collection of idunno.Bluesky.Embed.Gallery.GalleryImages to attach to the post.
createdAtDateTimeOffset?-
The System.DateTimeOffset the post was created at.
langsICollection<string>?-
The languages for the post.
facetsICollection<Facet>?-
A collection of idunno.Bluesky.RichText.Facets to attach to the post text, if any.
labelsPostSelfLabels?-
Any self labels to apply to the post.
tagsICollection<string>?-
Any tags to apply to the post.
Exceptions
- ArgumentException
-
Thrown when the
textfor a idunno.Bluesky.PostBuilder is too long ortagscontains a null or empty tag. - ArgumentNullException
-
Thrown when
galleryImagesis null. - ArgumentOutOfRangeException
-
Thrown when
textfor the post is too long orgalleryImagescontains too many images, ortagshas too many tags, or a tag that exceeds the maximum length.
Properties
DisableEmbedding
Gets or sets a flag indicating whether the new post should have embedding disabled.
public bool DisableEmbedding { get; set; }Property Value
DisableEmbedding
Gets or sets a flag indicating whether the new post should have embedding disabled.
public bool DisableEmbedding { get; set; }Property Value
DisableEmbedding
Gets or sets a flag indicating whether the new post should have embedding disabled.
public bool DisableEmbedding { get; set; }Property Value
DisableReplies
Gets or sets a flag indicating whether replies to the post should be disabled. Can only be set for posts which are not in reply to another post (thread roots).
public bool DisableReplies { get; set; }Property Value
Exceptions
- ArgumentException
-
Thrown when attempt to set idunno.Bluesky.PostBuilder.DisableReplies while idunno.Bluesky.PostBuilder.InReplyTo has a value.
DisableReplies
Gets or sets a flag indicating whether replies to the post should be disabled. Can only be set for posts which are not in reply to another post (thread roots).
public bool DisableReplies { get; set; }Property Value
Exceptions
- ArgumentException
-
Thrown when attempt to set idunno.Bluesky.PostBuilder.DisableReplies while idunno.Bluesky.PostBuilder.InReplyTo has a value.
DisableReplies
Gets or sets a flag indicating whether replies to the post should be disabled. Can only be set for posts which are not in reply to another post (thread roots).
public bool DisableReplies { get; set; }Property Value
Exceptions
- ArgumentException
-
Thrown when attempt to set idunno.Bluesky.PostBuilder.DisableReplies while idunno.Bluesky.PostBuilder.InReplyTo has a value.
Embed
Gets or sets the embedded media for the post.
public EmbeddedBase? Embed { get; set; }Property Value
Remarks
Images and video only get processed to embedded records when ToPost() is called.
Embed
Gets or sets the embedded media for the post.
public EmbeddedBase? Embed { get; set; }Property Value
Remarks
Images and video only get processed to embedded records when ToPost() is called.
Embed
Gets or sets the embedded media for the post.
public EmbeddedBase? Embed { get; set; }Property Value
Remarks
Images and video only get processed to embedded records when ToPost() is called.
Facets
Gets a list of facets for the post.
public IReadOnlyCollection<Facet> Facets { get; }Property Value
Facets
Gets a list of facets for the post.
public IReadOnlyCollection<Facet> Facets { get; }Property Value
Facets
Gets a list of facets for the post.
public IReadOnlyCollection<Facet> Facets { get; }Property Value
GalleryImages
Gets a readonly list of the gallery images for the post.
public IReadOnlyCollection<GalleryImage> GalleryImages { get; }Property Value
GalleryImages
Gets a readonly list of the gallery images for the post.
public IReadOnlyCollection<GalleryImage> GalleryImages { get; }Property Value
GalleryImages
Gets a readonly list of the gallery images for the post.
public IReadOnlyCollection<GalleryImage> GalleryImages { get; }Property Value
GraphemeLength
Gets the length of the post text, in graphemes.
public int GraphemeLength { get; }Property Value
GraphemeLength
Gets the length of the post text, in graphemes.
public int GraphemeLength { get; }Property Value
GraphemeLength
Gets the length of the post text, in graphemes.
public int GraphemeLength { get; }Property Value
HasEmbed
Gets a flag indicating whether this instance has an embedded media record.
[MemberNotNullWhen(true, "Embed")]
public bool HasEmbed { get; }Property Value
HasEmbed
Gets a flag indicating whether this instance has an embedded media record.
[MemberNotNullWhen(true, "Embed")]
public bool HasEmbed { get; }Property Value
HasEmbed
Gets a flag indicating whether this instance has an embedded media record.
[MemberNotNullWhen(true, "Embed")]
public bool HasEmbed { get; }Property Value
HasGalleryImages
Gets a flag indicating whether this instance has any gallery images
[MemberNotNullWhen(true, "GalleryImages")]
public bool HasGalleryImages { get; }Property Value
HasGalleryImages
Gets a flag indicating whether this instance has any gallery images
[MemberNotNullWhen(true, "GalleryImages")]
public bool HasGalleryImages { get; }Property Value
HasGalleryImages
Gets a flag indicating whether this instance has any gallery images
[MemberNotNullWhen(true, "GalleryImages")]
public bool HasGalleryImages { get; }Property Value
HasImages
Gets a flag indicating whether this instance has any images
[MemberNotNullWhen(true, "Images")]
public bool HasImages { get; }Property Value
HasImages
Gets a flag indicating whether this instance has any images
[MemberNotNullWhen(true, "Images")]
public bool HasImages { get; }Property Value
HasImages
Gets a flag indicating whether this instance has any images
[MemberNotNullWhen(true, "Images")]
public bool HasImages { get; }Property Value
HasTags
Gets a flag indicating whether this instance has any tags
[MemberNotNullWhen(true, "Tags")]
public bool HasTags { get; }Property Value
HasTags
Gets a flag indicating whether this instance has any tags
[MemberNotNullWhen(true, "Tags")]
public bool HasTags { get; }Property Value
HasTags
Gets a flag indicating whether this instance has any tags
[MemberNotNullWhen(true, "Tags")]
public bool HasTags { get; }Property Value
HasText
Gets a flag indicating whether this instance has any record text.
[MemberNotNullWhen(true, "Length")]
[MemberNotNullWhen(true, "Text")]
public bool HasText { get; }Property Value
HasText
Gets a flag indicating whether this instance has any record text.
[MemberNotNullWhen(true, "Length")]
[MemberNotNullWhen(true, "Text")]
public bool HasText { get; }Property Value
HasText
Gets a flag indicating whether this instance has any record text.
[MemberNotNullWhen(true, "Length")]
[MemberNotNullWhen(true, "Text")]
public bool HasText { get; }Property Value
HasVideo
Gets a flag indicating whether this instance has an embedded video
[MemberNotNullWhen(true, "Video")]
public bool HasVideo { get; }Property Value
HasVideo
Gets a flag indicating whether this instance has an embedded video
[MemberNotNullWhen(true, "Video")]
public bool HasVideo { get; }Property Value
HasVideo
Gets a flag indicating whether this instance has an embedded video
[MemberNotNullWhen(true, "Video")]
public bool HasVideo { get; }Property Value
Images
Gets a readonly list of the images for the post. If the number of images is greater than the maximum allowed in a post, the resulting post may use a gallery view instead of an image view.
public IReadOnlyCollection<EmbeddedImage> Images { get; }Property Value
Images
Gets a readonly list of the images for the post. If the number of images is greater than the maximum allowed in a post, the resulting post may use a gallery view instead of an image view.
public IReadOnlyCollection<EmbeddedImage> Images { get; }Property Value
Images
Gets a readonly list of the images for the post. If the number of images is greater than the maximum allowed in a post, the resulting post may use a gallery view instead of an image view.
public IReadOnlyCollection<EmbeddedImage> Images { get; }Property Value
InReplyTo
Gets or sets the idunno.AtProto.Repo.StrongReference of the post being replied to.
public ReplyReferences? InReplyTo { get; set; }Property Value
Remarks
Replying to a post and quoting a post are mutually exclusive operations. Setting idunno.Bluesky.PostBuilder.InReplyTo will remove the idunno.Bluesky.PostBuilder.QuotePost if one has been set.
Exceptions
- ArgumentException
-
Thrown when setting a value and idunno.Bluesky.PostBuilder.ThreadGateRules is not null.
- PostBuilderException
-
Thrown when the value does not point to Bluesky post records.
InReplyTo
Gets or sets the idunno.AtProto.Repo.StrongReference of the post being replied to.
public ReplyReferences? InReplyTo { get; set; }Property Value
Remarks
Replying to a post and quoting a post are mutually exclusive operations. Setting idunno.Bluesky.PostBuilder.InReplyTo will remove the idunno.Bluesky.PostBuilder.QuotePost if one has been set.
Exceptions
- ArgumentException
-
Thrown when setting a value and idunno.Bluesky.PostBuilder.ThreadGateRules is not null.
- PostBuilderException
-
Thrown when the value does not point to Bluesky post records.
InReplyTo
Gets or sets the idunno.AtProto.Repo.StrongReference of the post being replied to.
public ReplyReferences? InReplyTo { get; set; }Property Value
Remarks
Replying to a post and quoting a post are mutually exclusive operations. Setting idunno.Bluesky.PostBuilder.InReplyTo will remove the idunno.Bluesky.PostBuilder.QuotePost if one has been set.
Exceptions
- ArgumentException
-
Thrown when setting a value and idunno.Bluesky.PostBuilder.ThreadGateRules is not null.
- PostBuilderException
-
Thrown when the value does not point to Bluesky post records.
Langs
Gets a copy of the list of languages for the post.
public IEnumerable<string>? Langs { get; }Property Value
Langs
Gets a copy of the list of languages for the post.
public IEnumerable<string>? Langs { get; }Property Value
Langs
Gets a copy of the list of languages for the post.
public IEnumerable<string>? Langs { get; }Property Value
Length
Gets the length of the post text, in characters.
public int Length { get; }Property Value
Length
Gets the length of the post text, in characters.
public int Length { get; }Property Value
Length
Gets the length of the post text, in characters.
public int Length { get; }Property Value
MaxCapacity
Gets the maximum capacity, in UTF-8 bytes, allowed in the record text of this instance
public int MaxCapacity { get; }Property Value
MaxCapacity
Gets the maximum capacity, in UTF-8 bytes, allowed in the record text of this instance
public int MaxCapacity { get; }Property Value
MaxCapacity
Gets the maximum capacity, in UTF-8 bytes, allowed in the record text of this instance
public int MaxCapacity { get; }Property Value
MaxCapacityGraphemes
Gets the maximum capacity of graphemes allowed in the record text of this instance
public int MaxCapacityGraphemes { get; }Property Value
MaxCapacityGraphemes
Gets the maximum capacity of graphemes allowed in the record text of this instance
public int MaxCapacityGraphemes { get; }Property Value
MaxCapacityGraphemes
Gets the maximum capacity of graphemes allowed in the record text of this instance
public int MaxCapacityGraphemes { get; }Property Value
MaxGalleryItems
Gets the maximum capacity of gallery images allowed in this instance
public int MaxGalleryItems { get; }Property Value
MaxGalleryItems
Gets the maximum capacity of gallery images allowed in this instance
public int MaxGalleryItems { get; }Property Value
MaxGalleryItems
Gets the maximum capacity of gallery images allowed in this instance
public int MaxGalleryItems { get; }Property Value
MaxImages
Gets the maximum capacity of images allowed in this instance
public int MaxImages { get; }Property Value
MaxImages
Gets the maximum capacity of images allowed in this instance
public int MaxImages { get; }Property Value
MaxImages
Gets the maximum capacity of images allowed in this instance
public int MaxImages { get; }Property Value
PostGateRules
Gets or sets post gate rules to apply to the post.
public IReadOnlyCollection<PostGateRule>? PostGateRules { get; set; }Property Value
Exceptions
- ArgumentOutOfRangeException
-
Thrown when the number of rules being set is greater than the maximum allowed.
PostGateRules
Gets or sets post gate rules to apply to the post.
public IReadOnlyCollection<PostGateRule>? PostGateRules { get; set; }Property Value
Exceptions
- ArgumentOutOfRangeException
-
Thrown when the number of rules being set is greater than the maximum allowed.
PostGateRules
Gets or sets post gate rules to apply to the post.
public IReadOnlyCollection<PostGateRule>? PostGateRules { get; set; }Property Value
Exceptions
- ArgumentOutOfRangeException
-
Thrown when the number of rules being set is greater than the maximum allowed.
QuotePost
Gets or sets the idunno.AtProto.Repo.StrongReference of the post being quoted.
public StrongReference? QuotePost { get; set; }Property Value
- StrongReference?
Remarks
Replying to a post and quoting a post are mutually exclusive operations. Setting idunno.Bluesky.PostBuilder.QuotePost will remove the idunno.Bluesky.PostBuilder.InReplyTo if one has been set.
Exceptions
- ArgumentException
-
Thrown when setting a value and the underlying post idunno.Bluesky.Embed.EmbeddedRecord is a type that cannot be quoted.
QuotePost
Gets or sets the idunno.AtProto.Repo.StrongReference of the post being quoted.
public StrongReference? QuotePost { get; set; }Property Value
- StrongReference?
Remarks
Replying to a post and quoting a post are mutually exclusive operations. Setting idunno.Bluesky.PostBuilder.QuotePost will remove the idunno.Bluesky.PostBuilder.InReplyTo if one has been set.
Exceptions
- ArgumentException
-
Thrown when setting a value and the underlying post idunno.Bluesky.Embed.EmbeddedRecord is a type that cannot be quoted.
QuotePost
Gets or sets the idunno.AtProto.Repo.StrongReference of the post being quoted.
public StrongReference? QuotePost { get; set; }Property Value
- StrongReference?
Remarks
Replying to a post and quoting a post are mutually exclusive operations. Setting idunno.Bluesky.PostBuilder.QuotePost will remove the idunno.Bluesky.PostBuilder.InReplyTo if one has been set.
Exceptions
- ArgumentException
-
Thrown when setting a value and the underlying post idunno.Bluesky.Embed.EmbeddedRecord is a type that cannot be quoted.
Tags
Gets a copy of the tags for the post.
public IEnumerable<string>? Tags { get; }Property Value
Tags
Gets a copy of the tags for the post.
public IEnumerable<string>? Tags { get; }Property Value
Tags
Gets a copy of the tags for the post.
public IEnumerable<string>? Tags { get; }Property Value
Text
Gets a copy of the text for this instance.
public string? Text { get; }Property Value
Exceptions
- ArgumentOutOfRangeException
-
Thrown when setting a value that is too long.
Text
Gets a copy of the text for this instance.
public string? Text { get; }Property Value
Exceptions
- ArgumentOutOfRangeException
-
Thrown when setting a value that is too long.
Text
Gets a copy of the text for this instance.
public string? Text { get; }Property Value
Exceptions
- ArgumentOutOfRangeException
-
Thrown when setting a value that is too long.
ThreadGateRules
Gets or sets the thread gate rules to apply to the post.
public IReadOnlyCollection<ThreadGateRule>? ThreadGateRules { get; set; }Property Value
Exceptions
- ArgumentException
-
Thrown when idunno.Bluesky.PostBuilder.InReplyTo is not null and rules are being set.
- ArgumentOutOfRangeException
-
Thrown when the number of rules being set is greater than the maximum allowed.
ThreadGateRules
Gets or sets the thread gate rules to apply to the post.
public IReadOnlyCollection<ThreadGateRule>? ThreadGateRules { get; set; }Property Value
Exceptions
- ArgumentException
-
Thrown when idunno.Bluesky.PostBuilder.InReplyTo is not null and rules are being set.
- ArgumentOutOfRangeException
-
Thrown when the number of rules being set is greater than the maximum allowed.
ThreadGateRules
Gets or sets the thread gate rules to apply to the post.
public IReadOnlyCollection<ThreadGateRule>? ThreadGateRules { get; set; }Property Value
Exceptions
- ArgumentException
-
Thrown when idunno.Bluesky.PostBuilder.InReplyTo is not null and rules are being set.
- ArgumentOutOfRangeException
-
Thrown when the number of rules being set is greater than the maximum allowed.
Utf8Length
Gets the length of the post text, in Utf8Bytes.
public int Utf8Length { get; }Property Value
Utf8Length
Gets the length of the post text, in Utf8Bytes.
public int Utf8Length { get; }Property Value
Utf8Length
Gets the length of the post text, in Utf8Bytes.
public int Utf8Length { get; }Property Value
Video
Gets the embedded video for the post, if any.
public EmbeddedVideo? Video { get; }Property Value
Video
Gets the embedded video for the post, if any.
public EmbeddedVideo? Video { get; }Property Value
Video
Gets the embedded video for the post, if any.
public EmbeddedVideo? Video { get; }Property Value
Methods
Add(string)
Adds a copy of the specified string to the record text of this instance.
public PostBuilder Add(string s)Parameters
sstring-
The string to append
Returns
- PostBuilder
-
A reference to this instance after the append operation has completed.
Exceptions
- ArgumentNullException
-
Thrown when
sis null.
Add(PostBuilder, string)
Adds a copy of the specified string to the record text to the specified postBuilder.
public static PostBuilder Add(PostBuilder postBuilder, string s)Parameters
postBuilderPostBuilder-
The idunno.Bluesky.PostBuilder to add the string to.
sstring-
The string to append
Returns
- PostBuilder
-
A reference to this instance after the append operation has completed.
Exceptions
- ArgumentNullException
-
Thrown when
postBuilderis null.
Add(char)
Adds a copy of the specified character to the post text of this instance.
public PostBuilder Add(char c)Parameters
cchar-
The character to append
Returns
- PostBuilder
-
A reference to this instance after the append operation has completed.
Add(PostBuilder, char)
Adds a the specified character to the post text of the specified postBuilder.
public static PostBuilder Add(PostBuilder postBuilder, char c)Parameters
postBuilderPostBuilder-
The idunno.Bluesky.PostBuilder to add the character to.
cchar-
The character to append
Returns
- PostBuilder
-
A reference to this instance after the append operation has completed.
Exceptions
- ArgumentNullException
-
Thrown when
postBuilderis null.
Add(char, int)
Adds the specified character, repeated by the specified count, to the post text of this instance.
public PostBuilder Add(char c, int repeatCount)Parameters
Returns
- PostBuilder
-
A reference to this instance after the append operation has completed.
Add(PostBuilder, char, int)
Adds a copy of the specified character to the record text to the specified postBuilder.
public static PostBuilder Add(PostBuilder postBuilder, char c, int repeatCount)Parameters
postBuilderPostBuilder-
The idunno.Bluesky.PostBuilder to add the string to.
cchar-
The character to append
repeatCountint-
The number of times to repeat the
c.
Returns
- PostBuilder
-
A reference to this instance after the append operation has completed.
Exceptions
- ArgumentNullException
-
Thrown when
postBuilderis null.
Add(Link)
Adds a idunno.Bluesky.RichText.Link to the text and facet features of this instance.
public PostBuilder Add(Link link)Parameters
linkLink-
The idunno.Bluesky.RichText.Link to add.
Returns
- PostBuilder
-
A reference to this instance after the add operation has completed.
Exceptions
- ArgumentNullException
-
Thrown when
linkis null.
Add(PostBuilder, Link)
Adds a idunno.Bluesky.RichText.Link to the text and facet features of the specified postBuilder.
public static PostBuilder Add(PostBuilder postBuilder, Link link)Parameters
postBuilderPostBuilder-
The idunno.Bluesky.PostBuilder to add the link to.
linkLink-
The idunno.Bluesky.RichText.Link to add.
Returns
- PostBuilder
-
A reference to this instance after the add operation has completed.
Exceptions
- ArgumentNullException
-
Thrown when
postBuilderorlinkis null.
Add(Mention)
Adds a idunno.Bluesky.RichText.Mention to the text and and facet features to this instance.
public PostBuilder Add(Mention mention)Parameters
mentionMention-
The idunno.Bluesky.RichText.Mention to add.
Returns
- PostBuilder
-
A reference to this instance after the add operation has completed.
Exceptions
- ArgumentNullException
-
Thrown when
mentionis null.
Add(PostBuilder, Mention)
Adds a idunno.Bluesky.RichText.Mention to the text and and facet features to the specified postBuilder.
public static PostBuilder Add(PostBuilder postBuilder, Mention mention)Parameters
postBuilderPostBuilder-
The idunno.Bluesky.PostBuilder to add the mention to.
mentionMention-
The idunno.Bluesky.RichText.Mention to add.
Returns
- PostBuilder
-
A reference to this instance after the add operation has completed.
Exceptions
- ArgumentNullException
-
Thrown when
postBuilderormentionis null.
Add(HashTag)
Adds a idunno.Bluesky.RichText.HashTag to the text and facet features to this instance.
public PostBuilder Add(HashTag hashTag)Parameters
hashTagHashTag-
The idunno.Bluesky.RichText.HashTag to add.
Returns
- PostBuilder
-
A reference to this instance after the add operation has completed.
Exceptions
- ArgumentNullException
-
Thrown when
hashTagis null.
Add(PostBuilder, HashTag)
Adds a idunno.Bluesky.RichText.HashTag to the text and facet features to the specified postBuilder.
public static PostBuilder Add(PostBuilder postBuilder, HashTag hashTag)Parameters
postBuilderPostBuilder-
The idunno.Bluesky.PostBuilder to add the hash tag to.
hashTagHashTag-
The idunno.Bluesky.RichText.HashTag to add.
Returns
- PostBuilder
-
A reference to this instance after the add operation has completed.
Exceptions
- ArgumentNullException
-
Thrown when
postBuilderorhashTagis null.
Add(EmbeddedImage)
Adds a idunno.Bluesky.Embed.EmbeddedImage to this instance.
public PostBuilder Add(EmbeddedImage image)Parameters
imageEmbeddedImage-
The idunno.Bluesky.Embed.EmbeddedImage to add.
Returns
- PostBuilder
-
A reference to this instance after the add operation has completed.
Remarks
If the number of images in this instance are equal to idunno.Bluesky.PostBuilder.MaxImages, the image collection will be converted to a gallery entry
they have aspect ratios, and image added to the gallery. If the conversion is not possible, an exception will be thrown.
Exceptions
- ArgumentNullException
-
Thrown when
imageis null. - ArgumentOutOfRangeException
-
Thrown when the number of images in this instance is already equal to idunno.Bluesky.PostBuilder.MaxImages.
- ArgumentException
-
Thrown when attempting to convert an image without an aspect ratio to a gallery entry.
- InvalidOperationException
-
Thrown when the existing images cannot be converted to a gallery due to missing aspect ratios.
Add(PostBuilder, EmbeddedImage)
Adds a idunno.Bluesky.Embed.EmbeddedImage to the specified postBuilder.
public static PostBuilder Add(PostBuilder postBuilder, EmbeddedImage image)Parameters
postBuilderPostBuilder-
The idunno.Bluesky.PostBuilder to add the image to.
imageEmbeddedImage-
The idunno.Bluesky.Embed.EmbeddedImage to add.
Returns
- PostBuilder
-
A reference to this instance after the add operation has completed.
Remarks
If the number of images in this instance are equal to idunno.Bluesky.PostBuilder.MaxImages, the image collection will be converted to a gallery entry
they have aspect ratios, and image added to the gallery. If the conversion is not possible, an exception will be thrown.
Exceptions
- ArgumentNullException
-
Thrown when
postBuilderorimageis null. - ArgumentOutOfRangeException
-
Thrown when the number of images in this instance is already equal to idunno.Bluesky.PostBuilder.MaxImages.
Add(ICollection<EmbeddedImage>)
Adds a collection idunno.Bluesky.Embed.EmbeddedImages to this instance.
public PostBuilder Add(ICollection<EmbeddedImage> images)Parameters
imagesICollection<EmbeddedImage>-
The collection of idunno.Bluesky.Embed.EmbeddedImage to embed.
Returns
- PostBuilder
-
A reference to this instance after the append operation has completed.
Remarks
If the number of images in this instance are equal to idunno.Bluesky.PostBuilder.MaxImages, the image collection will be converted to a gallery entry
they have aspect ratios, and images added to the gallery. If the conversion is not possible, an exception will be thrown.
Exceptions
- ArgumentNullException
-
if
imagesis null. - ArgumentOutOfRangeException
-
Thrown when adding the images in this instance is will result in an image count >idunno.Bluesky.PostBuilder.MaxImages.
- InvalidOperationException
-
Thrown when the images cannot be converted to gallery entries due to missing AspectRatio, or the number of images in this instance coupled with the new images necessitates a conversion to a gallery and one or more existing images lack an AspectRatio.
Add(PostBuilder, ICollection<EmbeddedImage>)
Adds a collection of idunno.Bluesky.Embed.EmbeddedImages to the specified postBuilder.
public static PostBuilder Add(PostBuilder postBuilder, ICollection<EmbeddedImage> images)Parameters
postBuilderPostBuilder-
The idunno.Bluesky.PostBuilder to add the images to.
imagesICollection<EmbeddedImage>-
The collection of idunno.Bluesky.Embed.EmbeddedImages to add.
Returns
- PostBuilder
-
A reference to this instance after the add operation has completed.
Exceptions
- ArgumentNullException
-
Thrown when
postBuilderorimagesis null. - ArgumentOutOfRangeException
-
Thrown when adding the images in this instance is will result in an image count >idunno.Bluesky.PostBuilder.MaxImages.
Add(EmbeddedVideo)
Adds a idunno.Bluesky.Embed.EmbeddedVideo to this instance.
public PostBuilder Add(EmbeddedVideo video)Parameters
videoEmbeddedVideo-
The idunno.Bluesky.Embed.EmbeddedVideo to embed.
Returns
- PostBuilder
-
A reference to this instance after the append operation has completed.
Exceptions
- ArgumentNullException
-
Thrown when
videois null. - ArgumentOutOfRangeException
-
Thrown when the this instance already has images.
Add(PostBuilder, EmbeddedVideo)
Adds a idunno.Bluesky.Embed.EmbeddedVideo to the specified postBuilder.
public static PostBuilder Add(PostBuilder postBuilder, EmbeddedVideo video)Parameters
postBuilderPostBuilder-
The idunno.Bluesky.PostBuilder to add the video to.
videoEmbeddedVideo-
The idunno.Bluesky.Embed.EmbeddedVideo to embed.
Returns
- PostBuilder
-
The
postBuilder.
Exceptions
- ArgumentNullException
-
Thrown when
videois null. - ArgumentOutOfRangeException
-
Thrown when the
postBuilderalready has images.
Add(StrongReference)
Adds an embedded record pointing to the ATProto record specified by strongReference to this instance.
public PostBuilder Add(StrongReference strongReference)Parameters
strongReferenceStrongReference-
The idunno.AtProto.Repo.StrongReference to embed.
Returns
- PostBuilder
-
A reference to this instance after the append operation has completed.
Exceptions
- ArgumentNullException
-
Thrown when
strongReferenceis null. - InvalidOperationException
-
Thrown when this instance already has a quote post.
Add(PostBuilder, StrongReference)
Adds an embedded record pointing to the ATProto record specified by strongReference to the specified postBuilder.
public static PostBuilder Add(PostBuilder postBuilder, StrongReference strongReference)Parameters
postBuilderPostBuilder-
The idunno.Bluesky.PostBuilder to add the strong reference to.
strongReferenceStrongReference-
The idunno.AtProto.Repo.StrongReference to embed.
Returns
- PostBuilder
-
The
postBuilder.
Exceptions
- ArgumentNullException
-
Thrown when
postBuilderorstrongReferenceis null.
Add(SelfLabel)
Adds a idunno.AtProto.Labels.SelfLabel to this instance.
public PostBuilder Add(SelfLabel selfLabel)Parameters
selfLabelSelfLabel-
The idunno.AtProto.Labels.SelfLabel to add.
Returns
- PostBuilder
-
A reference to this instance after the append operation has completed.
Exceptions
- ArgumentNullException
-
Thrown when
selfLabelor the label's value is null.
Add(PostBuilder, SelfLabel)
Adds a idunno.AtProto.Labels.SelfLabel to this instance.
public static PostBuilder Add(PostBuilder postBuilder, SelfLabel selfLabel)Parameters
postBuilderPostBuilder-
The idunno.Bluesky.PostBuilder to add the label to.
selfLabelSelfLabel-
The idunno.AtProto.Labels.SelfLabel to add.
Returns
- PostBuilder
-
The
postBuilder.
Exceptions
- ArgumentNullException
-
Thrown when
postBuilder,selfLabel, or the label's value is null.
Add(GalleryImage)
Adds a idunno.Bluesky.Embed.Gallery.GalleryImage to this instance.
public PostBuilder Add(GalleryImage image)Parameters
imageGalleryImage-
The idunno.Bluesky.Embed.Gallery.GalleryImage to add.
Returns
- PostBuilder
-
A reference to this instance after the append operation has completed.
Exceptions
- ArgumentOutOfRangeException
-
Thrown when the maximum number of gallery items is exceeded.
- ArgumentNullException
-
Thrown when
imageis null. - InvalidOperationException
-
Thrown when a video is already present or there are existing images.
Add(ICollection<GalleryImage>)
Adds a collection of idunno.Bluesky.Embed.Gallery.GalleryImages to this instance.
public PostBuilder Add(ICollection<GalleryImage> images)Parameters
imagesICollection<GalleryImage>-
The collection of idunno.Bluesky.Embed.Gallery.GalleryImages to add.
Returns
- PostBuilder
-
A reference to this instance after the append operation has completed.
Exceptions
- InvalidOperationException
-
Thrown when a video is already present or there are existing images.
- ArgumentOutOfRangeException
-
Thrown when the maximum number of gallery items is exceeded.
- ArgumentNullException
-
Thrown when
imagesis null.
Add(PostBuilder, GalleryImage)
Adds a idunno.Bluesky.Embed.Gallery.GalleryImage to the specified postBuilder.
public static PostBuilder Add(PostBuilder postBuilder, GalleryImage image)Parameters
postBuilderPostBuilder-
The idunno.Bluesky.PostBuilder to add the image to.
imageGalleryImage-
The idunno.Bluesky.Embed.Gallery.GalleryImage to add.
Returns
- PostBuilder
-
The
postBuilderafter the append operation has completed.
Exceptions
- ArgumentOutOfRangeException
-
Thrown when the maximum number of gallery items is exceeded or a video is already present.
- ArgumentNullException
-
Thrown when
postBuilderorimageis null.
Add(PostBuilder, ICollection<GalleryImage>)
Adds a collection of idunno.Bluesky.Embed.Gallery.GalleryImages to the specified postBuilder.
public static PostBuilder Add(PostBuilder postBuilder, ICollection<GalleryImage> galleryImages)Parameters
postBuilderPostBuilder-
The idunno.Bluesky.PostBuilder to add the images to.
galleryImagesICollection<GalleryImage>-
The collection of idunno.Bluesky.Embed.Gallery.GalleryImages to add.
Returns
- PostBuilder
-
A reference to this instance after the add operation has completed.
Exceptions
- ArgumentNullException
-
Thrown when
postBuilderorgalleryImagesis null. - ArgumentOutOfRangeException
-
Thrown when adding the images in this instance is will result in an image count >idunno.Bluesky.PostBuilder.MaxImages.
Add(string)
Adds a copy of the specified string to the record text of this instance.
public PostBuilder Add(string s)Parameters
sstring-
The string to append
Returns
- PostBuilder
-
A reference to this instance after the append operation has completed.
Exceptions
- ArgumentNullException
-
Thrown when
sis null.
Add(PostBuilder, string)
Adds a copy of the specified string to the record text to the specified postBuilder.
public static PostBuilder Add(PostBuilder postBuilder, string s)Parameters
postBuilderPostBuilder-
The idunno.Bluesky.PostBuilder to add the string to.
sstring-
The string to append
Returns
- PostBuilder
-
A reference to this instance after the append operation has completed.
Exceptions
- ArgumentNullException
-
Thrown when
postBuilderis null.
Add(char)
Adds a copy of the specified character to the post text of this instance.
public PostBuilder Add(char c)Parameters
cchar-
The character to append
Returns
- PostBuilder
-
A reference to this instance after the append operation has completed.
Add(PostBuilder, char)
Adds a the specified character to the post text of the specified postBuilder.
public static PostBuilder Add(PostBuilder postBuilder, char c)Parameters
postBuilderPostBuilder-
The idunno.Bluesky.PostBuilder to add the character to.
cchar-
The character to append
Returns
- PostBuilder
-
A reference to this instance after the append operation has completed.
Exceptions
- ArgumentNullException
-
Thrown when
postBuilderis null.
Add(char, int)
Adds the specified character, repeated by the specified count, to the post text of this instance.
public PostBuilder Add(char c, int repeatCount)Parameters
Returns
- PostBuilder
-
A reference to this instance after the append operation has completed.
Add(PostBuilder, char, int)
Adds a copy of the specified character to the record text to the specified postBuilder.
public static PostBuilder Add(PostBuilder postBuilder, char c, int repeatCount)Parameters
postBuilderPostBuilder-
The idunno.Bluesky.PostBuilder to add the string to.
cchar-
The character to append
repeatCountint-
The number of times to repeat the
c.
Returns
- PostBuilder
-
A reference to this instance after the append operation has completed.
Exceptions
- ArgumentNullException
-
Thrown when
postBuilderis null.
Add(Link)
Adds a idunno.Bluesky.RichText.Link to the text and facet features of this instance.
public PostBuilder Add(Link link)Parameters
linkLink-
The idunno.Bluesky.RichText.Link to add.
Returns
- PostBuilder
-
A reference to this instance after the add operation has completed.
Exceptions
- ArgumentNullException
-
Thrown when
linkis null.
Add(PostBuilder, Link)
Adds a idunno.Bluesky.RichText.Link to the text and facet features of the specified postBuilder.
public static PostBuilder Add(PostBuilder postBuilder, Link link)Parameters
postBuilderPostBuilder-
The idunno.Bluesky.PostBuilder to add the link to.
linkLink-
The idunno.Bluesky.RichText.Link to add.
Returns
- PostBuilder
-
A reference to this instance after the add operation has completed.
Exceptions
- ArgumentNullException
-
Thrown when
postBuilderorlinkis null.
Add(Mention)
Adds a idunno.Bluesky.RichText.Mention to the text and and facet features to this instance.
public PostBuilder Add(Mention mention)Parameters
mentionMention-
The idunno.Bluesky.RichText.Mention to add.
Returns
- PostBuilder
-
A reference to this instance after the add operation has completed.
Exceptions
- ArgumentNullException
-
Thrown when
mentionis null.
Add(PostBuilder, Mention)
Adds a idunno.Bluesky.RichText.Mention to the text and and facet features to the specified postBuilder.
public static PostBuilder Add(PostBuilder postBuilder, Mention mention)Parameters
postBuilderPostBuilder-
The idunno.Bluesky.PostBuilder to add the mention to.
mentionMention-
The idunno.Bluesky.RichText.Mention to add.
Returns
- PostBuilder
-
A reference to this instance after the add operation has completed.
Exceptions
- ArgumentNullException
-
Thrown when
postBuilderormentionis null.
Add(HashTag)
Adds a idunno.Bluesky.RichText.HashTag to the text and facet features to this instance.
public PostBuilder Add(HashTag hashTag)Parameters
hashTagHashTag-
The idunno.Bluesky.RichText.HashTag to add.
Returns
- PostBuilder
-
A reference to this instance after the add operation has completed.
Exceptions
- ArgumentNullException
-
Thrown when
hashTagis null.
Add(PostBuilder, HashTag)
Adds a idunno.Bluesky.RichText.HashTag to the text and facet features to the specified postBuilder.
public static PostBuilder Add(PostBuilder postBuilder, HashTag hashTag)Parameters
postBuilderPostBuilder-
The idunno.Bluesky.PostBuilder to add the hash tag to.
hashTagHashTag-
The idunno.Bluesky.RichText.HashTag to add.
Returns
- PostBuilder
-
A reference to this instance after the add operation has completed.
Exceptions
- ArgumentNullException
-
Thrown when
postBuilderorhashTagis null.
Add(EmbeddedImage)
Adds a idunno.Bluesky.Embed.EmbeddedImage to this instance.
public PostBuilder Add(EmbeddedImage image)Parameters
imageEmbeddedImage-
The idunno.Bluesky.Embed.EmbeddedImage to add.
Returns
- PostBuilder
-
A reference to this instance after the add operation has completed.
Remarks
If the number of images in this instance are equal to idunno.Bluesky.PostBuilder.MaxImages, the image collection will be converted to a gallery entry
they have aspect ratios, and image added to the gallery. If the conversion is not possible, an exception will be thrown.
Exceptions
- ArgumentNullException
-
Thrown when
imageis null. - ArgumentOutOfRangeException
-
Thrown when the number of images in this instance is already equal to idunno.Bluesky.PostBuilder.MaxImages.
- ArgumentException
-
Thrown when attempting to convert an image without an aspect ratio to a gallery entry.
- InvalidOperationException
-
Thrown when the existing images cannot be converted to a gallery due to missing aspect ratios.
Add(PostBuilder, EmbeddedImage)
Adds a idunno.Bluesky.Embed.EmbeddedImage to the specified postBuilder.
public static PostBuilder Add(PostBuilder postBuilder, EmbeddedImage image)Parameters
postBuilderPostBuilder-
The idunno.Bluesky.PostBuilder to add the image to.
imageEmbeddedImage-
The idunno.Bluesky.Embed.EmbeddedImage to add.
Returns
- PostBuilder
-
A reference to this instance after the add operation has completed.
Remarks
If the number of images in this instance are equal to idunno.Bluesky.PostBuilder.MaxImages, the image collection will be converted to a gallery entry
they have aspect ratios, and image added to the gallery. If the conversion is not possible, an exception will be thrown.
Exceptions
- ArgumentNullException
-
Thrown when
postBuilderorimageis null. - ArgumentOutOfRangeException
-
Thrown when the number of images in this instance is already equal to idunno.Bluesky.PostBuilder.MaxImages.
Add(ICollection<EmbeddedImage>)
Adds a collection idunno.Bluesky.Embed.EmbeddedImages to this instance.
public PostBuilder Add(ICollection<EmbeddedImage> images)Parameters
imagesICollection<EmbeddedImage>-
The collection of idunno.Bluesky.Embed.EmbeddedImage to embed.
Returns
- PostBuilder
-
A reference to this instance after the append operation has completed.
Remarks
If the number of images in this instance are equal to idunno.Bluesky.PostBuilder.MaxImages, the image collection will be converted to a gallery entry
they have aspect ratios, and images added to the gallery. If the conversion is not possible, an exception will be thrown.
Exceptions
- ArgumentNullException
-
if
imagesis null. - ArgumentOutOfRangeException
-
Thrown when adding the images in this instance is will result in an image count >idunno.Bluesky.PostBuilder.MaxImages.
- InvalidOperationException
-
Thrown when the images cannot be converted to gallery entries due to missing AspectRatio, or the number of images in this instance coupled with the new images necessitates a conversion to a gallery and one or more existing images lack an AspectRatio.
Add(PostBuilder, ICollection<EmbeddedImage>)
Adds a collection of idunno.Bluesky.Embed.EmbeddedImages to the specified postBuilder.
public static PostBuilder Add(PostBuilder postBuilder, ICollection<EmbeddedImage> images)Parameters
postBuilderPostBuilder-
The idunno.Bluesky.PostBuilder to add the images to.
imagesICollection<EmbeddedImage>-
The collection of idunno.Bluesky.Embed.EmbeddedImages to add.
Returns
- PostBuilder
-
A reference to this instance after the add operation has completed.
Exceptions
- ArgumentNullException
-
Thrown when
postBuilderorimagesis null. - ArgumentOutOfRangeException
-
Thrown when adding the images in this instance is will result in an image count >idunno.Bluesky.PostBuilder.MaxImages.
Add(EmbeddedVideo)
Adds a idunno.Bluesky.Embed.EmbeddedVideo to this instance.
public PostBuilder Add(EmbeddedVideo video)Parameters
videoEmbeddedVideo-
The idunno.Bluesky.Embed.EmbeddedVideo to embed.
Returns
- PostBuilder
-
A reference to this instance after the append operation has completed.
Exceptions
- ArgumentNullException
-
Thrown when
videois null. - ArgumentOutOfRangeException
-
Thrown when the this instance already has images.
Add(PostBuilder, EmbeddedVideo)
Adds a idunno.Bluesky.Embed.EmbeddedVideo to the specified postBuilder.
public static PostBuilder Add(PostBuilder postBuilder, EmbeddedVideo video)Parameters
postBuilderPostBuilder-
The idunno.Bluesky.PostBuilder to add the video to.
videoEmbeddedVideo-
The idunno.Bluesky.Embed.EmbeddedVideo to embed.
Returns
- PostBuilder
-
The
postBuilder.
Exceptions
- ArgumentNullException
-
Thrown when
videois null. - ArgumentOutOfRangeException
-
Thrown when the
postBuilderalready has images.
Add(StrongReference)
Adds an embedded record pointing to the ATProto record specified by strongReference to this instance.
public PostBuilder Add(StrongReference strongReference)Parameters
strongReferenceStrongReference-
The idunno.AtProto.Repo.StrongReference to embed.
Returns
- PostBuilder
-
A reference to this instance after the append operation has completed.
Exceptions
- ArgumentNullException
-
Thrown when
strongReferenceis null. - InvalidOperationException
-
Thrown when this instance already has a quote post.
Add(PostBuilder, StrongReference)
Adds an embedded record pointing to the ATProto record specified by strongReference to the specified postBuilder.
public static PostBuilder Add(PostBuilder postBuilder, StrongReference strongReference)Parameters
postBuilderPostBuilder-
The idunno.Bluesky.PostBuilder to add the strong reference to.
strongReferenceStrongReference-
The idunno.AtProto.Repo.StrongReference to embed.
Returns
- PostBuilder
-
The
postBuilder.
Exceptions
- ArgumentNullException
-
Thrown when
postBuilderorstrongReferenceis null.
Add(SelfLabel)
Adds a idunno.AtProto.Labels.SelfLabel to this instance.
public PostBuilder Add(SelfLabel selfLabel)Parameters
selfLabelSelfLabel-
The idunno.AtProto.Labels.SelfLabel to add.
Returns
- PostBuilder
-
A reference to this instance after the append operation has completed.
Exceptions
- ArgumentNullException
-
Thrown when
selfLabelor the label's value is null.
Add(PostBuilder, SelfLabel)
Adds a idunno.AtProto.Labels.SelfLabel to this instance.
public static PostBuilder Add(PostBuilder postBuilder, SelfLabel selfLabel)Parameters
postBuilderPostBuilder-
The idunno.Bluesky.PostBuilder to add the label to.
selfLabelSelfLabel-
The idunno.AtProto.Labels.SelfLabel to add.
Returns
- PostBuilder
-
The
postBuilder.
Exceptions
- ArgumentNullException
-
Thrown when
postBuilder,selfLabel, or the label's value is null.
Add(GalleryImage)
Adds a idunno.Bluesky.Embed.Gallery.GalleryImage to this instance.
public PostBuilder Add(GalleryImage image)Parameters
imageGalleryImage-
The idunno.Bluesky.Embed.Gallery.GalleryImage to add.
Returns
- PostBuilder
-
A reference to this instance after the append operation has completed.
Exceptions
- ArgumentOutOfRangeException
-
Thrown when the maximum number of gallery items is exceeded.
- ArgumentNullException
-
Thrown when
imageis null. - InvalidOperationException
-
Thrown when a video is already present or there are existing images.
Add(ICollection<GalleryImage>)
Adds a collection of idunno.Bluesky.Embed.Gallery.GalleryImages to this instance.
public PostBuilder Add(ICollection<GalleryImage> images)Parameters
imagesICollection<GalleryImage>-
The collection of idunno.Bluesky.Embed.Gallery.GalleryImages to add.
Returns
- PostBuilder
-
A reference to this instance after the append operation has completed.
Exceptions
- InvalidOperationException
-
Thrown when a video is already present or there are existing images.
- ArgumentOutOfRangeException
-
Thrown when the maximum number of gallery items is exceeded.
- ArgumentNullException
-
Thrown when
imagesis null.
Add(PostBuilder, GalleryImage)
Adds a idunno.Bluesky.Embed.Gallery.GalleryImage to the specified postBuilder.
public static PostBuilder Add(PostBuilder postBuilder, GalleryImage image)Parameters
postBuilderPostBuilder-
The idunno.Bluesky.PostBuilder to add the image to.
imageGalleryImage-
The idunno.Bluesky.Embed.Gallery.GalleryImage to add.
Returns
- PostBuilder
-
The
postBuilderafter the append operation has completed.
Exceptions
- ArgumentOutOfRangeException
-
Thrown when the maximum number of gallery items is exceeded or a video is already present.
- ArgumentNullException
-
Thrown when
postBuilderorimageis null.
Add(PostBuilder, ICollection<GalleryImage>)
Adds a collection of idunno.Bluesky.Embed.Gallery.GalleryImages to the specified postBuilder.
public static PostBuilder Add(PostBuilder postBuilder, ICollection<GalleryImage> galleryImages)Parameters
postBuilderPostBuilder-
The idunno.Bluesky.PostBuilder to add the images to.
galleryImagesICollection<GalleryImage>-
The collection of idunno.Bluesky.Embed.Gallery.GalleryImages to add.
Returns
- PostBuilder
-
A reference to this instance after the add operation has completed.
Exceptions
- ArgumentNullException
-
Thrown when
postBuilderorgalleryImagesis null. - ArgumentOutOfRangeException
-
Thrown when adding the images in this instance is will result in an image count >idunno.Bluesky.PostBuilder.MaxImages.
Add(string)
Adds a copy of the specified string to the record text of this instance.
public PostBuilder Add(string s)Parameters
sstring-
The string to append
Returns
- PostBuilder
-
A reference to this instance after the append operation has completed.
Exceptions
- ArgumentNullException
-
Thrown when
sis null.
Add(PostBuilder, string)
Adds a copy of the specified string to the record text to the specified postBuilder.
public static PostBuilder Add(PostBuilder postBuilder, string s)Parameters
postBuilderPostBuilder-
The idunno.Bluesky.PostBuilder to add the string to.
sstring-
The string to append
Returns
- PostBuilder
-
A reference to this instance after the append operation has completed.
Exceptions
- ArgumentNullException
-
Thrown when
postBuilderis null.
Add(char)
Adds a copy of the specified character to the post text of this instance.
public PostBuilder Add(char c)Parameters
cchar-
The character to append
Returns
- PostBuilder
-
A reference to this instance after the append operation has completed.
Add(PostBuilder, char)
Adds a the specified character to the post text of the specified postBuilder.
public static PostBuilder Add(PostBuilder postBuilder, char c)Parameters
postBuilderPostBuilder-
The idunno.Bluesky.PostBuilder to add the character to.
cchar-
The character to append
Returns
- PostBuilder
-
A reference to this instance after the append operation has completed.
Exceptions
- ArgumentNullException
-
Thrown when
postBuilderis null.
Add(char, int)
Adds the specified character, repeated by the specified count, to the post text of this instance.
public PostBuilder Add(char c, int repeatCount)Parameters
Returns
- PostBuilder
-
A reference to this instance after the append operation has completed.
Add(PostBuilder, char, int)
Adds a copy of the specified character to the record text to the specified postBuilder.
public static PostBuilder Add(PostBuilder postBuilder, char c, int repeatCount)Parameters
postBuilderPostBuilder-
The idunno.Bluesky.PostBuilder to add the string to.
cchar-
The character to append
repeatCountint-
The number of times to repeat the
c.
Returns
- PostBuilder
-
A reference to this instance after the append operation has completed.
Exceptions
- ArgumentNullException
-
Thrown when
postBuilderis null.
Add(Link)
Adds a idunno.Bluesky.RichText.Link to the text and facet features of this instance.
public PostBuilder Add(Link link)Parameters
linkLink-
The idunno.Bluesky.RichText.Link to add.
Returns
- PostBuilder
-
A reference to this instance after the add operation has completed.
Exceptions
- ArgumentNullException
-
Thrown when
linkis null.
Add(PostBuilder, Link)
Adds a idunno.Bluesky.RichText.Link to the text and facet features of the specified postBuilder.
public static PostBuilder Add(PostBuilder postBuilder, Link link)Parameters
postBuilderPostBuilder-
The idunno.Bluesky.PostBuilder to add the link to.
linkLink-
The idunno.Bluesky.RichText.Link to add.
Returns
- PostBuilder
-
A reference to this instance after the add operation has completed.
Exceptions
- ArgumentNullException
-
Thrown when
postBuilderorlinkis null.
Add(Mention)
Adds a idunno.Bluesky.RichText.Mention to the text and and facet features to this instance.
public PostBuilder Add(Mention mention)Parameters
mentionMention-
The idunno.Bluesky.RichText.Mention to add.
Returns
- PostBuilder
-
A reference to this instance after the add operation has completed.
Exceptions
- ArgumentNullException
-
Thrown when
mentionis null.
Add(PostBuilder, Mention)
Adds a idunno.Bluesky.RichText.Mention to the text and and facet features to the specified postBuilder.
public static PostBuilder Add(PostBuilder postBuilder, Mention mention)Parameters
postBuilderPostBuilder-
The idunno.Bluesky.PostBuilder to add the mention to.
mentionMention-
The idunno.Bluesky.RichText.Mention to add.
Returns
- PostBuilder
-
A reference to this instance after the add operation has completed.
Exceptions
- ArgumentNullException
-
Thrown when
postBuilderormentionis null.
Add(HashTag)
Adds a idunno.Bluesky.RichText.HashTag to the text and facet features to this instance.
public PostBuilder Add(HashTag hashTag)Parameters
hashTagHashTag-
The idunno.Bluesky.RichText.HashTag to add.
Returns
- PostBuilder
-
A reference to this instance after the add operation has completed.
Exceptions
- ArgumentNullException
-
Thrown when
hashTagis null.
Add(PostBuilder, HashTag)
Adds a idunno.Bluesky.RichText.HashTag to the text and facet features to the specified postBuilder.
public static PostBuilder Add(PostBuilder postBuilder, HashTag hashTag)Parameters
postBuilderPostBuilder-
The idunno.Bluesky.PostBuilder to add the hash tag to.
hashTagHashTag-
The idunno.Bluesky.RichText.HashTag to add.
Returns
- PostBuilder
-
A reference to this instance after the add operation has completed.
Exceptions
- ArgumentNullException
-
Thrown when
postBuilderorhashTagis null.
Add(EmbeddedImage)
Adds a idunno.Bluesky.Embed.EmbeddedImage to this instance.
public PostBuilder Add(EmbeddedImage image)Parameters
imageEmbeddedImage-
The idunno.Bluesky.Embed.EmbeddedImage to add.
Returns
- PostBuilder
-
A reference to this instance after the add operation has completed.
Remarks
If the number of images in this instance are equal to idunno.Bluesky.PostBuilder.MaxImages, the image collection will be converted to a gallery entry
they have aspect ratios, and image added to the gallery. If the conversion is not possible, an exception will be thrown.
Exceptions
- ArgumentNullException
-
Thrown when
imageis null. - ArgumentOutOfRangeException
-
Thrown when the number of images in this instance is already equal to idunno.Bluesky.PostBuilder.MaxImages.
- ArgumentException
-
Thrown when attempting to convert an image without an aspect ratio to a gallery entry.
- InvalidOperationException
-
Thrown when the existing images cannot be converted to a gallery due to missing aspect ratios.
Add(PostBuilder, EmbeddedImage)
Adds a idunno.Bluesky.Embed.EmbeddedImage to the specified postBuilder.
public static PostBuilder Add(PostBuilder postBuilder, EmbeddedImage image)Parameters
postBuilderPostBuilder-
The idunno.Bluesky.PostBuilder to add the image to.
imageEmbeddedImage-
The idunno.Bluesky.Embed.EmbeddedImage to add.
Returns
- PostBuilder
-
A reference to this instance after the add operation has completed.
Remarks
If the number of images in this instance are equal to idunno.Bluesky.PostBuilder.MaxImages, the image collection will be converted to a gallery entry
they have aspect ratios, and image added to the gallery. If the conversion is not possible, an exception will be thrown.
Exceptions
- ArgumentNullException
-
Thrown when
postBuilderorimageis null. - ArgumentOutOfRangeException
-
Thrown when the number of images in this instance is already equal to idunno.Bluesky.PostBuilder.MaxImages.
Add(ICollection<EmbeddedImage>)
Adds a collection idunno.Bluesky.Embed.EmbeddedImages to this instance.
public PostBuilder Add(ICollection<EmbeddedImage> images)Parameters
imagesICollection<EmbeddedImage>-
The collection of idunno.Bluesky.Embed.EmbeddedImage to embed.
Returns
- PostBuilder
-
A reference to this instance after the append operation has completed.
Remarks
If the number of images in this instance are equal to idunno.Bluesky.PostBuilder.MaxImages, the image collection will be converted to a gallery entry
they have aspect ratios, and images added to the gallery. If the conversion is not possible, an exception will be thrown.
Exceptions
- ArgumentNullException
-
if
imagesis null. - ArgumentOutOfRangeException
-
Thrown when adding the images in this instance is will result in an image count >idunno.Bluesky.PostBuilder.MaxImages.
- InvalidOperationException
-
Thrown when the images cannot be converted to gallery entries due to missing AspectRatio, or the number of images in this instance coupled with the new images necessitates a conversion to a gallery and one or more existing images lack an AspectRatio.
Add(PostBuilder, ICollection<EmbeddedImage>)
Adds a collection of idunno.Bluesky.Embed.EmbeddedImages to the specified postBuilder.
public static PostBuilder Add(PostBuilder postBuilder, ICollection<EmbeddedImage> images)Parameters
postBuilderPostBuilder-
The idunno.Bluesky.PostBuilder to add the images to.
imagesICollection<EmbeddedImage>-
The collection of idunno.Bluesky.Embed.EmbeddedImages to add.
Returns
- PostBuilder
-
A reference to this instance after the add operation has completed.
Exceptions
- ArgumentNullException
-
Thrown when
postBuilderorimagesis null. - ArgumentOutOfRangeException
-
Thrown when adding the images in this instance is will result in an image count >idunno.Bluesky.PostBuilder.MaxImages.
Add(EmbeddedVideo)
Adds a idunno.Bluesky.Embed.EmbeddedVideo to this instance.
public PostBuilder Add(EmbeddedVideo video)Parameters
videoEmbeddedVideo-
The idunno.Bluesky.Embed.EmbeddedVideo to embed.
Returns
- PostBuilder
-
A reference to this instance after the append operation has completed.
Exceptions
- ArgumentNullException
-
Thrown when
videois null. - ArgumentOutOfRangeException
-
Thrown when the this instance already has images.
Add(PostBuilder, EmbeddedVideo)
Adds a idunno.Bluesky.Embed.EmbeddedVideo to the specified postBuilder.
public static PostBuilder Add(PostBuilder postBuilder, EmbeddedVideo video)Parameters
postBuilderPostBuilder-
The idunno.Bluesky.PostBuilder to add the video to.
videoEmbeddedVideo-
The idunno.Bluesky.Embed.EmbeddedVideo to embed.
Returns
- PostBuilder
-
The
postBuilder.
Exceptions
- ArgumentNullException
-
Thrown when
videois null. - ArgumentOutOfRangeException
-
Thrown when the
postBuilderalready has images.
Add(StrongReference)
Adds an embedded record pointing to the ATProto record specified by strongReference to this instance.
public PostBuilder Add(StrongReference strongReference)Parameters
strongReferenceStrongReference-
The idunno.AtProto.Repo.StrongReference to embed.
Returns
- PostBuilder
-
A reference to this instance after the append operation has completed.
Exceptions
- ArgumentNullException
-
Thrown when
strongReferenceis null. - InvalidOperationException
-
Thrown when this instance already has a quote post.
Add(PostBuilder, StrongReference)
Adds an embedded record pointing to the ATProto record specified by strongReference to the specified postBuilder.
public static PostBuilder Add(PostBuilder postBuilder, StrongReference strongReference)Parameters
postBuilderPostBuilder-
The idunno.Bluesky.PostBuilder to add the strong reference to.
strongReferenceStrongReference-
The idunno.AtProto.Repo.StrongReference to embed.
Returns
- PostBuilder
-
The
postBuilder.
Exceptions
- ArgumentNullException
-
Thrown when
postBuilderorstrongReferenceis null.
Add(SelfLabel)
Adds a idunno.AtProto.Labels.SelfLabel to this instance.
public PostBuilder Add(SelfLabel selfLabel)Parameters
selfLabelSelfLabel-
The idunno.AtProto.Labels.SelfLabel to add.
Returns
- PostBuilder
-
A reference to this instance after the append operation has completed.
Exceptions
- ArgumentNullException
-
Thrown when
selfLabelor the label's value is null.
Add(PostBuilder, SelfLabel)
Adds a idunno.AtProto.Labels.SelfLabel to this instance.
public static PostBuilder Add(PostBuilder postBuilder, SelfLabel selfLabel)Parameters
postBuilderPostBuilder-
The idunno.Bluesky.PostBuilder to add the label to.
selfLabelSelfLabel-
The idunno.AtProto.Labels.SelfLabel to add.
Returns
- PostBuilder
-
The
postBuilder.
Exceptions
- ArgumentNullException
-
Thrown when
postBuilder,selfLabel, or the label's value is null.
Add(GalleryImage)
Adds a idunno.Bluesky.Embed.Gallery.GalleryImage to this instance.
public PostBuilder Add(GalleryImage image)Parameters
imageGalleryImage-
The idunno.Bluesky.Embed.Gallery.GalleryImage to add.
Returns
- PostBuilder
-
A reference to this instance after the append operation has completed.
Exceptions
- ArgumentOutOfRangeException
-
Thrown when the maximum number of gallery items is exceeded.
- ArgumentNullException
-
Thrown when
imageis null. - InvalidOperationException
-
Thrown when a video is already present or there are existing images.
Add(ICollection<GalleryImage>)
Adds a collection of idunno.Bluesky.Embed.Gallery.GalleryImages to this instance.
public PostBuilder Add(ICollection<GalleryImage> images)Parameters
imagesICollection<GalleryImage>-
The collection of idunno.Bluesky.Embed.Gallery.GalleryImages to add.
Returns
- PostBuilder
-
A reference to this instance after the append operation has completed.
Exceptions
- InvalidOperationException
-
Thrown when a video is already present or there are existing images.
- ArgumentOutOfRangeException
-
Thrown when the maximum number of gallery items is exceeded.
- ArgumentNullException
-
Thrown when
imagesis null.
Add(PostBuilder, GalleryImage)
Adds a idunno.Bluesky.Embed.Gallery.GalleryImage to the specified postBuilder.
public static PostBuilder Add(PostBuilder postBuilder, GalleryImage image)Parameters
postBuilderPostBuilder-
The idunno.Bluesky.PostBuilder to add the image to.
imageGalleryImage-
The idunno.Bluesky.Embed.Gallery.GalleryImage to add.
Returns
- PostBuilder
-
The
postBuilderafter the append operation has completed.
Exceptions
- ArgumentOutOfRangeException
-
Thrown when the maximum number of gallery items is exceeded or a video is already present.
- ArgumentNullException
-
Thrown when
postBuilderorimageis null.
Add(PostBuilder, ICollection<GalleryImage>)
Adds a collection of idunno.Bluesky.Embed.Gallery.GalleryImages to the specified postBuilder.
public static PostBuilder Add(PostBuilder postBuilder, ICollection<GalleryImage> galleryImages)Parameters
postBuilderPostBuilder-
The idunno.Bluesky.PostBuilder to add the images to.
galleryImagesICollection<GalleryImage>-
The collection of idunno.Bluesky.Embed.Gallery.GalleryImages to add.
Returns
- PostBuilder
-
A reference to this instance after the add operation has completed.
Exceptions
- ArgumentNullException
-
Thrown when
postBuilderorgalleryImagesis null. - ArgumentOutOfRangeException
-
Thrown when adding the images in this instance is will result in an image count >idunno.Bluesky.PostBuilder.MaxImages.
Append(char)
Appends a copy of the specified character to the record text of this instance.
public PostBuilder Append(char value)Parameters
valuechar-
The string to append
Returns
- PostBuilder
-
A reference to this instance after the append operation has completed.
Exceptions
- ArgumentOutOfRangeException
-
Thrown when enlarging the the record text of this instance would exceed idunno.Bluesky.PostBuilder.MaxCapacity or idunno.Bluesky.PostBuilder.MaxCapacityGraphemes.
Append(char, int)
Appends a specified number of copies of the string representation of a Unicode character to this instance.
public PostBuilder Append(char value, int repeatCount)Parameters
Returns
- PostBuilder
-
A reference to this instance after the append operation has completed.
Exceptions
- ArgumentOutOfRangeException
-
Thrown when
repeatCountis <=0.
Append(HashTag)
Appends a idunno.Bluesky.RichText.HashTag to the text and facet features of this instance.
public PostBuilder Append(HashTag hashTag)Parameters
hashTagHashTag-
The idunno.Bluesky.RichText.HashTag to append.
Returns
- PostBuilder
-
A reference to this instance after the append operation has completed.
Exceptions
- ArgumentNullException
-
Thrown when
hashTagis null. - ArgumentException
-
Thrown when
hashTag's text is null or whitespace.
Append(Link)
Appends a idunno.Bluesky.RichText.Link to the text and facet features of this instance.
public PostBuilder Append(Link link)Parameters
linkLink-
The idunno.Bluesky.RichText.Link to append.
Returns
- PostBuilder
-
A reference to this instance after the append operation has completed.
Exceptions
- ArgumentNullException
- ArgumentException
-
Thrown when
link's is null or whitespace.
Append(Mention)
Appends a idunno.Bluesky.RichText.Mention to the text and and facet features of this instance.
public PostBuilder Append(Mention mention)Parameters
mentionMention-
The idunno.Bluesky.RichText.Mention to append.
Returns
- PostBuilder
-
A reference to this instance after the append operation has completed.
Exceptions
- ArgumentNullException
-
Thrown when
mentionis null. - ArgumentException
-
Thrown when
mention's text is null or white space.
Append(string?)
Appends a copy of the specified string to the record text of this instance.
public PostBuilder Append(string? value)Parameters
valuestring?-
The string to append
Returns
- PostBuilder
-
A reference to this instance after the append operation has completed.
Exceptions
- ArgumentOutOfRangeException
-
Thrown when enlarging the the record text of this instance would exceed idunno.Bluesky.PostBuilder.MaxCapacity or idunno.Bluesky.PostBuilder.MaxCapacityGraphemes.
Append(char)
Appends a copy of the specified character to the record text of this instance.
public PostBuilder Append(char value)Parameters
valuechar-
The string to append
Returns
- PostBuilder
-
A reference to this instance after the append operation has completed.
Exceptions
- ArgumentOutOfRangeException
-
Thrown when enlarging the the record text of this instance would exceed idunno.Bluesky.PostBuilder.MaxCapacity or idunno.Bluesky.PostBuilder.MaxCapacityGraphemes.
Append(char, int)
Appends a specified number of copies of the string representation of a Unicode character to this instance.
public PostBuilder Append(char value, int repeatCount)Parameters
Returns
- PostBuilder
-
A reference to this instance after the append operation has completed.
Exceptions
- ArgumentOutOfRangeException
-
Thrown when
repeatCountis <=0.
Append(HashTag)
Appends a idunno.Bluesky.RichText.HashTag to the text and facet features of this instance.
public PostBuilder Append(HashTag hashTag)Parameters
hashTagHashTag-
The idunno.Bluesky.RichText.HashTag to append.
Returns
- PostBuilder
-
A reference to this instance after the append operation has completed.
Exceptions
- ArgumentNullException
-
Thrown when
hashTagis null. - ArgumentException
-
Thrown when
hashTag's text is null or whitespace.
Append(Link)
Appends a idunno.Bluesky.RichText.Link to the text and facet features of this instance.
public PostBuilder Append(Link link)Parameters
linkLink-
The idunno.Bluesky.RichText.Link to append.
Returns
- PostBuilder
-
A reference to this instance after the append operation has completed.
Exceptions
- ArgumentNullException
- ArgumentException
-
Thrown when
link's is null or whitespace.
Append(Mention)
Appends a idunno.Bluesky.RichText.Mention to the text and and facet features of this instance.
public PostBuilder Append(Mention mention)Parameters
mentionMention-
The idunno.Bluesky.RichText.Mention to append.
Returns
- PostBuilder
-
A reference to this instance after the append operation has completed.
Exceptions
- ArgumentNullException
-
Thrown when
mentionis null. - ArgumentException
-
Thrown when
mention's text is null or white space.
Append(string?)
Appends a copy of the specified string to the record text of this instance.
public PostBuilder Append(string? value)Parameters
valuestring?-
The string to append
Returns
- PostBuilder
-
A reference to this instance after the append operation has completed.
Exceptions
- ArgumentOutOfRangeException
-
Thrown when enlarging the the record text of this instance would exceed idunno.Bluesky.PostBuilder.MaxCapacity or idunno.Bluesky.PostBuilder.MaxCapacityGraphemes.
Append(char)
Appends a copy of the specified character to the record text of this instance.
public PostBuilder Append(char value)Parameters
valuechar-
The string to append
Returns
- PostBuilder
-
A reference to this instance after the append operation has completed.
Exceptions
- ArgumentOutOfRangeException
-
Thrown when enlarging the the record text of this instance would exceed idunno.Bluesky.PostBuilder.MaxCapacity or idunno.Bluesky.PostBuilder.MaxCapacityGraphemes.
Append(char, int)
Appends a specified number of copies of the string representation of a Unicode character to this instance.
public PostBuilder Append(char value, int repeatCount)Parameters
Returns
- PostBuilder
-
A reference to this instance after the append operation has completed.
Exceptions
- ArgumentOutOfRangeException
-
Thrown when
repeatCountis <=0.
Append(HashTag)
Appends a idunno.Bluesky.RichText.HashTag to the text and facet features of this instance.
public PostBuilder Append(HashTag hashTag)Parameters
hashTagHashTag-
The idunno.Bluesky.RichText.HashTag to append.
Returns
- PostBuilder
-
A reference to this instance after the append operation has completed.
Exceptions
- ArgumentNullException
-
Thrown when
hashTagis null. - ArgumentException
-
Thrown when
hashTag's text is null or whitespace.
Append(Link)
Appends a idunno.Bluesky.RichText.Link to the text and facet features of this instance.
public PostBuilder Append(Link link)Parameters
linkLink-
The idunno.Bluesky.RichText.Link to append.
Returns
- PostBuilder
-
A reference to this instance after the append operation has completed.
Exceptions
- ArgumentNullException
- ArgumentException
-
Thrown when
link's is null or whitespace.
Append(Mention)
Appends a idunno.Bluesky.RichText.Mention to the text and and facet features of this instance.
public PostBuilder Append(Mention mention)Parameters
mentionMention-
The idunno.Bluesky.RichText.Mention to append.
Returns
- PostBuilder
-
A reference to this instance after the append operation has completed.
Exceptions
- ArgumentNullException
-
Thrown when
mentionis null. - ArgumentException
-
Thrown when
mention's text is null or white space.
Append(string?)
Appends a copy of the specified string to the record text of this instance.
public PostBuilder Append(string? value)Parameters
valuestring?-
The string to append
Returns
- PostBuilder
-
A reference to this instance after the append operation has completed.
Exceptions
- ArgumentOutOfRangeException
-
Thrown when enlarging the the record text of this instance would exceed idunno.Bluesky.PostBuilder.MaxCapacity or idunno.Bluesky.PostBuilder.MaxCapacityGraphemes.
ApplyInteractionPreferences(PostInteractionSettingsPreferences)
Applies the user's interaction preferences to this instance.
public void ApplyInteractionPreferences(PostInteractionSettingsPreferences interactionPreferences)Parameters
interactionPreferencesPostInteractionSettingsPreferences-
The user's interaction preferences.
Exceptions
- ArgumentNullException
-
Thrown when
interactionPreferencesis null.
ApplyInteractionPreferences(PostInteractionSettingsPreferences)
Applies the user's interaction preferences to this instance.
public void ApplyInteractionPreferences(PostInteractionSettingsPreferences interactionPreferences)Parameters
interactionPreferencesPostInteractionSettingsPreferences-
The user's interaction preferences.
Exceptions
- ArgumentNullException
-
Thrown when
interactionPreferencesis null.
ApplyInteractionPreferences(PostInteractionSettingsPreferences)
Applies the user's interaction preferences to this instance.
public void ApplyInteractionPreferences(PostInteractionSettingsPreferences interactionPreferences)Parameters
interactionPreferencesPostInteractionSettingsPreferences-
The user's interaction preferences.
Exceptions
- ArgumentNullException
-
Thrown when
interactionPreferencesis null.
ContainsGraphicMedia()
Marks a media containing post, as containing graphic content.
public PostBuilder ContainsGraphicMedia()Returns
- PostBuilder
-
This instance of idunno.Bluesky.PostBuilder.
ContainsGraphicMedia()
Marks a media containing post, as containing graphic content.
public PostBuilder ContainsGraphicMedia()Returns
- PostBuilder
-
This instance of idunno.Bluesky.PostBuilder.
ContainsGraphicMedia()
Marks a media containing post, as containing graphic content.
public PostBuilder ContainsGraphicMedia()Returns
- PostBuilder
-
This instance of idunno.Bluesky.PostBuilder.
ContainsNudity()
Marks a media containing post as containing nudity.
public PostBuilder ContainsNudity()Returns
- PostBuilder
-
This instance of idunno.Bluesky.PostBuilder.
ContainsNudity()
Marks a media containing post as containing nudity.
public PostBuilder ContainsNudity()Returns
- PostBuilder
-
This instance of idunno.Bluesky.PostBuilder.
ContainsNudity()
Marks a media containing post as containing nudity.
public PostBuilder ContainsNudity()Returns
- PostBuilder
-
This instance of idunno.Bluesky.PostBuilder.
ContainsPorn()
Marks a media containing post as containing porn.
public PostBuilder ContainsPorn()Returns
- PostBuilder
-
This instance of idunno.Bluesky.PostBuilder.
ContainsPorn()
Marks a media containing post as containing porn.
public PostBuilder ContainsPorn()Returns
- PostBuilder
-
This instance of idunno.Bluesky.PostBuilder.
ContainsPorn()
Marks a media containing post as containing porn.
public PostBuilder ContainsPorn()Returns
- PostBuilder
-
This instance of idunno.Bluesky.PostBuilder.
ContainsSexualContent()
Marks a media containing post as containing sexual content.
public PostBuilder ContainsSexualContent()Returns
- PostBuilder
-
This instance of idunno.Bluesky.PostBuilder.
ContainsSexualContent()
Marks a media containing post as containing sexual content.
public PostBuilder ContainsSexualContent()Returns
- PostBuilder
-
This instance of idunno.Bluesky.PostBuilder.
ContainsSexualContent()
Marks a media containing post as containing sexual content.
public PostBuilder ContainsSexualContent()Returns
- PostBuilder
-
This instance of idunno.Bluesky.PostBuilder.
Create()
Creates a new idunno.Bluesky.PostBuilder.
public static PostBuilder Create()Returns
- PostBuilder
-
A new instance of idunno.Bluesky.PostBuilder.
Create(DateTimeOffset)
Creates a new idunno.Bluesky.PostBuilder.
public static PostBuilder Create(DateTimeOffset createdAt)Parameters
createdAtDateTimeOffset-
The System.DateTimeOffset for the creation date and time of the post.
Returns
- PostBuilder
-
A new instance of idunno.Bluesky.PostBuilder.
Create(string, string)
Creates a new idunno.Bluesky.PostBuilder.
public static PostBuilder Create(string text, string lang)Parameters
Returns
- PostBuilder
-
A new instance of idunno.Bluesky.PostBuilder.
Create(string, string[])
Creates a new idunno.Bluesky.PostBuilder.
public static PostBuilder Create(string text, string[] langs)Parameters
textstring-
The text for the post.
langsstring[]-
The languages the post contains, as ISO language codes.
Returns
- PostBuilder
-
A new instance of idunno.Bluesky.PostBuilder.
Create()
Creates a new idunno.Bluesky.PostBuilder.
public static PostBuilder Create()Returns
- PostBuilder
-
A new instance of idunno.Bluesky.PostBuilder.
Create(DateTimeOffset)
Creates a new idunno.Bluesky.PostBuilder.
public static PostBuilder Create(DateTimeOffset createdAt)Parameters
createdAtDateTimeOffset-
The System.DateTimeOffset for the creation date and time of the post.
Returns
- PostBuilder
-
A new instance of idunno.Bluesky.PostBuilder.
Create(string, string)
Creates a new idunno.Bluesky.PostBuilder.
public static PostBuilder Create(string text, string lang)Parameters
Returns
- PostBuilder
-
A new instance of idunno.Bluesky.PostBuilder.
Create(string, string[])
Creates a new idunno.Bluesky.PostBuilder.
public static PostBuilder Create(string text, string[] langs)Parameters
textstring-
The text for the post.
langsstring[]-
The languages the post contains, as ISO language codes.
Returns
- PostBuilder
-
A new instance of idunno.Bluesky.PostBuilder.
Create()
Creates a new idunno.Bluesky.PostBuilder.
public static PostBuilder Create()Returns
- PostBuilder
-
A new instance of idunno.Bluesky.PostBuilder.
Create(DateTimeOffset)
Creates a new idunno.Bluesky.PostBuilder.
public static PostBuilder Create(DateTimeOffset createdAt)Parameters
createdAtDateTimeOffset-
The System.DateTimeOffset for the creation date and time of the post.
Returns
- PostBuilder
-
A new instance of idunno.Bluesky.PostBuilder.
Create(string, string)
Creates a new idunno.Bluesky.PostBuilder.
public static PostBuilder Create(string text, string lang)Parameters
Returns
- PostBuilder
-
A new instance of idunno.Bluesky.PostBuilder.
Create(string, string[])
Creates a new idunno.Bluesky.PostBuilder.
public static PostBuilder Create(string text, string[] langs)Parameters
textstring-
The text for the post.
langsstring[]-
The languages the post contains, as ISO language codes.
Returns
- PostBuilder
-
A new instance of idunno.Bluesky.PostBuilder.
EmbedRecord(EmbeddedBase)
Embeds the specified idunno.Bluesky.Embed.EmbeddedBase in the post.
public void EmbedRecord(EmbeddedBase embeddedRecord)Parameters
embeddedRecordEmbeddedBase-
The record to embed.
Exceptions
- ArgumentNullException
-
Thrown when
embeddedRecordis null.
EmbedRecord(EmbeddedBase)
Embeds the specified idunno.Bluesky.Embed.EmbeddedBase in the post.
public void EmbedRecord(EmbeddedBase embeddedRecord)Parameters
embeddedRecordEmbeddedBase-
The record to embed.
Exceptions
- ArgumentNullException
-
Thrown when
embeddedRecordis null.
EmbedRecord(EmbeddedBase)
Embeds the specified idunno.Bluesky.Embed.EmbeddedBase in the post.
public void EmbedRecord(EmbeddedBase embeddedRecord)Parameters
embeddedRecordEmbeddedBase-
The record to embed.
Exceptions
- ArgumentNullException
-
Thrown when
embeddedRecordis null.
Equals(PostBuilder?)
Determines whether two idunno.Bluesky.PostBuilder instances are equal.
public bool Equals(PostBuilder? other)Parameters
otherPostBuilder?-
The idunno.Bluesky.PostBuilder to compare with the current instance.
Returns
- bool
-
true if the specified idunno.Bluesky.PostBuilder is equal to the current instance; otherwise, false.
Remarks
Two builders are equal when they would produce equal posts. Collections are compared by their contents rather than by reference.
Each builder is snapshotted under its own lock and the snapshots are compared outside both, so a builder being mutated on another thread cannot make this throw. The two snapshots are not taken atomically with respect to each other, so the result describes the builders as they were, not as they are once this returns.
Equals(object?)
Determines whether two object instances are equal.
public override bool Equals(object? obj)Parameters
objobject?-
The object to compare with the current object.
Returns
Equals(PostBuilder?)
Determines whether two idunno.Bluesky.PostBuilder instances are equal.
public bool Equals(PostBuilder? other)Parameters
otherPostBuilder?-
The idunno.Bluesky.PostBuilder to compare with the current instance.
Returns
- bool
-
true if the specified idunno.Bluesky.PostBuilder is equal to the current instance; otherwise, false.
Remarks
Two builders are equal when they would produce equal posts. Collections are compared by their contents rather than by reference.
Each builder is snapshotted under its own lock and the snapshots are compared outside both, so a builder being mutated on another thread cannot make this throw. The two snapshots are not taken atomically with respect to each other, so the result describes the builders as they were, not as they are once this returns.
Equals(object?)
Determines whether two object instances are equal.
public override bool Equals(object? obj)Parameters
objobject?-
The object to compare with the current object.
Returns
Equals(PostBuilder?)
Determines whether two idunno.Bluesky.PostBuilder instances are equal.
public bool Equals(PostBuilder? other)Parameters
otherPostBuilder?-
The idunno.Bluesky.PostBuilder to compare with the current instance.
Returns
- bool
-
true if the specified idunno.Bluesky.PostBuilder is equal to the current instance; otherwise, false.
Remarks
Two builders are equal when they would produce equal posts. Collections are compared by their contents rather than by reference.
Each builder is snapshotted under its own lock and the snapshots are compared outside both, so a builder being mutated on another thread cannot make this throw. The two snapshots are not taken atomically with respect to each other, so the result describes the builders as they were, not as they are once this returns.
Equals(object?)
Determines whether two object instances are equal.
public override bool Equals(object? obj)Parameters
objobject?-
The object to compare with the current object.
Returns
ExtractFacets(IFacetExtractor, CancellationToken)
Extracts facets from the post text, if any.
public Task ExtractFacets(IFacetExtractor facetExtractor, CancellationToken cancellationToken)Parameters
facetExtractorIFacetExtractor-
The facet extractor to use
cancellationTokenCancellationToken-
A cancellation token that can be used by other objects or threads to receive notice of cancellation.
Returns
Remarks
If this instance of idunno.Bluesky.PostBuilder already has idunno.Bluesky.RichText.Facets extraction will not run.
Exceptions
- ArgumentNullException
-
Thrown when
facetExtractoris null.
ExtractFacets(IFacetExtractor, CancellationToken)
Extracts facets from the post text, if any.
public Task ExtractFacets(IFacetExtractor facetExtractor, CancellationToken cancellationToken)Parameters
facetExtractorIFacetExtractor-
The facet extractor to use
cancellationTokenCancellationToken-
A cancellation token that can be used by other objects or threads to receive notice of cancellation.
Returns
Remarks
If this instance of idunno.Bluesky.PostBuilder already has idunno.Bluesky.RichText.Facets extraction will not run.
Exceptions
- ArgumentNullException
-
Thrown when
facetExtractoris null.
ExtractFacets(IFacetExtractor, CancellationToken)
Extracts facets from the post text, if any.
public Task ExtractFacets(IFacetExtractor facetExtractor, CancellationToken cancellationToken)Parameters
facetExtractorIFacetExtractor-
The facet extractor to use
cancellationTokenCancellationToken-
A cancellation token that can be used by other objects or threads to receive notice of cancellation.
Returns
Remarks
If this instance of idunno.Bluesky.PostBuilder already has idunno.Bluesky.RichText.Facets extraction will not run.
Exceptions
- ArgumentNullException
-
Thrown when
facetExtractoris null.
GetHashCode()
Gets a hash code for the current object.
public override int GetHashCode()Returns
- int
-
A hash code for the current object.
Remarks
The hash code is derived from the builder's current contents, so it changes as the builder is mutated. Do not mutate a builder while it is being used as a key in a hashed collection.
GetHashCode()
Gets a hash code for the current object.
public override int GetHashCode()Returns
- int
-
A hash code for the current object.
Remarks
The hash code is derived from the builder's current contents, so it changes as the builder is mutated. Do not mutate a builder while it is being used as a key in a hashed collection.
GetHashCode()
Gets a hash code for the current object.
public override int GetHashCode()Returns
- int
-
A hash code for the current object.
Remarks
The hash code is derived from the builder's current contents, so it changes as the builder is mutated. Do not mutate a builder while it is being used as a key in a hashed collection.
IsValid()
Determines whether this instance of idunno.Bluesky.PostBuilder is valid and can be converted to a idunno.Bluesky.Post.
public bool IsValid()Returns
IsValid()
Determines whether this instance of idunno.Bluesky.PostBuilder is valid and can be converted to a idunno.Bluesky.Post.
public bool IsValid()Returns
IsValid()
Determines whether this instance of idunno.Bluesky.PostBuilder is valid and can be converted to a idunno.Bluesky.Post.
public bool IsValid()Returns
Label(PostSelfLabels)
Sets the self labels for the post to the values specified in labels.
public PostBuilder Label(PostSelfLabels labels)Parameters
labelsPostSelfLabels-
The self label values to set.
Returns
- PostBuilder
-
This instance of idunno.Bluesky.PostBuilder.
Exceptions
- ArgumentNullException
-
Thrown when
labelsis null.
Label(PostSelfLabels)
Sets the self labels for the post to the values specified in labels.
public PostBuilder Label(PostSelfLabels labels)Parameters
labelsPostSelfLabels-
The self label values to set.
Returns
- PostBuilder
-
This instance of idunno.Bluesky.PostBuilder.
Exceptions
- ArgumentNullException
-
Thrown when
labelsis null.
Label(PostSelfLabels)
Sets the self labels for the post to the values specified in labels.
public PostBuilder Label(PostSelfLabels labels)Parameters
labelsPostSelfLabels-
The self label values to set.
Returns
- PostBuilder
-
This instance of idunno.Bluesky.PostBuilder.
Exceptions
- ArgumentNullException
-
Thrown when
labelsis null.
Quote(StrongReference)
Quotes a record specified by strongReference and adds it to this instance.
public PostBuilder Quote(StrongReference strongReference)Parameters
strongReferenceStrongReference-
The idunno.AtProto.Repo.StrongReference to quote.
Returns
- PostBuilder
-
This instance of idunno.Bluesky.PostBuilder.
Exceptions
- ArgumentNullException
-
Thrown when
strongReferenceis null. - ArgumentException
-
Thrown when
strongReferencedoes not point to a valid Bluesky Post record.
Quote(PostBuilder, StrongReference)
Quotes a record specified by strongReference and adds it to the specified postBuilder.
public static PostBuilder Quote(PostBuilder postBuilder, StrongReference strongReference)Parameters
postBuilderPostBuilder-
The idunno.Bluesky.PostBuilder to add the quote to.
strongReferenceStrongReference-
The idunno.AtProto.Repo.StrongReference to quote.
Returns
- PostBuilder
-
The
postBuilder.
Exceptions
- ArgumentNullException
-
Thrown when
postBuilderorstrongReferenceis null. - ArgumentException
-
Thrown when
strongReferencedoes not point to a valid Bluesky Post record.
Quote(StrongReference)
Quotes a record specified by strongReference and adds it to this instance.
public PostBuilder Quote(StrongReference strongReference)Parameters
strongReferenceStrongReference-
The idunno.AtProto.Repo.StrongReference to quote.
Returns
- PostBuilder
-
This instance of idunno.Bluesky.PostBuilder.
Exceptions
- ArgumentNullException
-
Thrown when
strongReferenceis null. - ArgumentException
-
Thrown when
strongReferencedoes not point to a valid Bluesky Post record.
Quote(PostBuilder, StrongReference)
Quotes a record specified by strongReference and adds it to the specified postBuilder.
public static PostBuilder Quote(PostBuilder postBuilder, StrongReference strongReference)Parameters
postBuilderPostBuilder-
The idunno.Bluesky.PostBuilder to add the quote to.
strongReferenceStrongReference-
The idunno.AtProto.Repo.StrongReference to quote.
Returns
- PostBuilder
-
The
postBuilder.
Exceptions
- ArgumentNullException
-
Thrown when
postBuilderorstrongReferenceis null. - ArgumentException
-
Thrown when
strongReferencedoes not point to a valid Bluesky Post record.
Quote(StrongReference)
Quotes a record specified by strongReference and adds it to this instance.
public PostBuilder Quote(StrongReference strongReference)Parameters
strongReferenceStrongReference-
The idunno.AtProto.Repo.StrongReference to quote.
Returns
- PostBuilder
-
This instance of idunno.Bluesky.PostBuilder.
Exceptions
- ArgumentNullException
-
Thrown when
strongReferenceis null. - ArgumentException
-
Thrown when
strongReferencedoes not point to a valid Bluesky Post record.
Quote(PostBuilder, StrongReference)
Quotes a record specified by strongReference and adds it to the specified postBuilder.
public static PostBuilder Quote(PostBuilder postBuilder, StrongReference strongReference)Parameters
postBuilderPostBuilder-
The idunno.Bluesky.PostBuilder to add the quote to.
strongReferenceStrongReference-
The idunno.AtProto.Repo.StrongReference to quote.
Returns
- PostBuilder
-
The
postBuilder.
Exceptions
- ArgumentNullException
-
Thrown when
postBuilderorstrongReferenceis null. - ArgumentException
-
Thrown when
strongReferencedoes not point to a valid Bluesky Post record.
ReplyTo(ReplyReferences)
Sets the post to be a reply to the post specified by the replyReferences.
public PostBuilder ReplyTo(ReplyReferences replyReferences)Parameters
replyReferencesReplyReferences-
The idunno.Bluesky.ReplyReferences to set as the reply target.
Returns
- PostBuilder
-
A reference to this instance after the operation has completed.
Exceptions
- ArgumentNullException
-
Thrown when
replyReferencesis null.
ReplyTo(StrongReference, BlueskyAgent, CancellationToken)
Sets the post to be a reply to the post specified by the postReference.
public Task<PostBuilder> ReplyTo(StrongReference postReference, BlueskyAgent agent, CancellationToken cancellationToken = default)Parameters
postReferenceStrongReference-
The idunno.AtProto.Repo.StrongReference to set as the reply target.
agentBlueskyAgent-
The idunno.Bluesky.BlueskyAgent to use for retrieving reply references.
cancellationTokenCancellationToken-
A cancellation token that can be used by other objects or threads to receive notice of cancellation.
Returns
- Task<PostBuilder>
-
A reference to this instance after the operation has completed.
Exceptions
- ArgumentNullException
-
Thrown when
postReferenceoragentis null. - BlueskyException
-
Thrown when the reply references for
postReferencecould not be retrieved.
ReplyTo(ReplyReferences)
Sets the post to be a reply to the post specified by the replyReferences.
public PostBuilder ReplyTo(ReplyReferences replyReferences)Parameters
replyReferencesReplyReferences-
The idunno.Bluesky.ReplyReferences to set as the reply target.
Returns
- PostBuilder
-
A reference to this instance after the operation has completed.
Exceptions
- ArgumentNullException
-
Thrown when
replyReferencesis null.
ReplyTo(StrongReference, BlueskyAgent, CancellationToken)
Sets the post to be a reply to the post specified by the postReference.
public Task<PostBuilder> ReplyTo(StrongReference postReference, BlueskyAgent agent, CancellationToken cancellationToken = default)Parameters
postReferenceStrongReference-
The idunno.AtProto.Repo.StrongReference to set as the reply target.
agentBlueskyAgent-
The idunno.Bluesky.BlueskyAgent to use for retrieving reply references.
cancellationTokenCancellationToken-
A cancellation token that can be used by other objects or threads to receive notice of cancellation.
Returns
- Task<PostBuilder>
-
A reference to this instance after the operation has completed.
Exceptions
- ArgumentNullException
-
Thrown when
postReferenceoragentis null. - BlueskyException
-
Thrown when the reply references for
postReferencecould not be retrieved.
ReplyTo(ReplyReferences)
Sets the post to be a reply to the post specified by the replyReferences.
public PostBuilder ReplyTo(ReplyReferences replyReferences)Parameters
replyReferencesReplyReferences-
The idunno.Bluesky.ReplyReferences to set as the reply target.
Returns
- PostBuilder
-
A reference to this instance after the operation has completed.
Exceptions
- ArgumentNullException
-
Thrown when
replyReferencesis null.
ReplyTo(StrongReference, BlueskyAgent, CancellationToken)
Sets the post to be a reply to the post specified by the postReference.
public Task<PostBuilder> ReplyTo(StrongReference postReference, BlueskyAgent agent, CancellationToken cancellationToken = default)Parameters
postReferenceStrongReference-
The idunno.AtProto.Repo.StrongReference to set as the reply target.
agentBlueskyAgent-
The idunno.Bluesky.BlueskyAgent to use for retrieving reply references.
cancellationTokenCancellationToken-
A cancellation token that can be used by other objects or threads to receive notice of cancellation.
Returns
- Task<PostBuilder>
-
A reference to this instance after the operation has completed.
Exceptions
- ArgumentNullException
-
Thrown when
postReferenceoragentis null. - BlueskyException
-
Thrown when the reply references for
postReferencecould not be retrieved.
SetSelfLabels(PostSelfLabels)
Sets the self labels for the post to the values specified in labels.
public PostBuilder SetSelfLabels(PostSelfLabels labels)Parameters
labelsPostSelfLabels-
The self label values to set.
Returns
- PostBuilder
-
This instance of idunno.Bluesky.PostBuilder.
Exceptions
- ArgumentNullException
-
Thrown when
labelsis null.
SetSelfLabels(PostSelfLabels)
Sets the self labels for the post to the values specified in labels.
public PostBuilder SetSelfLabels(PostSelfLabels labels)Parameters
labelsPostSelfLabels-
The self label values to set.
Returns
- PostBuilder
-
This instance of idunno.Bluesky.PostBuilder.
Exceptions
- ArgumentNullException
-
Thrown when
labelsis null.
SetSelfLabels(PostSelfLabels)
Sets the self labels for the post to the values specified in labels.
public PostBuilder SetSelfLabels(PostSelfLabels labels)Parameters
labelsPostSelfLabels-
The self label values to set.
Returns
- PostBuilder
-
This instance of idunno.Bluesky.PostBuilder.
Exceptions
- ArgumentNullException
-
Thrown when
labelsis null.
ToPost()
Converts the value of this instance to a idunno.Bluesky.Post.
public Post ToPost()Returns
- Post
-
A idunno.Bluesky.Post whose value is the same as this instance.
Remarks
This instance is not modified, and the returned idunno.Bluesky.Post shares no mutable state with it.
Exceptions
- PostBuilderException
-
Thrown when idunno.Bluesky.PostBuilder.Text is null or empty and this instance has no images, embedded records or video, or this instance is both a reply and a quote, or this instance has both images and video.
ToPost()
Converts the value of this instance to a idunno.Bluesky.Post.
public Post ToPost()Returns
- Post
-
A idunno.Bluesky.Post whose value is the same as this instance.
Remarks
This instance is not modified, and the returned idunno.Bluesky.Post shares no mutable state with it.
Exceptions
- PostBuilderException
-
Thrown when idunno.Bluesky.PostBuilder.Text is null or empty and this instance has no images, embedded records or video, or this instance is both a reply and a quote, or this instance has both images and video.
ToPost()
Converts the value of this instance to a idunno.Bluesky.Post.
public Post ToPost()Returns
- Post
-
A idunno.Bluesky.Post whose value is the same as this instance.
Remarks
This instance is not modified, and the returned idunno.Bluesky.Post shares no mutable state with it.
Exceptions
- PostBuilderException
-
Thrown when idunno.Bluesky.PostBuilder.Text is null or empty and this instance has no images, embedded records or video, or this instance is both a reply and a quote, or this instance has both images and video.
ValidationErrors()
Returns a list of validation errors, if any, for this instance of idunno.Bluesky.PostBuilder.
public IEnumerable<string> ValidationErrors()Returns
- IEnumerable<string>
-
An enumeration of validation errors, if any.
Remarks
The builder is snapshotted once under its lock and the rules are applied to that snapshot, so the errors describe a state the builder actually had. The errors are produced before this returns, so they describe the builder as it was when this was called, not as it is when the result is enumerated.
ValidationErrors()
Returns a list of validation errors, if any, for this instance of idunno.Bluesky.PostBuilder.
public IEnumerable<string> ValidationErrors()Returns
- IEnumerable<string>
-
An enumeration of validation errors, if any.
Remarks
The builder is snapshotted once under its lock and the rules are applied to that snapshot, so the errors describe a state the builder actually had. The errors are produced before this returns, so they describe the builder as it was when this was called, not as it is when the result is enumerated.
ValidationErrors()
Returns a list of validation errors, if any, for this instance of idunno.Bluesky.PostBuilder.
public IEnumerable<string> ValidationErrors()Returns
- IEnumerable<string>
-
An enumeration of validation errors, if any.
Remarks
The builder is snapshotted once under its lock and the rules are applied to that snapshot, so the errors describe a state the builder actually had. The errors are produced before this returns, so they describe the builder as it was when this was called, not as it is when the result is enumerated.
WithText(string)
Sets the post text for this instance
public PostBuilder WithText(string text)Parameters
textstring-
The text to set for the post.
Returns
- PostBuilder
-
A reference to this instance after the operation has completed.
Exceptions
- ArgumentException
-
Thrown when
textis null or empty. - ArgumentOutOfRangeException
-
Thrown when the text exceeds the maximum allowed length.
WithText(string)
Sets the post text for this instance
public PostBuilder WithText(string text)Parameters
textstring-
The text to set for the post.
Returns
- PostBuilder
-
A reference to this instance after the operation has completed.
Exceptions
- ArgumentException
-
Thrown when
textis null or empty. - ArgumentOutOfRangeException
-
Thrown when the text exceeds the maximum allowed length.
WithText(string)
Sets the post text for this instance
public PostBuilder WithText(string text)Parameters
textstring-
The text to set for the post.
Returns
- PostBuilder
-
A reference to this instance after the operation has completed.
Exceptions
- ArgumentException
-
Thrown when
textis null or empty. - ArgumentOutOfRangeException
-
Thrown when the text exceeds the maximum allowed length.
Operators
operator +(PostBuilder, string)
Adds a copy of the specified string to the record text of the specified postBuilder.
public static PostBuilder operator +(PostBuilder postBuilder, string s)Parameters
postBuilderPostBuilder-
The idunno.Bluesky.PostBuilder to add the string to.
sstring-
The string to append
Returns
- PostBuilder
-
The
postBuilder.
Exceptions
- ArgumentNullException
-
Thrown when
postBuilderis null.
operator +(PostBuilder, char)
Adds the specified character to the record text of the specified postBuilder.
public static PostBuilder operator +(PostBuilder postBuilder, char c)Parameters
postBuilderPostBuilder-
The idunno.Bluesky.PostBuilder to add the character to.
cchar-
The character to append
Returns
- PostBuilder
-
The
postBuilder.
Exceptions
- ArgumentNullException
-
Thrown when
postBuilderis null.
operator +(PostBuilder, Mention)
Adds a idunno.Bluesky.RichText.Mention to the text and facet features to the specified postBuilder.
public static PostBuilder operator +(PostBuilder postBuilder, Mention mention)Parameters
postBuilderPostBuilder-
The idunno.Bluesky.PostBuilder to add the mention to.
mentionMention-
The idunno.Bluesky.RichText.Mention to add.
Returns
- PostBuilder
-
The
postBuilder.
Exceptions
- ArgumentNullException
-
Thrown when
postBuilderormentionis null.
operator +(PostBuilder, HashTag)
Adds a idunno.Bluesky.RichText.HashTag to the text and facet features to the specified postBuilder.
public static PostBuilder operator +(PostBuilder postBuilder, HashTag hashTag)Parameters
postBuilderPostBuilder-
The idunno.Bluesky.PostBuilder to add the hash tag to.
hashTagHashTag-
The idunno.Bluesky.RichText.HashTag to add.
Returns
- PostBuilder
-
The
postBuilder.
Exceptions
- ArgumentNullException
-
Thrown when
postBuilderorhashTagis null.
operator +(PostBuilder, Link)
Adds a idunno.Bluesky.RichText.Link to the text and facet features to the specified postBuilder.
public static PostBuilder operator +(PostBuilder postBuilder, Link link)Parameters
postBuilderPostBuilder-
The idunno.Bluesky.PostBuilder to add the link tag to.
linkLink-
The idunno.Bluesky.RichText.Link to add.
Returns
- PostBuilder
-
The
postBuilder.
Exceptions
- ArgumentNullException
-
Thrown when
postBuilderorlinkis null.
operator +(PostBuilder, EmbeddedImage)
Adds an idunno.Bluesky.Embed.EmbeddedImage to the specified postBuilder.
public static PostBuilder operator +(PostBuilder postBuilder, EmbeddedImage image)Parameters
postBuilderPostBuilder-
The idunno.Bluesky.PostBuilder to add the image to.
imageEmbeddedImage-
The idunno.Bluesky.Embed.EmbeddedImage to add.
Returns
- PostBuilder
-
The
postBuilder.
Exceptions
- ArgumentNullException
-
Thrown when
postBuilderorimageis null.
operator +(PostBuilder, ICollection<EmbeddedImage>)
Adds a collection of idunno.Bluesky.Embed.EmbeddedImages to the specified postBuilder.
public static PostBuilder operator +(PostBuilder postBuilder, ICollection<EmbeddedImage> images)Parameters
postBuilderPostBuilder-
The idunno.Bluesky.PostBuilder to add the images to.
imagesICollection<EmbeddedImage>-
The collection of idunno.Bluesky.Embed.EmbeddedImages to add.
Returns
- PostBuilder
-
The
postBuilder.
Exceptions
- ArgumentNullException
-
Thrown when
postBuilderorimagesis null.
operator +(PostBuilder, GalleryImage)
Adds an idunno.Bluesky.Embed.Gallery.GalleryImage to the specified postBuilder.
public static PostBuilder operator +(PostBuilder postBuilder, GalleryImage image)Parameters
postBuilderPostBuilder-
The idunno.Bluesky.PostBuilder to add the image to.
imageGalleryImage-
The idunno.Bluesky.Embed.Gallery.GalleryImage to add.
Returns
- PostBuilder
-
The
postBuilder.
Exceptions
- ArgumentNullException
-
Thrown when
postBuilderorimageis null.
operator +(PostBuilder, ICollection<GalleryImage>)
Adds a collection of idunno.Bluesky.Embed.Gallery.GalleryImages to the specified postBuilder.
public static PostBuilder operator +(PostBuilder postBuilder, ICollection<GalleryImage> images)Parameters
postBuilderPostBuilder-
The idunno.Bluesky.PostBuilder to add the images to.
imagesICollection<GalleryImage>-
The collection of idunno.Bluesky.Embed.Gallery.GalleryImages to add.
Returns
- PostBuilder
-
The
postBuilder.
Exceptions
- ArgumentNullException
-
Thrown when
postBuilderorimagesis null.
operator +(PostBuilder, EmbeddedVideo)
Adds an idunno.Bluesky.Embed.EmbeddedVideo to the specified postBuilder.
public static PostBuilder operator +(PostBuilder postBuilder, EmbeddedVideo video)Parameters
postBuilderPostBuilder-
The idunno.Bluesky.PostBuilder to add the video to.
videoEmbeddedVideo-
The idunno.Bluesky.Embed.EmbeddedVideo to add.
Returns
- PostBuilder
-
The
postBuilder.
Exceptions
- ArgumentNullException
-
Thrown when
postBuilderorvideois null.
operator +(PostBuilder, StrongReference)
Adds an embedded record pointing to the ATProto record specified by strongReference to the specified postBuilder.
public static PostBuilder operator +(PostBuilder postBuilder, StrongReference strongReference)Parameters
postBuilderPostBuilder-
The idunno.Bluesky.PostBuilder to add the strong reference to.
strongReferenceStrongReference-
The idunno.AtProto.Repo.StrongReference to embed.
Returns
- PostBuilder
-
The
postBuilder.
Exceptions
- ArgumentNullException
-
Thrown when
postBuilderorstrongReferenceis null.
operator +(PostBuilder, SelfLabel)
Adds a selfLabel to the specified postBuilder.
public static PostBuilder operator +(PostBuilder postBuilder, SelfLabel selfLabel)Parameters
postBuilderPostBuilder-
The idunno.Bluesky.PostBuilder to add the self label to.
selfLabelSelfLabel-
The idunno.AtProto.Labels.SelfLabel to add.
Returns
- PostBuilder
-
The
postBuilder.
Exceptions
- ArgumentNullException
-
Thrown when
postBuilder,selfLabel, or the label's value is null.
operator +(PostBuilder, string)
Adds a copy of the specified string to the record text of the specified postBuilder.
public static PostBuilder operator +(PostBuilder postBuilder, string s)Parameters
postBuilderPostBuilder-
The idunno.Bluesky.PostBuilder to add the string to.
sstring-
The string to append
Returns
- PostBuilder
-
The
postBuilder.
Exceptions
- ArgumentNullException
-
Thrown when
postBuilderis null.
operator +(PostBuilder, char)
Adds the specified character to the record text of the specified postBuilder.
public static PostBuilder operator +(PostBuilder postBuilder, char c)Parameters
postBuilderPostBuilder-
The idunno.Bluesky.PostBuilder to add the character to.
cchar-
The character to append
Returns
- PostBuilder
-
The
postBuilder.
Exceptions
- ArgumentNullException
-
Thrown when
postBuilderis null.
operator +(PostBuilder, Mention)
Adds a idunno.Bluesky.RichText.Mention to the text and facet features to the specified postBuilder.
public static PostBuilder operator +(PostBuilder postBuilder, Mention mention)Parameters
postBuilderPostBuilder-
The idunno.Bluesky.PostBuilder to add the mention to.
mentionMention-
The idunno.Bluesky.RichText.Mention to add.
Returns
- PostBuilder
-
The
postBuilder.
Exceptions
- ArgumentNullException
-
Thrown when
postBuilderormentionis null.
operator +(PostBuilder, HashTag)
Adds a idunno.Bluesky.RichText.HashTag to the text and facet features to the specified postBuilder.
public static PostBuilder operator +(PostBuilder postBuilder, HashTag hashTag)Parameters
postBuilderPostBuilder-
The idunno.Bluesky.PostBuilder to add the hash tag to.
hashTagHashTag-
The idunno.Bluesky.RichText.HashTag to add.
Returns
- PostBuilder
-
The
postBuilder.
Exceptions
- ArgumentNullException
-
Thrown when
postBuilderorhashTagis null.
operator +(PostBuilder, Link)
Adds a idunno.Bluesky.RichText.Link to the text and facet features to the specified postBuilder.
public static PostBuilder operator +(PostBuilder postBuilder, Link link)Parameters
postBuilderPostBuilder-
The idunno.Bluesky.PostBuilder to add the link tag to.
linkLink-
The idunno.Bluesky.RichText.Link to add.
Returns
- PostBuilder
-
The
postBuilder.
Exceptions
- ArgumentNullException
-
Thrown when
postBuilderorlinkis null.
operator +(PostBuilder, EmbeddedImage)
Adds an idunno.Bluesky.Embed.EmbeddedImage to the specified postBuilder.
public static PostBuilder operator +(PostBuilder postBuilder, EmbeddedImage image)Parameters
postBuilderPostBuilder-
The idunno.Bluesky.PostBuilder to add the image to.
imageEmbeddedImage-
The idunno.Bluesky.Embed.EmbeddedImage to add.
Returns
- PostBuilder
-
The
postBuilder.
Exceptions
- ArgumentNullException
-
Thrown when
postBuilderorimageis null.
operator +(PostBuilder, ICollection<EmbeddedImage>)
Adds a collection of idunno.Bluesky.Embed.EmbeddedImages to the specified postBuilder.
public static PostBuilder operator +(PostBuilder postBuilder, ICollection<EmbeddedImage> images)Parameters
postBuilderPostBuilder-
The idunno.Bluesky.PostBuilder to add the images to.
imagesICollection<EmbeddedImage>-
The collection of idunno.Bluesky.Embed.EmbeddedImages to add.
Returns
- PostBuilder
-
The
postBuilder.
Exceptions
- ArgumentNullException
-
Thrown when
postBuilderorimagesis null.
operator +(PostBuilder, GalleryImage)
Adds an idunno.Bluesky.Embed.Gallery.GalleryImage to the specified postBuilder.
public static PostBuilder operator +(PostBuilder postBuilder, GalleryImage image)Parameters
postBuilderPostBuilder-
The idunno.Bluesky.PostBuilder to add the image to.
imageGalleryImage-
The idunno.Bluesky.Embed.Gallery.GalleryImage to add.
Returns
- PostBuilder
-
The
postBuilder.
Exceptions
- ArgumentNullException
-
Thrown when
postBuilderorimageis null.
operator +(PostBuilder, ICollection<GalleryImage>)
Adds a collection of idunno.Bluesky.Embed.Gallery.GalleryImages to the specified postBuilder.
public static PostBuilder operator +(PostBuilder postBuilder, ICollection<GalleryImage> images)Parameters
postBuilderPostBuilder-
The idunno.Bluesky.PostBuilder to add the images to.
imagesICollection<GalleryImage>-
The collection of idunno.Bluesky.Embed.Gallery.GalleryImages to add.
Returns
- PostBuilder
-
The
postBuilder.
Exceptions
- ArgumentNullException
-
Thrown when
postBuilderorimagesis null.
operator +(PostBuilder, EmbeddedVideo)
Adds an idunno.Bluesky.Embed.EmbeddedVideo to the specified postBuilder.
public static PostBuilder operator +(PostBuilder postBuilder, EmbeddedVideo video)Parameters
postBuilderPostBuilder-
The idunno.Bluesky.PostBuilder to add the video to.
videoEmbeddedVideo-
The idunno.Bluesky.Embed.EmbeddedVideo to add.
Returns
- PostBuilder
-
The
postBuilder.
Exceptions
- ArgumentNullException
-
Thrown when
postBuilderorvideois null.
operator +(PostBuilder, StrongReference)
Adds an embedded record pointing to the ATProto record specified by strongReference to the specified postBuilder.
public static PostBuilder operator +(PostBuilder postBuilder, StrongReference strongReference)Parameters
postBuilderPostBuilder-
The idunno.Bluesky.PostBuilder to add the strong reference to.
strongReferenceStrongReference-
The idunno.AtProto.Repo.StrongReference to embed.
Returns
- PostBuilder
-
The
postBuilder.
Exceptions
- ArgumentNullException
-
Thrown when
postBuilderorstrongReferenceis null.
operator +(PostBuilder, SelfLabel)
Adds a selfLabel to the specified postBuilder.
public static PostBuilder operator +(PostBuilder postBuilder, SelfLabel selfLabel)Parameters
postBuilderPostBuilder-
The idunno.Bluesky.PostBuilder to add the self label to.
selfLabelSelfLabel-
The idunno.AtProto.Labels.SelfLabel to add.
Returns
- PostBuilder
-
The
postBuilder.
Exceptions
- ArgumentNullException
-
Thrown when
postBuilder,selfLabel, or the label's value is null.
operator +(PostBuilder, string)
Adds a copy of the specified string to the record text of the specified postBuilder.
public static PostBuilder operator +(PostBuilder postBuilder, string s)Parameters
postBuilderPostBuilder-
The idunno.Bluesky.PostBuilder to add the string to.
sstring-
The string to append
Returns
- PostBuilder
-
The
postBuilder.
Exceptions
- ArgumentNullException
-
Thrown when
postBuilderis null.
operator +(PostBuilder, char)
Adds the specified character to the record text of the specified postBuilder.
public static PostBuilder operator +(PostBuilder postBuilder, char c)Parameters
postBuilderPostBuilder-
The idunno.Bluesky.PostBuilder to add the character to.
cchar-
The character to append
Returns
- PostBuilder
-
The
postBuilder.
Exceptions
- ArgumentNullException
-
Thrown when
postBuilderis null.
operator +(PostBuilder, Mention)
Adds a idunno.Bluesky.RichText.Mention to the text and facet features to the specified postBuilder.
public static PostBuilder operator +(PostBuilder postBuilder, Mention mention)Parameters
postBuilderPostBuilder-
The idunno.Bluesky.PostBuilder to add the mention to.
mentionMention-
The idunno.Bluesky.RichText.Mention to add.
Returns
- PostBuilder
-
The
postBuilder.
Exceptions
- ArgumentNullException
-
Thrown when
postBuilderormentionis null.
operator +(PostBuilder, HashTag)
Adds a idunno.Bluesky.RichText.HashTag to the text and facet features to the specified postBuilder.
public static PostBuilder operator +(PostBuilder postBuilder, HashTag hashTag)Parameters
postBuilderPostBuilder-
The idunno.Bluesky.PostBuilder to add the hash tag to.
hashTagHashTag-
The idunno.Bluesky.RichText.HashTag to add.
Returns
- PostBuilder
-
The
postBuilder.
Exceptions
- ArgumentNullException
-
Thrown when
postBuilderorhashTagis null.
operator +(PostBuilder, Link)
Adds a idunno.Bluesky.RichText.Link to the text and facet features to the specified postBuilder.
public static PostBuilder operator +(PostBuilder postBuilder, Link link)Parameters
postBuilderPostBuilder-
The idunno.Bluesky.PostBuilder to add the link tag to.
linkLink-
The idunno.Bluesky.RichText.Link to add.
Returns
- PostBuilder
-
The
postBuilder.
Exceptions
- ArgumentNullException
-
Thrown when
postBuilderorlinkis null.
operator +(PostBuilder, EmbeddedImage)
Adds an idunno.Bluesky.Embed.EmbeddedImage to the specified postBuilder.
public static PostBuilder operator +(PostBuilder postBuilder, EmbeddedImage image)Parameters
postBuilderPostBuilder-
The idunno.Bluesky.PostBuilder to add the image to.
imageEmbeddedImage-
The idunno.Bluesky.Embed.EmbeddedImage to add.
Returns
- PostBuilder
-
The
postBuilder.
Exceptions
- ArgumentNullException
-
Thrown when
postBuilderorimageis null.
operator +(PostBuilder, ICollection<EmbeddedImage>)
Adds a collection of idunno.Bluesky.Embed.EmbeddedImages to the specified postBuilder.
public static PostBuilder operator +(PostBuilder postBuilder, ICollection<EmbeddedImage> images)Parameters
postBuilderPostBuilder-
The idunno.Bluesky.PostBuilder to add the images to.
imagesICollection<EmbeddedImage>-
The collection of idunno.Bluesky.Embed.EmbeddedImages to add.
Returns
- PostBuilder
-
The
postBuilder.
Exceptions
- ArgumentNullException
-
Thrown when
postBuilderorimagesis null.
operator +(PostBuilder, GalleryImage)
Adds an idunno.Bluesky.Embed.Gallery.GalleryImage to the specified postBuilder.
public static PostBuilder operator +(PostBuilder postBuilder, GalleryImage image)Parameters
postBuilderPostBuilder-
The idunno.Bluesky.PostBuilder to add the image to.
imageGalleryImage-
The idunno.Bluesky.Embed.Gallery.GalleryImage to add.
Returns
- PostBuilder
-
The
postBuilder.
Exceptions
- ArgumentNullException
-
Thrown when
postBuilderorimageis null.
operator +(PostBuilder, ICollection<GalleryImage>)
Adds a collection of idunno.Bluesky.Embed.Gallery.GalleryImages to the specified postBuilder.
public static PostBuilder operator +(PostBuilder postBuilder, ICollection<GalleryImage> images)Parameters
postBuilderPostBuilder-
The idunno.Bluesky.PostBuilder to add the images to.
imagesICollection<GalleryImage>-
The collection of idunno.Bluesky.Embed.Gallery.GalleryImages to add.
Returns
- PostBuilder
-
The
postBuilder.
Exceptions
- ArgumentNullException
-
Thrown when
postBuilderorimagesis null.
operator +(PostBuilder, EmbeddedVideo)
Adds an idunno.Bluesky.Embed.EmbeddedVideo to the specified postBuilder.
public static PostBuilder operator +(PostBuilder postBuilder, EmbeddedVideo video)Parameters
postBuilderPostBuilder-
The idunno.Bluesky.PostBuilder to add the video to.
videoEmbeddedVideo-
The idunno.Bluesky.Embed.EmbeddedVideo to add.
Returns
- PostBuilder
-
The
postBuilder.
Exceptions
- ArgumentNullException
-
Thrown when
postBuilderorvideois null.
operator +(PostBuilder, StrongReference)
Adds an embedded record pointing to the ATProto record specified by strongReference to the specified postBuilder.
public static PostBuilder operator +(PostBuilder postBuilder, StrongReference strongReference)Parameters
postBuilderPostBuilder-
The idunno.Bluesky.PostBuilder to add the strong reference to.
strongReferenceStrongReference-
The idunno.AtProto.Repo.StrongReference to embed.
Returns
- PostBuilder
-
The
postBuilder.
Exceptions
- ArgumentNullException
-
Thrown when
postBuilderorstrongReferenceis null.
operator +(PostBuilder, SelfLabel)
Adds a selfLabel to the specified postBuilder.
public static PostBuilder operator +(PostBuilder postBuilder, SelfLabel selfLabel)Parameters
postBuilderPostBuilder-
The idunno.Bluesky.PostBuilder to add the self label to.
selfLabelSelfLabel-
The idunno.AtProto.Labels.SelfLabel to add.
Returns
- PostBuilder
-
The
postBuilder.
Exceptions
- ArgumentNullException
-
Thrown when
postBuilder,selfLabel, or the label's value is null.
operator ==(PostBuilder?, PostBuilder?)
Determines whether two specified idunno.Bluesky.PostBuilders the same value.
public static bool operator ==(PostBuilder? lhs, PostBuilder? rhs)Parameters
lhsPostBuilder?-
The first idunno.Bluesky.PostBuilder to compare, or null.
rhsPostBuilder?-
The second idunno.Bluesky.PostBuilder to compare, or null.
Returns
operator ==(PostBuilder?, PostBuilder?)
Determines whether two specified idunno.Bluesky.PostBuilders the same value.
public static bool operator ==(PostBuilder? lhs, PostBuilder? rhs)Parameters
lhsPostBuilder?-
The first idunno.Bluesky.PostBuilder to compare, or null.
rhsPostBuilder?-
The second idunno.Bluesky.PostBuilder to compare, or null.
Returns
operator ==(PostBuilder?, PostBuilder?)
Determines whether two specified idunno.Bluesky.PostBuilders the same value.
public static bool operator ==(PostBuilder? lhs, PostBuilder? rhs)Parameters
lhsPostBuilder?-
The first idunno.Bluesky.PostBuilder to compare, or null.
rhsPostBuilder?-
The second idunno.Bluesky.PostBuilder to compare, or null.
Returns
implicit operator Post(PostBuilder)
Converts the specified postBuilder to a idunno.Bluesky.Post.
public static implicit operator Post(PostBuilder postBuilder)Parameters
postBuilderPostBuilder-
The idunno.Bluesky.PostBuilder to convert.
Returns
- Post
-
A idunno.Bluesky.Post whose built from
postBuilder.
Exceptions
- ArgumentNullException
-
Thrown when
postBuilderis null.
implicit operator Post(PostBuilder)
Converts the specified postBuilder to a idunno.Bluesky.Post.
public static implicit operator Post(PostBuilder postBuilder)Parameters
postBuilderPostBuilder-
The idunno.Bluesky.PostBuilder to convert.
Returns
- Post
-
A idunno.Bluesky.Post whose built from
postBuilder.
Exceptions
- ArgumentNullException
-
Thrown when
postBuilderis null.
implicit operator Post(PostBuilder)
Converts the specified postBuilder to a idunno.Bluesky.Post.
public static implicit operator Post(PostBuilder postBuilder)Parameters
postBuilderPostBuilder-
The idunno.Bluesky.PostBuilder to convert.
Returns
- Post
-
A idunno.Bluesky.Post whose built from
postBuilder.
Exceptions
- ArgumentNullException
-
Thrown when
postBuilderis null.
operator !=(PostBuilder?, PostBuilder?)
Determines whether two specified idunno.Bluesky.PostBuilders dot not have same value."/>
public static bool operator !=(PostBuilder? lhs, PostBuilder? rhs)Parameters
lhsPostBuilder?-
The first idunno.Bluesky.PostBuilder to compare, or null.
rhsPostBuilder?-
The second idunno.Bluesky.PostBuilder to compare, or null.
Returns
operator !=(PostBuilder?, PostBuilder?)
Determines whether two specified idunno.Bluesky.PostBuilders dot not have same value."/>
public static bool operator !=(PostBuilder? lhs, PostBuilder? rhs)Parameters
lhsPostBuilder?-
The first idunno.Bluesky.PostBuilder to compare, or null.
rhsPostBuilder?-
The second idunno.Bluesky.PostBuilder to compare, or null.
Returns
operator !=(PostBuilder?, PostBuilder?)
Determines whether two specified idunno.Bluesky.PostBuilders dot not have same value."/>
public static bool operator !=(PostBuilder? lhs, PostBuilder? rhs)Parameters
lhsPostBuilder?-
The first idunno.Bluesky.PostBuilder to compare, or null.
rhsPostBuilder?-
The second idunno.Bluesky.PostBuilder to compare, or null.