Table of Contents

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

text string?

The text for the post.

lang string

The languages for the post.

createdAt DateTimeOffset?

The System.DateTimeOffset the post was created at.

images ICollection<EmbeddedImage>?

A collection of idunno.Bluesky.Embed.EmbeddedImages to attach to the post, if any.

facets ICollection<Facet>?

A collection of idunno.Bluesky.RichText.Facets to attach to the post text, if any.

labels PostSelfLabels?

Any self labels to apply to the post.

tags ICollection<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

text string?

The text for the post.

langs ICollection<string>?

The languages for the post.

createdAt DateTimeOffset?

The System.DateTimeOffset the post was created at.

images ICollection<EmbeddedImage>?

A collection of idunno.Bluesky.Embed.EmbeddedImages to attach to the post, if any.

facets ICollection<Facet>?

A collection of idunno.Bluesky.RichText.Facets to attach to the post text, if any.

labels PostSelfLabels?

Any self labels to apply to the post.

tags ICollection<string>?

Any tags to apply to the post.

Exceptions

ArgumentException

Thrown when the text for a idunno.Bluesky.PostBuilder is too long or tags contains a null or empty tag,

ArgumentOutOfRangeException

Thrown when text for the post is too long or images contains too many images, or if there are too many images without an idunno.Bluesky.Embed.EmbeddedImage.AspectRatio, or tags has too many tags, or a tag that exceeds the maximum length.

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

text string?

The text for the post.

galleryImages ICollection<GalleryImage>

A collection of idunno.Bluesky.Embed.Gallery.GalleryImages to attach to the post.

facets ICollection<Facet>?

A collection of idunno.Bluesky.RichText.Facets to attach to the post text, if any.

labels PostSelfLabels?

Any self labels to apply to the post.

tags ICollection<string>?

Any tags to apply to the post.

Exceptions

ArgumentException

Thrown when the text for a idunno.Bluesky.PostBuilder is too long or tags contains a null or empty tag.

ArgumentNullException

Thrown when galleryImages is null.

ArgumentOutOfRangeException

Thrown when text for the post is too long or galleryImages contains too many images, or tags has too many tags, or a tag that exceeds the maximum length.

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

text string?

The text for the post.

galleryImages ICollection<GalleryImage>

A collection of idunno.Bluesky.Embed.Gallery.GalleryImages to attach to the post.

createdAt DateTimeOffset?

The System.DateTimeOffset the post was created at.

langs ICollection<string>?

The languages for the post.

facets ICollection<Facet>?

A collection of idunno.Bluesky.RichText.Facets to attach to the post text, if any.

labels PostSelfLabels?

Any self labels to apply to the post.

tags ICollection<string>?

Any tags to apply to the post.

Exceptions

ArgumentException

Thrown when the text for a idunno.Bluesky.PostBuilder is too long or tags contains a null or empty tag.

ArgumentNullException

Thrown when galleryImages is null.

ArgumentOutOfRangeException

Thrown when text for the post is too long or galleryImages contains too many images, or tags has 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

text string?

The text for the post.

lang string

The languages for the post.

createdAt DateTimeOffset?

The System.DateTimeOffset the post was created at.

images ICollection<EmbeddedImage>?

A collection of idunno.Bluesky.Embed.EmbeddedImages to attach to the post, if any.

facets ICollection<Facet>?

A collection of idunno.Bluesky.RichText.Facets to attach to the post text, if any.

labels PostSelfLabels?

Any self labels to apply to the post.

tags ICollection<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

text string?

The text for the post.

langs ICollection<string>?

The languages for the post.

createdAt DateTimeOffset?

The System.DateTimeOffset the post was created at.

images ICollection<EmbeddedImage>?

A collection of idunno.Bluesky.Embed.EmbeddedImages to attach to the post, if any.

facets ICollection<Facet>?

A collection of idunno.Bluesky.RichText.Facets to attach to the post text, if any.

labels PostSelfLabels?

Any self labels to apply to the post.

tags ICollection<string>?

Any tags to apply to the post.

Exceptions

ArgumentException

Thrown when the text for a idunno.Bluesky.PostBuilder is too long or tags contains a null or empty tag,

ArgumentOutOfRangeException

Thrown when text for the post is too long or images contains too many images, or if there are too many images without an idunno.Bluesky.Embed.EmbeddedImage.AspectRatio, or tags has too many tags, or a tag that exceeds the maximum length.

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

text string?

The text for the post.

galleryImages ICollection<GalleryImage>

A collection of idunno.Bluesky.Embed.Gallery.GalleryImages to attach to the post.

facets ICollection<Facet>?

A collection of idunno.Bluesky.RichText.Facets to attach to the post text, if any.

labels PostSelfLabels?

Any self labels to apply to the post.

tags ICollection<string>?

Any tags to apply to the post.

Exceptions

ArgumentException

Thrown when the text for a idunno.Bluesky.PostBuilder is too long or tags contains a null or empty tag.

ArgumentNullException

Thrown when galleryImages is null.

ArgumentOutOfRangeException

Thrown when text for the post is too long or galleryImages contains too many images, or tags has too many tags, or a tag that exceeds the maximum length.

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

text string?

The text for the post.

galleryImages ICollection<GalleryImage>

A collection of idunno.Bluesky.Embed.Gallery.GalleryImages to attach to the post.

createdAt DateTimeOffset?

The System.DateTimeOffset the post was created at.

langs ICollection<string>?

The languages for the post.

facets ICollection<Facet>?

A collection of idunno.Bluesky.RichText.Facets to attach to the post text, if any.

labels PostSelfLabels?

Any self labels to apply to the post.

tags ICollection<string>?

Any tags to apply to the post.

Exceptions

ArgumentException

Thrown when the text for a idunno.Bluesky.PostBuilder is too long or tags contains a null or empty tag.

ArgumentNullException

Thrown when galleryImages is null.

ArgumentOutOfRangeException

Thrown when text for the post is too long or galleryImages contains too many images, or tags has 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

text string?

The text for the post.

lang string

The languages for the post.

createdAt DateTimeOffset?

The System.DateTimeOffset the post was created at.

images ICollection<EmbeddedImage>?

A collection of idunno.Bluesky.Embed.EmbeddedImages to attach to the post, if any.

facets ICollection<Facet>?

A collection of idunno.Bluesky.RichText.Facets to attach to the post text, if any.

labels PostSelfLabels?

Any self labels to apply to the post.

tags ICollection<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

text string?

The text for the post.

langs ICollection<string>?

The languages for the post.

createdAt DateTimeOffset?

The System.DateTimeOffset the post was created at.

images ICollection<EmbeddedImage>?

A collection of idunno.Bluesky.Embed.EmbeddedImages to attach to the post, if any.

facets ICollection<Facet>?

A collection of idunno.Bluesky.RichText.Facets to attach to the post text, if any.

labels PostSelfLabels?

Any self labels to apply to the post.

tags ICollection<string>?

Any tags to apply to the post.

Exceptions

ArgumentException

Thrown when the text for a idunno.Bluesky.PostBuilder is too long or tags contains a null or empty tag,

ArgumentOutOfRangeException

Thrown when text for the post is too long or images contains too many images, or if there are too many images without an idunno.Bluesky.Embed.EmbeddedImage.AspectRatio, or tags has too many tags, or a tag that exceeds the maximum length.

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

text string?

The text for the post.

galleryImages ICollection<GalleryImage>

A collection of idunno.Bluesky.Embed.Gallery.GalleryImages to attach to the post.

facets ICollection<Facet>?

A collection of idunno.Bluesky.RichText.Facets to attach to the post text, if any.

labels PostSelfLabels?

Any self labels to apply to the post.

tags ICollection<string>?

Any tags to apply to the post.

Exceptions

ArgumentException

Thrown when the text for a idunno.Bluesky.PostBuilder is too long or tags contains a null or empty tag.

ArgumentNullException

Thrown when galleryImages is null.

ArgumentOutOfRangeException

Thrown when text for the post is too long or galleryImages contains too many images, or tags has too many tags, or a tag that exceeds the maximum length.

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

text string?

The text for the post.

galleryImages ICollection<GalleryImage>

A collection of idunno.Bluesky.Embed.Gallery.GalleryImages to attach to the post.

createdAt DateTimeOffset?

The System.DateTimeOffset the post was created at.

langs ICollection<string>?

The languages for the post.

facets ICollection<Facet>?

A collection of idunno.Bluesky.RichText.Facets to attach to the post text, if any.

labels PostSelfLabels?

Any self labels to apply to the post.

tags ICollection<string>?

Any tags to apply to the post.

Exceptions

ArgumentException

Thrown when the text for a idunno.Bluesky.PostBuilder is too long or tags contains a null or empty tag.

ArgumentNullException

Thrown when galleryImages is null.

ArgumentOutOfRangeException

Thrown when text for the post is too long or galleryImages contains too many images, or tags has 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

bool

DisableEmbedding

Gets or sets a flag indicating whether the new post should have embedding disabled.

public bool DisableEmbedding { get; set; }

Property Value

bool

DisableEmbedding

Gets or sets a flag indicating whether the new post should have embedding disabled.

public bool DisableEmbedding { get; set; }

Property Value

bool

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

bool

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

bool

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

bool

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

EmbeddedBase?

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

EmbeddedBase?

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

EmbeddedBase?

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

IReadOnlyCollection<Facet>

Facets

Gets a list of facets for the post.

public IReadOnlyCollection<Facet> Facets { get; }

Property Value

IReadOnlyCollection<Facet>

Facets

Gets a list of facets for the post.

public IReadOnlyCollection<Facet> Facets { get; }

Property Value

IReadOnlyCollection<Facet>

GalleryImages

Gets a readonly list of the gallery images for the post.

public IReadOnlyCollection<GalleryImage> GalleryImages { get; }

Property Value

IReadOnlyCollection<GalleryImage>

GalleryImages

Gets a readonly list of the gallery images for the post.

public IReadOnlyCollection<GalleryImage> GalleryImages { get; }

Property Value

IReadOnlyCollection<GalleryImage>

GalleryImages

Gets a readonly list of the gallery images for the post.

public IReadOnlyCollection<GalleryImage> GalleryImages { get; }

Property Value

IReadOnlyCollection<GalleryImage>

GraphemeLength

Gets the length of the post text, in graphemes.

public int GraphemeLength { get; }

Property Value

int

GraphemeLength

Gets the length of the post text, in graphemes.

public int GraphemeLength { get; }

Property Value

int

GraphemeLength

Gets the length of the post text, in graphemes.

public int GraphemeLength { get; }

Property Value

int

HasEmbed

Gets a flag indicating whether this instance has an embedded media record.

[MemberNotNullWhen(true, "Embed")]
public bool HasEmbed { get; }

Property Value

bool

HasEmbed

Gets a flag indicating whether this instance has an embedded media record.

[MemberNotNullWhen(true, "Embed")]
public bool HasEmbed { get; }

Property Value

bool

HasEmbed

Gets a flag indicating whether this instance has an embedded media record.

[MemberNotNullWhen(true, "Embed")]
public bool HasEmbed { get; }

Property Value

bool

HasGalleryImages

Gets a flag indicating whether this instance has any gallery images

[MemberNotNullWhen(true, "GalleryImages")]
public bool HasGalleryImages { get; }

Property Value

bool

HasGalleryImages

Gets a flag indicating whether this instance has any gallery images

[MemberNotNullWhen(true, "GalleryImages")]
public bool HasGalleryImages { get; }

Property Value

bool

HasGalleryImages

Gets a flag indicating whether this instance has any gallery images

[MemberNotNullWhen(true, "GalleryImages")]
public bool HasGalleryImages { get; }

Property Value

bool

HasImages

Gets a flag indicating whether this instance has any images

[MemberNotNullWhen(true, "Images")]
public bool HasImages { get; }

Property Value

bool

HasImages

Gets a flag indicating whether this instance has any images

[MemberNotNullWhen(true, "Images")]
public bool HasImages { get; }

Property Value

bool

HasImages

Gets a flag indicating whether this instance has any images

[MemberNotNullWhen(true, "Images")]
public bool HasImages { get; }

Property Value

bool

HasTags

Gets a flag indicating whether this instance has any tags

[MemberNotNullWhen(true, "Tags")]
public bool HasTags { get; }

Property Value

bool

HasTags

Gets a flag indicating whether this instance has any tags

[MemberNotNullWhen(true, "Tags")]
public bool HasTags { get; }

Property Value

bool

HasTags

Gets a flag indicating whether this instance has any tags

[MemberNotNullWhen(true, "Tags")]
public bool HasTags { get; }

Property Value

bool

HasText

Gets a flag indicating whether this instance has any record text.

[MemberNotNullWhen(true, "Length")]
[MemberNotNullWhen(true, "Text")]
public bool HasText { get; }

Property Value

bool

HasText

Gets a flag indicating whether this instance has any record text.

[MemberNotNullWhen(true, "Length")]
[MemberNotNullWhen(true, "Text")]
public bool HasText { get; }

Property Value

bool

HasText

Gets a flag indicating whether this instance has any record text.

[MemberNotNullWhen(true, "Length")]
[MemberNotNullWhen(true, "Text")]
public bool HasText { get; }

Property Value

bool

HasVideo

Gets a flag indicating whether this instance has an embedded video

[MemberNotNullWhen(true, "Video")]
public bool HasVideo { get; }

Property Value

bool

HasVideo

Gets a flag indicating whether this instance has an embedded video

[MemberNotNullWhen(true, "Video")]
public bool HasVideo { get; }

Property Value

bool

HasVideo

Gets a flag indicating whether this instance has an embedded video

[MemberNotNullWhen(true, "Video")]
public bool HasVideo { get; }

Property Value

bool

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

IReadOnlyCollection<EmbeddedImage>

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

IReadOnlyCollection<EmbeddedImage>

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

IReadOnlyCollection<EmbeddedImage>

InReplyTo

Gets or sets the idunno.AtProto.Repo.StrongReference of the post being replied to.

public ReplyReferences? InReplyTo { get; set; }

Property Value

ReplyReferences?

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

ReplyReferences?

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

ReplyReferences?

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

IEnumerable<string>?

Langs

Gets a copy of the list of languages for the post.

public IEnumerable<string>? Langs { get; }

Property Value

IEnumerable<string>?

Langs

Gets a copy of the list of languages for the post.

public IEnumerable<string>? Langs { get; }

Property Value

IEnumerable<string>?

Length

Gets the length of the post text, in characters.

public int Length { get; }

Property Value

int

Length

Gets the length of the post text, in characters.

public int Length { get; }

Property Value

int

Length

Gets the length of the post text, in characters.

public int Length { get; }

Property Value

int

MaxCapacity

Gets the maximum capacity, in UTF-8 bytes, allowed in the record text of this instance

public int MaxCapacity { get; }

Property Value

int

MaxCapacity

Gets the maximum capacity, in UTF-8 bytes, allowed in the record text of this instance

public int MaxCapacity { get; }

Property Value

int

MaxCapacity

Gets the maximum capacity, in UTF-8 bytes, allowed in the record text of this instance

public int MaxCapacity { get; }

Property Value

int

MaxCapacityGraphemes

Gets the maximum capacity of graphemes allowed in the record text of this instance

public int MaxCapacityGraphemes { get; }

Property Value

int

MaxCapacityGraphemes

Gets the maximum capacity of graphemes allowed in the record text of this instance

public int MaxCapacityGraphemes { get; }

Property Value

int

MaxCapacityGraphemes

Gets the maximum capacity of graphemes allowed in the record text of this instance

public int MaxCapacityGraphemes { get; }

Property Value

int

MaxGalleryItems

Gets the maximum capacity of gallery images allowed in this instance

public int MaxGalleryItems { get; }

Property Value

int

MaxGalleryItems

Gets the maximum capacity of gallery images allowed in this instance

public int MaxGalleryItems { get; }

Property Value

int

MaxGalleryItems

Gets the maximum capacity of gallery images allowed in this instance

public int MaxGalleryItems { get; }

Property Value

int

MaxImages

Gets the maximum capacity of images allowed in this instance

public int MaxImages { get; }

Property Value

int

MaxImages

Gets the maximum capacity of images allowed in this instance

public int MaxImages { get; }

Property Value

int

MaxImages

Gets the maximum capacity of images allowed in this instance

public int MaxImages { get; }

Property Value

int

PostGateRules

Gets or sets post gate rules to apply to the post.

public IReadOnlyCollection<PostGateRule>? PostGateRules { get; set; }

Property Value

IReadOnlyCollection<PostGateRule>?

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

IReadOnlyCollection<PostGateRule>?

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

IReadOnlyCollection<PostGateRule>?

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

IEnumerable<string>?

Tags

Gets a copy of the tags for the post.

public IEnumerable<string>? Tags { get; }

Property Value

IEnumerable<string>?

Tags

Gets a copy of the tags for the post.

public IEnumerable<string>? Tags { get; }

Property Value

IEnumerable<string>?

Text

Gets a copy of the text for this instance.

public string? Text { get; }

Property Value

string?

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

string?

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

string?

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

IReadOnlyCollection<ThreadGateRule>?

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

IReadOnlyCollection<ThreadGateRule>?

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

IReadOnlyCollection<ThreadGateRule>?

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

int

Utf8Length

Gets the length of the post text, in Utf8Bytes.

public int Utf8Length { get; }

Property Value

int

Utf8Length

Gets the length of the post text, in Utf8Bytes.

public int Utf8Length { get; }

Property Value

int

Video

Gets the embedded video for the post, if any.

public EmbeddedVideo? Video { get; }

Property Value

EmbeddedVideo?

Video

Gets the embedded video for the post, if any.

public EmbeddedVideo? Video { get; }

Property Value

EmbeddedVideo?

Video

Gets the embedded video for the post, if any.

public EmbeddedVideo? Video { get; }

Property Value

EmbeddedVideo?

Methods

Add(string)

Adds a copy of the specified string to the record text of this instance.

public PostBuilder Add(string s)

Parameters

s string

The string to append

Returns

PostBuilder

A reference to this instance after the append operation has completed.

Exceptions

ArgumentNullException

Thrown when s is 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

postBuilder PostBuilder

The idunno.Bluesky.PostBuilder to add the string to.

s string

The string to append

Returns

PostBuilder

A reference to this instance after the append operation has completed.

Exceptions

ArgumentNullException

Thrown when postBuilder is null.

Add(char)

Adds a copy of the specified character to the post text of this instance.

public PostBuilder Add(char c)

Parameters

c char

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

postBuilder PostBuilder

The idunno.Bluesky.PostBuilder to add the character to.

c char

The character to append

Returns

PostBuilder

A reference to this instance after the append operation has completed.

Exceptions

ArgumentNullException

Thrown when postBuilder is 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

c char

The character to append

repeatCount int

The number of times to repeat the c.

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

postBuilder PostBuilder

The idunno.Bluesky.PostBuilder to add the string to.

c char

The character to append

repeatCount int

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 postBuilder is null.

Adds a idunno.Bluesky.RichText.Link to the text and facet features of this instance.

public PostBuilder Add(Link link)

Parameters

link Link

The idunno.Bluesky.RichText.Link to add.

Returns

PostBuilder

A reference to this instance after the add operation has completed.

Exceptions

ArgumentNullException

Thrown when link is null.

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

postBuilder PostBuilder

The idunno.Bluesky.PostBuilder to add the link to.

link Link

The idunno.Bluesky.RichText.Link to add.

Returns

PostBuilder

A reference to this instance after the add operation has completed.

Exceptions

ArgumentNullException

Thrown when postBuilder or link is 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

mention Mention

The idunno.Bluesky.RichText.Mention to add.

Returns

PostBuilder

A reference to this instance after the add operation has completed.

Exceptions

ArgumentNullException

Thrown when mention is 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

postBuilder PostBuilder

The idunno.Bluesky.PostBuilder to add the mention to.

mention Mention

The idunno.Bluesky.RichText.Mention to add.

Returns

PostBuilder

A reference to this instance after the add operation has completed.

Exceptions

ArgumentNullException

Thrown when postBuilder or mention is null.

Add(HashTag)

Adds a idunno.Bluesky.RichText.HashTag to the text and facet features to this instance.

public PostBuilder Add(HashTag hashTag)

Parameters

hashTag HashTag

The idunno.Bluesky.RichText.HashTag to add.

Returns

PostBuilder

A reference to this instance after the add operation has completed.

Exceptions

ArgumentNullException

Thrown when hashTag is 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

postBuilder PostBuilder

The idunno.Bluesky.PostBuilder to add the hash tag to.

hashTag HashTag

The idunno.Bluesky.RichText.HashTag to add.

Returns

PostBuilder

A reference to this instance after the add operation has completed.

Exceptions

ArgumentNullException

Thrown when postBuilder or hashTag is null.

Add(EmbeddedImage)

Adds a idunno.Bluesky.Embed.EmbeddedImage to this instance.

public PostBuilder Add(EmbeddedImage image)

Parameters

image EmbeddedImage

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 image is 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

postBuilder PostBuilder

The idunno.Bluesky.PostBuilder to add the image to.

image EmbeddedImage

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 postBuilder or image is 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

images ICollection<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 images is 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

postBuilder PostBuilder

The idunno.Bluesky.PostBuilder to add the images to.

images ICollection<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 postBuilder or images is 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

video EmbeddedVideo

The idunno.Bluesky.Embed.EmbeddedVideo to embed.

Returns

PostBuilder

A reference to this instance after the append operation has completed.

Exceptions

ArgumentNullException

Thrown when video is 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

postBuilder PostBuilder

The idunno.Bluesky.PostBuilder to add the video to.

video EmbeddedVideo

The idunno.Bluesky.Embed.EmbeddedVideo to embed.

Returns

PostBuilder

The postBuilder.

Exceptions

ArgumentNullException

Thrown when video is null.

ArgumentOutOfRangeException

Thrown when the postBuilder already 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

strongReference StrongReference

The idunno.AtProto.Repo.StrongReference to embed.

Returns

PostBuilder

A reference to this instance after the append operation has completed.

Exceptions

ArgumentNullException

Thrown when strongReference is 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

postBuilder PostBuilder

The idunno.Bluesky.PostBuilder to add the strong reference to.

strongReference StrongReference

The idunno.AtProto.Repo.StrongReference to embed.

Returns

PostBuilder

The postBuilder.

Exceptions

ArgumentNullException

Thrown when postBuilder or strongReference is null.

Add(SelfLabel)

Adds a idunno.AtProto.Labels.SelfLabel to this instance.

public PostBuilder Add(SelfLabel selfLabel)

Parameters

selfLabel SelfLabel

The idunno.AtProto.Labels.SelfLabel to add.

Returns

PostBuilder

A reference to this instance after the append operation has completed.

Exceptions

ArgumentNullException

Thrown when selfLabel or 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

postBuilder PostBuilder

The idunno.Bluesky.PostBuilder to add the label to.

selfLabel SelfLabel

The idunno.AtProto.Labels.SelfLabel to add.

Returns

PostBuilder

The postBuilder.

Exceptions

ArgumentNullException

Thrown when postBuilder, selfLabel, or the label's value is null.

Adds a idunno.Bluesky.Embed.Gallery.GalleryImage to this instance.

public PostBuilder Add(GalleryImage image)

Parameters

image GalleryImage

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 image is null.

InvalidOperationException

Thrown when a video is already present or there are existing images.

Adds a collection of idunno.Bluesky.Embed.Gallery.GalleryImages to this instance.

public PostBuilder Add(ICollection<GalleryImage> images)

Parameters

images ICollection<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 images is null.

Adds a idunno.Bluesky.Embed.Gallery.GalleryImage to the specified postBuilder.

public static PostBuilder Add(PostBuilder postBuilder, GalleryImage image)

Parameters

postBuilder PostBuilder

The idunno.Bluesky.PostBuilder to add the image to.

image GalleryImage

The idunno.Bluesky.Embed.Gallery.GalleryImage to add.

Returns

PostBuilder

The postBuilder after 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 postBuilder or image is null.

Adds a collection of idunno.Bluesky.Embed.Gallery.GalleryImages to the specified postBuilder.

public static PostBuilder Add(PostBuilder postBuilder, ICollection<GalleryImage> galleryImages)

Parameters

postBuilder PostBuilder

The idunno.Bluesky.PostBuilder to add the images to.

galleryImages ICollection<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 postBuilder or galleryImages is 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

s string

The string to append

Returns

PostBuilder

A reference to this instance after the append operation has completed.

Exceptions

ArgumentNullException

Thrown when s is 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

postBuilder PostBuilder

The idunno.Bluesky.PostBuilder to add the string to.

s string

The string to append

Returns

PostBuilder

A reference to this instance after the append operation has completed.

Exceptions

ArgumentNullException

Thrown when postBuilder is null.

Add(char)

Adds a copy of the specified character to the post text of this instance.

public PostBuilder Add(char c)

Parameters

c char

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

postBuilder PostBuilder

The idunno.Bluesky.PostBuilder to add the character to.

c char

The character to append

Returns

PostBuilder

A reference to this instance after the append operation has completed.

Exceptions

ArgumentNullException

Thrown when postBuilder is 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

c char

The character to append

repeatCount int

The number of times to repeat the c.

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

postBuilder PostBuilder

The idunno.Bluesky.PostBuilder to add the string to.

c char

The character to append

repeatCount int

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 postBuilder is null.

Adds a idunno.Bluesky.RichText.Link to the text and facet features of this instance.

public PostBuilder Add(Link link)

Parameters

link Link

The idunno.Bluesky.RichText.Link to add.

Returns

PostBuilder

A reference to this instance after the add operation has completed.

Exceptions

ArgumentNullException

Thrown when link is null.

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

postBuilder PostBuilder

The idunno.Bluesky.PostBuilder to add the link to.

link Link

The idunno.Bluesky.RichText.Link to add.

Returns

PostBuilder

A reference to this instance after the add operation has completed.

Exceptions

ArgumentNullException

Thrown when postBuilder or link is 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

mention Mention

The idunno.Bluesky.RichText.Mention to add.

Returns

PostBuilder

A reference to this instance after the add operation has completed.

Exceptions

ArgumentNullException

Thrown when mention is 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

postBuilder PostBuilder

The idunno.Bluesky.PostBuilder to add the mention to.

mention Mention

The idunno.Bluesky.RichText.Mention to add.

Returns

PostBuilder

A reference to this instance after the add operation has completed.

Exceptions

ArgumentNullException

Thrown when postBuilder or mention is null.

Add(HashTag)

Adds a idunno.Bluesky.RichText.HashTag to the text and facet features to this instance.

public PostBuilder Add(HashTag hashTag)

Parameters

hashTag HashTag

The idunno.Bluesky.RichText.HashTag to add.

Returns

PostBuilder

A reference to this instance after the add operation has completed.

Exceptions

ArgumentNullException

Thrown when hashTag is 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

postBuilder PostBuilder

The idunno.Bluesky.PostBuilder to add the hash tag to.

hashTag HashTag

The idunno.Bluesky.RichText.HashTag to add.

Returns

PostBuilder

A reference to this instance after the add operation has completed.

Exceptions

ArgumentNullException

Thrown when postBuilder or hashTag is null.

Add(EmbeddedImage)

Adds a idunno.Bluesky.Embed.EmbeddedImage to this instance.

public PostBuilder Add(EmbeddedImage image)

Parameters

image EmbeddedImage

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 image is 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

postBuilder PostBuilder

The idunno.Bluesky.PostBuilder to add the image to.

image EmbeddedImage

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 postBuilder or image is 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

images ICollection<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 images is 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

postBuilder PostBuilder

The idunno.Bluesky.PostBuilder to add the images to.

images ICollection<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 postBuilder or images is 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

video EmbeddedVideo

The idunno.Bluesky.Embed.EmbeddedVideo to embed.

Returns

PostBuilder

A reference to this instance after the append operation has completed.

Exceptions

ArgumentNullException

Thrown when video is 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

postBuilder PostBuilder

The idunno.Bluesky.PostBuilder to add the video to.

video EmbeddedVideo

The idunno.Bluesky.Embed.EmbeddedVideo to embed.

Returns

PostBuilder

The postBuilder.

Exceptions

ArgumentNullException

Thrown when video is null.

ArgumentOutOfRangeException

Thrown when the postBuilder already 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

strongReference StrongReference

The idunno.AtProto.Repo.StrongReference to embed.

Returns

PostBuilder

A reference to this instance after the append operation has completed.

Exceptions

ArgumentNullException

Thrown when strongReference is 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

postBuilder PostBuilder

The idunno.Bluesky.PostBuilder to add the strong reference to.

strongReference StrongReference

The idunno.AtProto.Repo.StrongReference to embed.

Returns

PostBuilder

The postBuilder.

Exceptions

ArgumentNullException

Thrown when postBuilder or strongReference is null.

Add(SelfLabel)

Adds a idunno.AtProto.Labels.SelfLabel to this instance.

public PostBuilder Add(SelfLabel selfLabel)

Parameters

selfLabel SelfLabel

The idunno.AtProto.Labels.SelfLabel to add.

Returns

PostBuilder

A reference to this instance after the append operation has completed.

Exceptions

ArgumentNullException

Thrown when selfLabel or 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

postBuilder PostBuilder

The idunno.Bluesky.PostBuilder to add the label to.

selfLabel SelfLabel

The idunno.AtProto.Labels.SelfLabel to add.

Returns

PostBuilder

The postBuilder.

Exceptions

ArgumentNullException

Thrown when postBuilder, selfLabel, or the label's value is null.

Adds a idunno.Bluesky.Embed.Gallery.GalleryImage to this instance.

public PostBuilder Add(GalleryImage image)

Parameters

image GalleryImage

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 image is null.

InvalidOperationException

Thrown when a video is already present or there are existing images.

Adds a collection of idunno.Bluesky.Embed.Gallery.GalleryImages to this instance.

public PostBuilder Add(ICollection<GalleryImage> images)

Parameters

images ICollection<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 images is null.

Adds a idunno.Bluesky.Embed.Gallery.GalleryImage to the specified postBuilder.

public static PostBuilder Add(PostBuilder postBuilder, GalleryImage image)

Parameters

postBuilder PostBuilder

The idunno.Bluesky.PostBuilder to add the image to.

image GalleryImage

The idunno.Bluesky.Embed.Gallery.GalleryImage to add.

Returns

PostBuilder

The postBuilder after 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 postBuilder or image is null.

Adds a collection of idunno.Bluesky.Embed.Gallery.GalleryImages to the specified postBuilder.

public static PostBuilder Add(PostBuilder postBuilder, ICollection<GalleryImage> galleryImages)

Parameters

postBuilder PostBuilder

The idunno.Bluesky.PostBuilder to add the images to.

galleryImages ICollection<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 postBuilder or galleryImages is 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

s string

The string to append

Returns

PostBuilder

A reference to this instance after the append operation has completed.

Exceptions

ArgumentNullException

Thrown when s is 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

postBuilder PostBuilder

The idunno.Bluesky.PostBuilder to add the string to.

s string

The string to append

Returns

PostBuilder

A reference to this instance after the append operation has completed.

Exceptions

ArgumentNullException

Thrown when postBuilder is null.

Add(char)

Adds a copy of the specified character to the post text of this instance.

public PostBuilder Add(char c)

Parameters

c char

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

postBuilder PostBuilder

The idunno.Bluesky.PostBuilder to add the character to.

c char

The character to append

Returns

PostBuilder

A reference to this instance after the append operation has completed.

Exceptions

ArgumentNullException

Thrown when postBuilder is 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

c char

The character to append

repeatCount int

The number of times to repeat the c.

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

postBuilder PostBuilder

The idunno.Bluesky.PostBuilder to add the string to.

c char

The character to append

repeatCount int

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 postBuilder is null.

Adds a idunno.Bluesky.RichText.Link to the text and facet features of this instance.

public PostBuilder Add(Link link)

Parameters

link Link

The idunno.Bluesky.RichText.Link to add.

Returns

PostBuilder

A reference to this instance after the add operation has completed.

Exceptions

ArgumentNullException

Thrown when link is null.

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

postBuilder PostBuilder

The idunno.Bluesky.PostBuilder to add the link to.

link Link

The idunno.Bluesky.RichText.Link to add.

Returns

PostBuilder

A reference to this instance after the add operation has completed.

Exceptions

ArgumentNullException

Thrown when postBuilder or link is 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

mention Mention

The idunno.Bluesky.RichText.Mention to add.

Returns

PostBuilder

A reference to this instance after the add operation has completed.

Exceptions

ArgumentNullException

Thrown when mention is 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

postBuilder PostBuilder

The idunno.Bluesky.PostBuilder to add the mention to.

mention Mention

The idunno.Bluesky.RichText.Mention to add.

Returns

PostBuilder

A reference to this instance after the add operation has completed.

Exceptions

ArgumentNullException

Thrown when postBuilder or mention is null.

Add(HashTag)

Adds a idunno.Bluesky.RichText.HashTag to the text and facet features to this instance.

public PostBuilder Add(HashTag hashTag)

Parameters

hashTag HashTag

The idunno.Bluesky.RichText.HashTag to add.

Returns

PostBuilder

A reference to this instance after the add operation has completed.

Exceptions

ArgumentNullException

Thrown when hashTag is 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

postBuilder PostBuilder

The idunno.Bluesky.PostBuilder to add the hash tag to.

hashTag HashTag

The idunno.Bluesky.RichText.HashTag to add.

Returns

PostBuilder

A reference to this instance after the add operation has completed.

Exceptions

ArgumentNullException

Thrown when postBuilder or hashTag is null.

Add(EmbeddedImage)

Adds a idunno.Bluesky.Embed.EmbeddedImage to this instance.

public PostBuilder Add(EmbeddedImage image)

Parameters

image EmbeddedImage

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 image is 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

postBuilder PostBuilder

The idunno.Bluesky.PostBuilder to add the image to.

image EmbeddedImage

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 postBuilder or image is 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

images ICollection<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 images is 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

postBuilder PostBuilder

The idunno.Bluesky.PostBuilder to add the images to.

images ICollection<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 postBuilder or images is 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

video EmbeddedVideo

The idunno.Bluesky.Embed.EmbeddedVideo to embed.

Returns

PostBuilder

A reference to this instance after the append operation has completed.

Exceptions

ArgumentNullException

Thrown when video is 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

postBuilder PostBuilder

The idunno.Bluesky.PostBuilder to add the video to.

video EmbeddedVideo

The idunno.Bluesky.Embed.EmbeddedVideo to embed.

Returns

PostBuilder

The postBuilder.

Exceptions

ArgumentNullException

Thrown when video is null.

ArgumentOutOfRangeException

Thrown when the postBuilder already 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

strongReference StrongReference

The idunno.AtProto.Repo.StrongReference to embed.

Returns

PostBuilder

A reference to this instance after the append operation has completed.

Exceptions

ArgumentNullException

Thrown when strongReference is 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

postBuilder PostBuilder

The idunno.Bluesky.PostBuilder to add the strong reference to.

strongReference StrongReference

The idunno.AtProto.Repo.StrongReference to embed.

Returns

PostBuilder

The postBuilder.

Exceptions

ArgumentNullException

Thrown when postBuilder or strongReference is null.

Add(SelfLabel)

Adds a idunno.AtProto.Labels.SelfLabel to this instance.

public PostBuilder Add(SelfLabel selfLabel)

Parameters

selfLabel SelfLabel

The idunno.AtProto.Labels.SelfLabel to add.

Returns

PostBuilder

A reference to this instance after the append operation has completed.

Exceptions

ArgumentNullException

Thrown when selfLabel or 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

postBuilder PostBuilder

The idunno.Bluesky.PostBuilder to add the label to.

selfLabel SelfLabel

The idunno.AtProto.Labels.SelfLabel to add.

Returns

PostBuilder

The postBuilder.

Exceptions

ArgumentNullException

Thrown when postBuilder, selfLabel, or the label's value is null.

Adds a idunno.Bluesky.Embed.Gallery.GalleryImage to this instance.

public PostBuilder Add(GalleryImage image)

Parameters

image GalleryImage

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 image is null.

InvalidOperationException

Thrown when a video is already present or there are existing images.

Adds a collection of idunno.Bluesky.Embed.Gallery.GalleryImages to this instance.

public PostBuilder Add(ICollection<GalleryImage> images)

Parameters

images ICollection<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 images is null.

Adds a idunno.Bluesky.Embed.Gallery.GalleryImage to the specified postBuilder.

public static PostBuilder Add(PostBuilder postBuilder, GalleryImage image)

Parameters

postBuilder PostBuilder

The idunno.Bluesky.PostBuilder to add the image to.

image GalleryImage

The idunno.Bluesky.Embed.Gallery.GalleryImage to add.

Returns

PostBuilder

The postBuilder after 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 postBuilder or image is null.

Adds a collection of idunno.Bluesky.Embed.Gallery.GalleryImages to the specified postBuilder.

public static PostBuilder Add(PostBuilder postBuilder, ICollection<GalleryImage> galleryImages)

Parameters

postBuilder PostBuilder

The idunno.Bluesky.PostBuilder to add the images to.

galleryImages ICollection<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 postBuilder or galleryImages is 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

value char

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

value char

The character to append.

repeatCount int

The number of times to append value.

Returns

PostBuilder

A reference to this instance after the append operation has completed.

Exceptions

ArgumentOutOfRangeException

Thrown when repeatCount is <=0.

Append(HashTag)

Appends a idunno.Bluesky.RichText.HashTag to the text and facet features of this instance.

public PostBuilder Append(HashTag hashTag)

Parameters

hashTag HashTag

The idunno.Bluesky.RichText.HashTag to append.

Returns

PostBuilder

A reference to this instance after the append operation has completed.

Exceptions

ArgumentNullException

Thrown when hashTag is null.

ArgumentException

Thrown when hashTag's text is null or whitespace.

Appends a idunno.Bluesky.RichText.Link to the text and facet features of this instance.

public PostBuilder Append(Link link)

Parameters

link Link

The idunno.Bluesky.RichText.Link to append.

Returns

PostBuilder

A reference to this instance after the append operation has completed.

Exceptions

ArgumentNullException

Thrown when link is null or its text is null or whitespace.

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

mention Mention

The idunno.Bluesky.RichText.Mention to append.

Returns

PostBuilder

A reference to this instance after the append operation has completed.

Exceptions

ArgumentNullException

Thrown when mention is 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

value string?

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

value char

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

value char

The character to append.

repeatCount int

The number of times to append value.

Returns

PostBuilder

A reference to this instance after the append operation has completed.

Exceptions

ArgumentOutOfRangeException

Thrown when repeatCount is <=0.

Append(HashTag)

Appends a idunno.Bluesky.RichText.HashTag to the text and facet features of this instance.

public PostBuilder Append(HashTag hashTag)

Parameters

hashTag HashTag

The idunno.Bluesky.RichText.HashTag to append.

Returns

PostBuilder

A reference to this instance after the append operation has completed.

Exceptions

ArgumentNullException

Thrown when hashTag is null.

ArgumentException

Thrown when hashTag's text is null or whitespace.

Appends a idunno.Bluesky.RichText.Link to the text and facet features of this instance.

public PostBuilder Append(Link link)

Parameters

link Link

The idunno.Bluesky.RichText.Link to append.

Returns

PostBuilder

A reference to this instance after the append operation has completed.

Exceptions

ArgumentNullException

Thrown when link is null or its text is null or whitespace.

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

mention Mention

The idunno.Bluesky.RichText.Mention to append.

Returns

PostBuilder

A reference to this instance after the append operation has completed.

Exceptions

ArgumentNullException

Thrown when mention is 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

value string?

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

value char

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

value char

The character to append.

repeatCount int

The number of times to append value.

Returns

PostBuilder

A reference to this instance after the append operation has completed.

Exceptions

ArgumentOutOfRangeException

Thrown when repeatCount is <=0.

Append(HashTag)

Appends a idunno.Bluesky.RichText.HashTag to the text and facet features of this instance.

public PostBuilder Append(HashTag hashTag)

Parameters

hashTag HashTag

The idunno.Bluesky.RichText.HashTag to append.

Returns

PostBuilder

A reference to this instance after the append operation has completed.

Exceptions

ArgumentNullException

Thrown when hashTag is null.

ArgumentException

Thrown when hashTag's text is null or whitespace.

Appends a idunno.Bluesky.RichText.Link to the text and facet features of this instance.

public PostBuilder Append(Link link)

Parameters

link Link

The idunno.Bluesky.RichText.Link to append.

Returns

PostBuilder

A reference to this instance after the append operation has completed.

Exceptions

ArgumentNullException

Thrown when link is null or its text is null or whitespace.

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

mention Mention

The idunno.Bluesky.RichText.Mention to append.

Returns

PostBuilder

A reference to this instance after the append operation has completed.

Exceptions

ArgumentNullException

Thrown when mention is 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

value string?

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

interactionPreferences PostInteractionSettingsPreferences

The user's interaction preferences.

Exceptions

ArgumentNullException

Thrown when interactionPreferences is null.

ApplyInteractionPreferences(PostInteractionSettingsPreferences)

Applies the user's interaction preferences to this instance.

public void ApplyInteractionPreferences(PostInteractionSettingsPreferences interactionPreferences)

Parameters

interactionPreferences PostInteractionSettingsPreferences

The user's interaction preferences.

Exceptions

ArgumentNullException

Thrown when interactionPreferences is null.

ApplyInteractionPreferences(PostInteractionSettingsPreferences)

Applies the user's interaction preferences to this instance.

public void ApplyInteractionPreferences(PostInteractionSettingsPreferences interactionPreferences)

Parameters

interactionPreferences PostInteractionSettingsPreferences

The user's interaction preferences.

Exceptions

ArgumentNullException

Thrown when interactionPreferences is 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

createdAt DateTimeOffset

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

text string

The text for the post.

lang string

The language of the post, as an ISO language code.

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

text string

The text for the post.

langs string[]

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

createdAt DateTimeOffset

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

text string

The text for the post.

lang string

The language of the post, as an ISO language code.

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

text string

The text for the post.

langs string[]

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

createdAt DateTimeOffset

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

text string

The text for the post.

lang string

The language of the post, as an ISO language code.

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

text string

The text for the post.

langs string[]

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

embeddedRecord EmbeddedBase

The record to embed.

Exceptions

ArgumentNullException

Thrown when embeddedRecord is null.

EmbedRecord(EmbeddedBase)

Embeds the specified idunno.Bluesky.Embed.EmbeddedBase in the post.

public void EmbedRecord(EmbeddedBase embeddedRecord)

Parameters

embeddedRecord EmbeddedBase

The record to embed.

Exceptions

ArgumentNullException

Thrown when embeddedRecord is null.

EmbedRecord(EmbeddedBase)

Embeds the specified idunno.Bluesky.Embed.EmbeddedBase in the post.

public void EmbedRecord(EmbeddedBase embeddedRecord)

Parameters

embeddedRecord EmbeddedBase

The record to embed.

Exceptions

ArgumentNullException

Thrown when embeddedRecord is null.

Equals(PostBuilder?)

Determines whether two idunno.Bluesky.PostBuilder instances are equal.

public bool Equals(PostBuilder? other)

Parameters

other PostBuilder?

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

obj object?

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

Equals(PostBuilder?)

Determines whether two idunno.Bluesky.PostBuilder instances are equal.

public bool Equals(PostBuilder? other)

Parameters

other PostBuilder?

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

obj object?

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

Equals(PostBuilder?)

Determines whether two idunno.Bluesky.PostBuilder instances are equal.

public bool Equals(PostBuilder? other)

Parameters

other PostBuilder?

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

obj object?

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

ExtractFacets(IFacetExtractor, CancellationToken)

Extracts facets from the post text, if any.

public Task ExtractFacets(IFacetExtractor facetExtractor, CancellationToken cancellationToken)

Parameters

facetExtractor IFacetExtractor

The facet extractor to use

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task

Remarks

If this instance of idunno.Bluesky.PostBuilder already has idunno.Bluesky.RichText.Facets extraction will not run.

Exceptions

ArgumentNullException

Thrown when facetExtractor is null.

ExtractFacets(IFacetExtractor, CancellationToken)

Extracts facets from the post text, if any.

public Task ExtractFacets(IFacetExtractor facetExtractor, CancellationToken cancellationToken)

Parameters

facetExtractor IFacetExtractor

The facet extractor to use

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task

Remarks

If this instance of idunno.Bluesky.PostBuilder already has idunno.Bluesky.RichText.Facets extraction will not run.

Exceptions

ArgumentNullException

Thrown when facetExtractor is null.

ExtractFacets(IFacetExtractor, CancellationToken)

Extracts facets from the post text, if any.

public Task ExtractFacets(IFacetExtractor facetExtractor, CancellationToken cancellationToken)

Parameters

facetExtractor IFacetExtractor

The facet extractor to use

cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task

Remarks

If this instance of idunno.Bluesky.PostBuilder already has idunno.Bluesky.RichText.Facets extraction will not run.

Exceptions

ArgumentNullException

Thrown when facetExtractor is 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

bool

true if the post builder is valid; otherwise, false.

IsValid()

Determines whether this instance of idunno.Bluesky.PostBuilder is valid and can be converted to a idunno.Bluesky.Post.

public bool IsValid()

Returns

bool

true if the post builder is valid; otherwise, false.

IsValid()

Determines whether this instance of idunno.Bluesky.PostBuilder is valid and can be converted to a idunno.Bluesky.Post.

public bool IsValid()

Returns

bool

true if the post builder is valid; otherwise, false.

Label(PostSelfLabels)

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

public PostBuilder Label(PostSelfLabels labels)

Parameters

labels PostSelfLabels

The self label values to set.

Returns

PostBuilder

This instance of idunno.Bluesky.PostBuilder.

Exceptions

ArgumentNullException

Thrown when labels is null.

Label(PostSelfLabels)

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

public PostBuilder Label(PostSelfLabels labels)

Parameters

labels PostSelfLabels

The self label values to set.

Returns

PostBuilder

This instance of idunno.Bluesky.PostBuilder.

Exceptions

ArgumentNullException

Thrown when labels is null.

Label(PostSelfLabels)

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

public PostBuilder Label(PostSelfLabels labels)

Parameters

labels PostSelfLabels

The self label values to set.

Returns

PostBuilder

This instance of idunno.Bluesky.PostBuilder.

Exceptions

ArgumentNullException

Thrown when labels is null.

Quote(StrongReference)

Quotes a record specified by strongReference and adds it to this instance.

public PostBuilder Quote(StrongReference strongReference)

Parameters

strongReference StrongReference

The idunno.AtProto.Repo.StrongReference to quote.

Returns

PostBuilder

This instance of idunno.Bluesky.PostBuilder.

Exceptions

ArgumentNullException

Thrown when strongReference is null.

ArgumentException

Thrown when strongReference does 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

postBuilder PostBuilder

The idunno.Bluesky.PostBuilder to add the quote to.

strongReference StrongReference

The idunno.AtProto.Repo.StrongReference to quote.

Returns

PostBuilder

The postBuilder.

Exceptions

ArgumentNullException

Thrown when postBuilder or strongReference is null.

ArgumentException

Thrown when strongReference does 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

strongReference StrongReference

The idunno.AtProto.Repo.StrongReference to quote.

Returns

PostBuilder

This instance of idunno.Bluesky.PostBuilder.

Exceptions

ArgumentNullException

Thrown when strongReference is null.

ArgumentException

Thrown when strongReference does 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

postBuilder PostBuilder

The idunno.Bluesky.PostBuilder to add the quote to.

strongReference StrongReference

The idunno.AtProto.Repo.StrongReference to quote.

Returns

PostBuilder

The postBuilder.

Exceptions

ArgumentNullException

Thrown when postBuilder or strongReference is null.

ArgumentException

Thrown when strongReference does 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

strongReference StrongReference

The idunno.AtProto.Repo.StrongReference to quote.

Returns

PostBuilder

This instance of idunno.Bluesky.PostBuilder.

Exceptions

ArgumentNullException

Thrown when strongReference is null.

ArgumentException

Thrown when strongReference does 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

postBuilder PostBuilder

The idunno.Bluesky.PostBuilder to add the quote to.

strongReference StrongReference

The idunno.AtProto.Repo.StrongReference to quote.

Returns

PostBuilder

The postBuilder.

Exceptions

ArgumentNullException

Thrown when postBuilder or strongReference is null.

ArgumentException

Thrown when strongReference does 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

replyReferences ReplyReferences

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 replyReferences is 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

postReference StrongReference

The idunno.AtProto.Repo.StrongReference to set as the reply target.

agent BlueskyAgent

The idunno.Bluesky.BlueskyAgent to use for retrieving reply references.

cancellationToken CancellationToken

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 postReference or agent is null.

BlueskyException

Thrown when the reply references for postReference could 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

replyReferences ReplyReferences

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 replyReferences is 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

postReference StrongReference

The idunno.AtProto.Repo.StrongReference to set as the reply target.

agent BlueskyAgent

The idunno.Bluesky.BlueskyAgent to use for retrieving reply references.

cancellationToken CancellationToken

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 postReference or agent is null.

BlueskyException

Thrown when the reply references for postReference could 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

replyReferences ReplyReferences

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 replyReferences is 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

postReference StrongReference

The idunno.AtProto.Repo.StrongReference to set as the reply target.

agent BlueskyAgent

The idunno.Bluesky.BlueskyAgent to use for retrieving reply references.

cancellationToken CancellationToken

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 postReference or agent is null.

BlueskyException

Thrown when the reply references for postReference could not be retrieved.

SetSelfLabels(PostSelfLabels)

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

public PostBuilder SetSelfLabels(PostSelfLabels labels)

Parameters

labels PostSelfLabels

The self label values to set.

Returns

PostBuilder

This instance of idunno.Bluesky.PostBuilder.

Exceptions

ArgumentNullException

Thrown when labels is null.

SetSelfLabels(PostSelfLabels)

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

public PostBuilder SetSelfLabels(PostSelfLabels labels)

Parameters

labels PostSelfLabels

The self label values to set.

Returns

PostBuilder

This instance of idunno.Bluesky.PostBuilder.

Exceptions

ArgumentNullException

Thrown when labels is null.

SetSelfLabels(PostSelfLabels)

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

public PostBuilder SetSelfLabels(PostSelfLabels labels)

Parameters

labels PostSelfLabels

The self label values to set.

Returns

PostBuilder

This instance of idunno.Bluesky.PostBuilder.

Exceptions

ArgumentNullException

Thrown when labels is 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

text string

The text to set for the post.

Returns

PostBuilder

A reference to this instance after the operation has completed.

Exceptions

ArgumentException

Thrown when text is 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

text string

The text to set for the post.

Returns

PostBuilder

A reference to this instance after the operation has completed.

Exceptions

ArgumentException

Thrown when text is 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

text string

The text to set for the post.

Returns

PostBuilder

A reference to this instance after the operation has completed.

Exceptions

ArgumentException

Thrown when text is 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

postBuilder PostBuilder

The idunno.Bluesky.PostBuilder to add the string to.

s string

The string to append

Returns

PostBuilder

The postBuilder.

Exceptions

ArgumentNullException

Thrown when postBuilder is 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

postBuilder PostBuilder

The idunno.Bluesky.PostBuilder to add the character to.

c char

The character to append

Returns

PostBuilder

The postBuilder.

Exceptions

ArgumentNullException

Thrown when postBuilder is 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

postBuilder PostBuilder

The idunno.Bluesky.PostBuilder to add the mention to.

mention Mention

The idunno.Bluesky.RichText.Mention to add.

Returns

PostBuilder

The postBuilder.

Exceptions

ArgumentNullException

Thrown when postBuilder or mention is 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

postBuilder PostBuilder

The idunno.Bluesky.PostBuilder to add the hash tag to.

hashTag HashTag

The idunno.Bluesky.RichText.HashTag to add.

Returns

PostBuilder

The postBuilder.

Exceptions

ArgumentNullException

Thrown when postBuilder or hashTag is null.

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

postBuilder PostBuilder

The idunno.Bluesky.PostBuilder to add the link tag to.

link Link

The idunno.Bluesky.RichText.Link to add.

Returns

PostBuilder

The postBuilder.

Exceptions

ArgumentNullException

Thrown when postBuilder or link is null.

operator +(PostBuilder, EmbeddedImage)

Adds an idunno.Bluesky.Embed.EmbeddedImage to the specified postBuilder.

public static PostBuilder operator +(PostBuilder postBuilder, EmbeddedImage image)

Parameters

postBuilder PostBuilder

The idunno.Bluesky.PostBuilder to add the image to.

image EmbeddedImage

The idunno.Bluesky.Embed.EmbeddedImage to add.

Returns

PostBuilder

The postBuilder.

Exceptions

ArgumentNullException

Thrown when postBuilder or image is 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

postBuilder PostBuilder

The idunno.Bluesky.PostBuilder to add the images to.

images ICollection<EmbeddedImage>

The collection of idunno.Bluesky.Embed.EmbeddedImages to add.

Returns

PostBuilder

The postBuilder.

Exceptions

ArgumentNullException

Thrown when postBuilder or images is null.

Adds an idunno.Bluesky.Embed.Gallery.GalleryImage to the specified postBuilder.

public static PostBuilder operator +(PostBuilder postBuilder, GalleryImage image)

Parameters

postBuilder PostBuilder

The idunno.Bluesky.PostBuilder to add the image to.

image GalleryImage

The idunno.Bluesky.Embed.Gallery.GalleryImage to add.

Returns

PostBuilder

The postBuilder.

Exceptions

ArgumentNullException

Thrown when postBuilder or image is null.

Adds a collection of idunno.Bluesky.Embed.Gallery.GalleryImages to the specified postBuilder.

public static PostBuilder operator +(PostBuilder postBuilder, ICollection<GalleryImage> images)

Parameters

postBuilder PostBuilder

The idunno.Bluesky.PostBuilder to add the images to.

images ICollection<GalleryImage>

The collection of idunno.Bluesky.Embed.Gallery.GalleryImages to add.

Returns

PostBuilder

The postBuilder.

Exceptions

ArgumentNullException

Thrown when postBuilder or images is null.

operator +(PostBuilder, EmbeddedVideo)

Adds an idunno.Bluesky.Embed.EmbeddedVideo to the specified postBuilder.

public static PostBuilder operator +(PostBuilder postBuilder, EmbeddedVideo video)

Parameters

postBuilder PostBuilder

The idunno.Bluesky.PostBuilder to add the video to.

video EmbeddedVideo

The idunno.Bluesky.Embed.EmbeddedVideo to add.

Returns

PostBuilder

The postBuilder.

Exceptions

ArgumentNullException

Thrown when postBuilder or video is 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

postBuilder PostBuilder

The idunno.Bluesky.PostBuilder to add the strong reference to.

strongReference StrongReference

The idunno.AtProto.Repo.StrongReference to embed.

Returns

PostBuilder

The postBuilder.

Exceptions

ArgumentNullException

Thrown when postBuilder or strongReference is null.

operator +(PostBuilder, SelfLabel)

Adds a selfLabel to the specified postBuilder.

public static PostBuilder operator +(PostBuilder postBuilder, SelfLabel selfLabel)

Parameters

postBuilder PostBuilder

The idunno.Bluesky.PostBuilder to add the self label to.

selfLabel SelfLabel

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

postBuilder PostBuilder

The idunno.Bluesky.PostBuilder to add the string to.

s string

The string to append

Returns

PostBuilder

The postBuilder.

Exceptions

ArgumentNullException

Thrown when postBuilder is 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

postBuilder PostBuilder

The idunno.Bluesky.PostBuilder to add the character to.

c char

The character to append

Returns

PostBuilder

The postBuilder.

Exceptions

ArgumentNullException

Thrown when postBuilder is 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

postBuilder PostBuilder

The idunno.Bluesky.PostBuilder to add the mention to.

mention Mention

The idunno.Bluesky.RichText.Mention to add.

Returns

PostBuilder

The postBuilder.

Exceptions

ArgumentNullException

Thrown when postBuilder or mention is 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

postBuilder PostBuilder

The idunno.Bluesky.PostBuilder to add the hash tag to.

hashTag HashTag

The idunno.Bluesky.RichText.HashTag to add.

Returns

PostBuilder

The postBuilder.

Exceptions

ArgumentNullException

Thrown when postBuilder or hashTag is null.

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

postBuilder PostBuilder

The idunno.Bluesky.PostBuilder to add the link tag to.

link Link

The idunno.Bluesky.RichText.Link to add.

Returns

PostBuilder

The postBuilder.

Exceptions

ArgumentNullException

Thrown when postBuilder or link is null.

operator +(PostBuilder, EmbeddedImage)

Adds an idunno.Bluesky.Embed.EmbeddedImage to the specified postBuilder.

public static PostBuilder operator +(PostBuilder postBuilder, EmbeddedImage image)

Parameters

postBuilder PostBuilder

The idunno.Bluesky.PostBuilder to add the image to.

image EmbeddedImage

The idunno.Bluesky.Embed.EmbeddedImage to add.

Returns

PostBuilder

The postBuilder.

Exceptions

ArgumentNullException

Thrown when postBuilder or image is 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

postBuilder PostBuilder

The idunno.Bluesky.PostBuilder to add the images to.

images ICollection<EmbeddedImage>

The collection of idunno.Bluesky.Embed.EmbeddedImages to add.

Returns

PostBuilder

The postBuilder.

Exceptions

ArgumentNullException

Thrown when postBuilder or images is null.

Adds an idunno.Bluesky.Embed.Gallery.GalleryImage to the specified postBuilder.

public static PostBuilder operator +(PostBuilder postBuilder, GalleryImage image)

Parameters

postBuilder PostBuilder

The idunno.Bluesky.PostBuilder to add the image to.

image GalleryImage

The idunno.Bluesky.Embed.Gallery.GalleryImage to add.

Returns

PostBuilder

The postBuilder.

Exceptions

ArgumentNullException

Thrown when postBuilder or image is null.

Adds a collection of idunno.Bluesky.Embed.Gallery.GalleryImages to the specified postBuilder.

public static PostBuilder operator +(PostBuilder postBuilder, ICollection<GalleryImage> images)

Parameters

postBuilder PostBuilder

The idunno.Bluesky.PostBuilder to add the images to.

images ICollection<GalleryImage>

The collection of idunno.Bluesky.Embed.Gallery.GalleryImages to add.

Returns

PostBuilder

The postBuilder.

Exceptions

ArgumentNullException

Thrown when postBuilder or images is null.

operator +(PostBuilder, EmbeddedVideo)

Adds an idunno.Bluesky.Embed.EmbeddedVideo to the specified postBuilder.

public static PostBuilder operator +(PostBuilder postBuilder, EmbeddedVideo video)

Parameters

postBuilder PostBuilder

The idunno.Bluesky.PostBuilder to add the video to.

video EmbeddedVideo

The idunno.Bluesky.Embed.EmbeddedVideo to add.

Returns

PostBuilder

The postBuilder.

Exceptions

ArgumentNullException

Thrown when postBuilder or video is 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

postBuilder PostBuilder

The idunno.Bluesky.PostBuilder to add the strong reference to.

strongReference StrongReference

The idunno.AtProto.Repo.StrongReference to embed.

Returns

PostBuilder

The postBuilder.

Exceptions

ArgumentNullException

Thrown when postBuilder or strongReference is null.

operator +(PostBuilder, SelfLabel)

Adds a selfLabel to the specified postBuilder.

public static PostBuilder operator +(PostBuilder postBuilder, SelfLabel selfLabel)

Parameters

postBuilder PostBuilder

The idunno.Bluesky.PostBuilder to add the self label to.

selfLabel SelfLabel

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

postBuilder PostBuilder

The idunno.Bluesky.PostBuilder to add the string to.

s string

The string to append

Returns

PostBuilder

The postBuilder.

Exceptions

ArgumentNullException

Thrown when postBuilder is 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

postBuilder PostBuilder

The idunno.Bluesky.PostBuilder to add the character to.

c char

The character to append

Returns

PostBuilder

The postBuilder.

Exceptions

ArgumentNullException

Thrown when postBuilder is 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

postBuilder PostBuilder

The idunno.Bluesky.PostBuilder to add the mention to.

mention Mention

The idunno.Bluesky.RichText.Mention to add.

Returns

PostBuilder

The postBuilder.

Exceptions

ArgumentNullException

Thrown when postBuilder or mention is 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

postBuilder PostBuilder

The idunno.Bluesky.PostBuilder to add the hash tag to.

hashTag HashTag

The idunno.Bluesky.RichText.HashTag to add.

Returns

PostBuilder

The postBuilder.

Exceptions

ArgumentNullException

Thrown when postBuilder or hashTag is null.

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

postBuilder PostBuilder

The idunno.Bluesky.PostBuilder to add the link tag to.

link Link

The idunno.Bluesky.RichText.Link to add.

Returns

PostBuilder

The postBuilder.

Exceptions

ArgumentNullException

Thrown when postBuilder or link is null.

operator +(PostBuilder, EmbeddedImage)

Adds an idunno.Bluesky.Embed.EmbeddedImage to the specified postBuilder.

public static PostBuilder operator +(PostBuilder postBuilder, EmbeddedImage image)

Parameters

postBuilder PostBuilder

The idunno.Bluesky.PostBuilder to add the image to.

image EmbeddedImage

The idunno.Bluesky.Embed.EmbeddedImage to add.

Returns

PostBuilder

The postBuilder.

Exceptions

ArgumentNullException

Thrown when postBuilder or image is 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

postBuilder PostBuilder

The idunno.Bluesky.PostBuilder to add the images to.

images ICollection<EmbeddedImage>

The collection of idunno.Bluesky.Embed.EmbeddedImages to add.

Returns

PostBuilder

The postBuilder.

Exceptions

ArgumentNullException

Thrown when postBuilder or images is null.

Adds an idunno.Bluesky.Embed.Gallery.GalleryImage to the specified postBuilder.

public static PostBuilder operator +(PostBuilder postBuilder, GalleryImage image)

Parameters

postBuilder PostBuilder

The idunno.Bluesky.PostBuilder to add the image to.

image GalleryImage

The idunno.Bluesky.Embed.Gallery.GalleryImage to add.

Returns

PostBuilder

The postBuilder.

Exceptions

ArgumentNullException

Thrown when postBuilder or image is null.

Adds a collection of idunno.Bluesky.Embed.Gallery.GalleryImages to the specified postBuilder.

public static PostBuilder operator +(PostBuilder postBuilder, ICollection<GalleryImage> images)

Parameters

postBuilder PostBuilder

The idunno.Bluesky.PostBuilder to add the images to.

images ICollection<GalleryImage>

The collection of idunno.Bluesky.Embed.Gallery.GalleryImages to add.

Returns

PostBuilder

The postBuilder.

Exceptions

ArgumentNullException

Thrown when postBuilder or images is null.

operator +(PostBuilder, EmbeddedVideo)

Adds an idunno.Bluesky.Embed.EmbeddedVideo to the specified postBuilder.

public static PostBuilder operator +(PostBuilder postBuilder, EmbeddedVideo video)

Parameters

postBuilder PostBuilder

The idunno.Bluesky.PostBuilder to add the video to.

video EmbeddedVideo

The idunno.Bluesky.Embed.EmbeddedVideo to add.

Returns

PostBuilder

The postBuilder.

Exceptions

ArgumentNullException

Thrown when postBuilder or video is 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

postBuilder PostBuilder

The idunno.Bluesky.PostBuilder to add the strong reference to.

strongReference StrongReference

The idunno.AtProto.Repo.StrongReference to embed.

Returns

PostBuilder

The postBuilder.

Exceptions

ArgumentNullException

Thrown when postBuilder or strongReference is null.

operator +(PostBuilder, SelfLabel)

Adds a selfLabel to the specified postBuilder.

public static PostBuilder operator +(PostBuilder postBuilder, SelfLabel selfLabel)

Parameters

postBuilder PostBuilder

The idunno.Bluesky.PostBuilder to add the self label to.

selfLabel SelfLabel

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

lhs PostBuilder?

The first idunno.Bluesky.PostBuilder to compare, or null.

rhs PostBuilder?

The second idunno.Bluesky.PostBuilder to compare, or null.

Returns

bool

true if the value of lhs is the same as the value of rhs; otherwise, false.

operator ==(PostBuilder?, PostBuilder?)

Determines whether two specified idunno.Bluesky.PostBuilders the same value.

public static bool operator ==(PostBuilder? lhs, PostBuilder? rhs)

Parameters

lhs PostBuilder?

The first idunno.Bluesky.PostBuilder to compare, or null.

rhs PostBuilder?

The second idunno.Bluesky.PostBuilder to compare, or null.

Returns

bool

true if the value of lhs is the same as the value of rhs; otherwise, false.

operator ==(PostBuilder?, PostBuilder?)

Determines whether two specified idunno.Bluesky.PostBuilders the same value.

public static bool operator ==(PostBuilder? lhs, PostBuilder? rhs)

Parameters

lhs PostBuilder?

The first idunno.Bluesky.PostBuilder to compare, or null.

rhs PostBuilder?

The second idunno.Bluesky.PostBuilder to compare, or null.

Returns

bool

true if the value of lhs is the same as the value of rhs; otherwise, false.

implicit operator Post(PostBuilder)

Converts the specified postBuilder to a idunno.Bluesky.Post.

public static implicit operator Post(PostBuilder postBuilder)

Parameters

postBuilder PostBuilder

The idunno.Bluesky.PostBuilder to convert.

Returns

Post

A idunno.Bluesky.Post whose built from postBuilder.

Exceptions

ArgumentNullException

Thrown when postBuilder is null.

implicit operator Post(PostBuilder)

Converts the specified postBuilder to a idunno.Bluesky.Post.

public static implicit operator Post(PostBuilder postBuilder)

Parameters

postBuilder PostBuilder

The idunno.Bluesky.PostBuilder to convert.

Returns

Post

A idunno.Bluesky.Post whose built from postBuilder.

Exceptions

ArgumentNullException

Thrown when postBuilder is null.

implicit operator Post(PostBuilder)

Converts the specified postBuilder to a idunno.Bluesky.Post.

public static implicit operator Post(PostBuilder postBuilder)

Parameters

postBuilder PostBuilder

The idunno.Bluesky.PostBuilder to convert.

Returns

Post

A idunno.Bluesky.Post whose built from postBuilder.

Exceptions

ArgumentNullException

Thrown when postBuilder is 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

lhs PostBuilder?

The first idunno.Bluesky.PostBuilder to compare, or null.

rhs PostBuilder?

The second idunno.Bluesky.PostBuilder to compare, or null.

Returns

bool

true if the value of lhs is different to the value of rhs; otherwise, false.

operator !=(PostBuilder?, PostBuilder?)

Determines whether two specified idunno.Bluesky.PostBuilders dot not have same value."/>

public static bool operator !=(PostBuilder? lhs, PostBuilder? rhs)

Parameters

lhs PostBuilder?

The first idunno.Bluesky.PostBuilder to compare, or null.

rhs PostBuilder?

The second idunno.Bluesky.PostBuilder to compare, or null.

Returns

bool

true if the value of lhs is different to the value of rhs; otherwise, false.

operator !=(PostBuilder?, PostBuilder?)

Determines whether two specified idunno.Bluesky.PostBuilders dot not have same value."/>

public static bool operator !=(PostBuilder? lhs, PostBuilder? rhs)

Parameters

lhs PostBuilder?

The first idunno.Bluesky.PostBuilder to compare, or null.

rhs PostBuilder?

The second idunno.Bluesky.PostBuilder to compare, or null.

Returns

bool

true if the value of lhs is different to the value of rhs; otherwise, false.