Table of Contents

Class Post

Namespace
idunno.Bluesky
Assembly
idunno.Bluesky.dll

Encapsulates a Bluesky post record value.

[JsonPolymorphic(UnknownDerivedTypeHandling = JsonUnknownDerivedTypeHandling.FallBackToBaseType)]
[JsonDerivedType(typeof(Post), "app.bsky.feed.post")]
public record Post : BlueskyTimestampedRecord, IEquatable<AtProtoRecord>, IEquatable<BlueskyRecord>, IEquatable<BlueskyTimestampedRecord>, IEquatable<Post>

Inheritance

AtProtoRecord

Implements

Inherited Members

AtProtoRecord.Equals(AtProtoRecord?)
AtProtoRecord.GetHashCode()
AtProtoRecord.ToString()
AtProtoRecord.PrintMembers(StringBuilder)
AtProtoRecord.Equals(object?)
AtProtoRecord.<Clone>$()
AtProtoRecord.EqualityContract
AtProtoRecord.ExtensionData

Remarks

See post.json for the lexicon definition.

Constructors

Post()

Creates a new instance of idunno.Bluesky.Post and sets idunno.Bluesky.Record.BlueskyTimestampedRecord.CreatedAt to the current date and time.

public Post()

Post(string?, DateTimeOffset, ICollection<Facet>?, ICollection<string>?, EmbeddedBase?, ReplyReferences?, SelfLabels?, ICollection<string>?)

Creates a new instance of idunno.Bluesky.Post.

[JsonConstructor]
public Post(string? text, DateTimeOffset createdAt, ICollection<Facet>? facets = null, ICollection<string>? langs = null, EmbeddedBase? embeddedRecord = null, ReplyReferences? reply = null, SelfLabels? labels = null, ICollection<string>? tags = null)

Parameters

text string?

The text for the post.

createdAt DateTimeOffset

The System.DateTimeOffset the post was created on.

facets ICollection<Facet>?

A collection of idunno.Bluesky.RichText.Facets for the post.

langs ICollection<string>?

A collection of language strings, if any, that the post is written in.

embeddedRecord EmbeddedBase?

The embedded record for the post, if any.

reply ReplyReferences?

The idunno.Bluesky.ReplyReferences, if any, of the post this post is in reply to.

labels SelfLabels?

A collection of idunno.AtProto.Labels.SelfLabels to apply to the post, if any.

tags ICollection<string>?

A collection of tags to apply to the post, if any.

Remarks

text may be an empty string, if the embeddedRecord is not null.

Exceptions

ArgumentNullException

Thrown when both text and embeddedRecord are null.

ArgumentException

Thrown when a tag position is null or empty.

ArgumentOutOfRangeException

Thrown when text exceeds the maximum length or. tags exceeds the maximum number of tags or has a value that exceeds the maximum tag length.

Post(Post)

Creates a new instance of idunno.Bluesky.Post from the specified post.

public Post(Post post)

Parameters

post Post

The idunno.Bluesky.Post to create the new instance from.

Post(string, string)

Creates a new instance of idunno.Bluesky.Post.

public Post(string text, string lang)

Parameters

text string

The text for the post.

lang string

The language the post is written in.

Exceptions

ArgumentException

Thrown when text is null or empty, or lang is empty.

Post(string, ICollection<string>)

Creates a new instance of idunno.Bluesky.Post.

public Post(string text, ICollection<string> langs)

Parameters

text string

The text for the post.

langs ICollection<string>

The languages the post is written in.

Exceptions

ArgumentException

Thrown when text is null or empty.

ArgumentNullException

Thrown when langs is null.

ArgumentOutOfRangeException

Thrown when langs is empty.

Post(string?, ICollection<Facet>?, ICollection<string>?, EmbeddedBase?, ReplyReferences?, SelfLabels?, ICollection<string>?)

Creates a new instance of idunno.Bluesky.Post.

public Post(string? text, ICollection<Facet>? facets = null, ICollection<string>? langs = null, EmbeddedBase? embeddedRecord = null, ReplyReferences? reply = null, SelfLabels? labels = null, ICollection<string>? tags = null)

Parameters

text string?

The text for the post.

facets ICollection<Facet>?

A collection of idunno.Bluesky.RichText.Facets for the post.

langs ICollection<string>?

A collection of language strings, if any, that the post is written in.

embeddedRecord EmbeddedBase?

The embedded record for the post, if any.

reply ReplyReferences?

The idunno.Bluesky.ReplyReferences, if any, of the post this post is in reply to.

labels SelfLabels?

A collection of idunno.AtProto.Labels.SelfLabels to apply to the post, if any.

tags ICollection<string>?

A collection of tags to apply to the post, if any.

Remarks

text may be an empty string, if there are embeddedRecord is not null.

Exceptions

ArgumentNullException

Thrown when text is null and embeddedRecord is null.

ArgumentOutOfRangeException

Thrown when text exceeds the maximum length or. tags exceeds the maximum number of tags or has a value that exceeds the maximum tag length.

Post(string?, EmbeddedImage, ICollection<Facet>?, ICollection<string>?, ReplyReferences?, SelfLabels?, ICollection<string>?)

Creates a new instance of idunno.Bluesky.Post.

public Post(string? text, EmbeddedImage image, ICollection<Facet>? facets = null, ICollection<string>? langs = null, ReplyReferences? reply = null, SelfLabels? labels = null, ICollection<string>? tags = null)

Parameters

text string?

The text for the post.

image EmbeddedImage

The idunno.Bluesky.Embed.EmbeddedImage to embed in the post..

facets ICollection<Facet>?

A collection of idunno.Bluesky.RichText.Facets for the post.

langs ICollection<string>?

A collection of language strings, if any, that the post is written in.

reply ReplyReferences?

The idunno.Bluesky.ReplyReferences, if any, of the post this post is in reply to.

labels SelfLabels?

A collection of idunno.AtProto.Labels.SelfLabels to apply to the post, if any.

tags ICollection<string>?

A collection of tags to apply to the post, if any.

Exceptions

ArgumentNullException

Thrown when image is null.

Post(string?, DateTimeOffset, EmbeddedImage, ICollection<Facet>?, ICollection<string>?, ReplyReferences?, SelfLabels?, ICollection<string>?)

Creates a new instance of idunno.Bluesky.Post.

public Post(string? text, DateTimeOffset createdAt, EmbeddedImage image, ICollection<Facet>? facets = null, ICollection<string>? langs = null, ReplyReferences? reply = null, SelfLabels? labels = null, ICollection<string>? tags = null)

Parameters

text string?

The text for the post.

createdAt DateTimeOffset

The System.DateTimeOffset the post was created on.

image EmbeddedImage

The idunno.Bluesky.Embed.EmbeddedImage to embed in the post..

facets ICollection<Facet>?

A collection of idunno.Bluesky.RichText.Facets for the post.

langs ICollection<string>?

A collection of language strings, if any, that the post is written in.

reply ReplyReferences?

The idunno.Bluesky.ReplyReferences, if any, of the post this post is in reply to.

labels SelfLabels?

A collection of idunno.AtProto.Labels.SelfLabels to apply to the post, if any.

tags ICollection<string>?

A collection of tags to apply to the post, if any.

Exceptions

ArgumentNullException

Thrown when image is null.

Post(string?, ICollection<EmbeddedImage>, ICollection<Facet>?, ICollection<string>?, ReplyReferences?, SelfLabels?, ICollection<string>?)

Creates a new instance of idunno.Bluesky.Post.

public Post(string? text, ICollection<EmbeddedImage> images, ICollection<Facet>? facets = null, ICollection<string>? langs = null, ReplyReferences? reply = null, SelfLabels? labels = null, ICollection<string>? tags = null)

Parameters

text string?

The text for the post.

images ICollection<EmbeddedImage>

The idunno.Bluesky.Embed.EmbeddedImage to embed in the post..

facets ICollection<Facet>?

A collection of idunno.Bluesky.RichText.Facets for the post.

langs ICollection<string>?

A collection of language strings, if any, that the post is written in.

reply ReplyReferences?

The idunno.Bluesky.ReplyReferences, if any, of the post this post is in reply to.

labels SelfLabels?

A collection of idunno.AtProto.Labels.SelfLabels to apply to the post, if any.

tags ICollection<string>?

A collection of tags to apply to the post, if any.

Exceptions

ArgumentNullException

Thrown when images is null.

ArgumentOutOfRangeException

Thrown when images or empty, or contains more than the maximum allowed number of images.

ArgumentException

Thrown when images contains images without aspect ratios when more than the maximum allowed number of images are included.

Post(string?, DateTimeOffset, ICollection<EmbeddedImage>, ICollection<Facet>?, ICollection<string>?, ReplyReferences?, SelfLabels?, ICollection<string>?)

Creates a new instance of idunno.Bluesky.Post.

public Post(string? text, DateTimeOffset createdAt, ICollection<EmbeddedImage> images, ICollection<Facet>? facets = null, ICollection<string>? langs = null, ReplyReferences? reply = null, SelfLabels? labels = null, ICollection<string>? tags = null)

Parameters

text string?

The text for the post.

createdAt DateTimeOffset

The System.DateTimeOffset the post was created on.

images ICollection<EmbeddedImage>

The idunno.Bluesky.Embed.EmbeddedImage to embed in the post..

facets ICollection<Facet>?

A collection of idunno.Bluesky.RichText.Facets for the post.

langs ICollection<string>?

A collection of language strings, if any, that the post is written in.

reply ReplyReferences?

The idunno.Bluesky.ReplyReferences, if any, of the post this post is in reply to.

labels SelfLabels?

A collection of idunno.AtProto.Labels.SelfLabels to apply to the post, if any.

tags ICollection<string>?

A collection of tags to apply to the post, if any.

Exceptions

ArgumentNullException

Thrown when images is null.

ArgumentOutOfRangeException

Thrown when images or empty, or contains more than the maximum allowed number of images.

Post(string?, EmbeddedVideo, ICollection<Facet>?, ICollection<string>?, ReplyReferences?, SelfLabels?, ICollection<string>?)

Creates a new instance of idunno.Bluesky.Post.

public Post(string? text, EmbeddedVideo video, ICollection<Facet>? facets = null, ICollection<string>? langs = null, ReplyReferences? reply = null, SelfLabels? labels = null, ICollection<string>? tags = null)

Parameters

text string?

The text for the post.

video EmbeddedVideo

The idunno.Bluesky.Embed.EmbeddedVideo to embed in the post.

facets ICollection<Facet>?

A collection of idunno.Bluesky.RichText.Facets for the post.

langs ICollection<string>?

A collection of language strings, if any, that the post is written in.

reply ReplyReferences?

The idunno.Bluesky.ReplyReferences, if any, of the post this post is in reply to.

labels SelfLabels?

A collection of idunno.AtProto.Labels.SelfLabels to apply to the post, if any.

tags ICollection<string>?

A collection of tags to apply to the post, if any.

Exceptions

ArgumentNullException

Thrown when video is null.

Post(string?, DateTimeOffset, EmbeddedVideo, ICollection<Facet>?, ICollection<string>?, ReplyReferences?, SelfLabels?, ICollection<string>?)

Creates a new instance of idunno.Bluesky.Post.

public Post(string? text, DateTimeOffset createdAt, EmbeddedVideo video, ICollection<Facet>? facets = null, ICollection<string>? langs = null, ReplyReferences? reply = null, SelfLabels? labels = null, ICollection<string>? tags = null)

Parameters

text string?

The text for the post.

createdAt DateTimeOffset

The System.DateTimeOffset the post was created on.

video EmbeddedVideo

The idunno.Bluesky.Embed.EmbeddedVideo to embed in the post.

facets ICollection<Facet>?

A collection of idunno.Bluesky.RichText.Facets for the post.

langs ICollection<string>?

A collection of language strings, if any, that the post is written in.

reply ReplyReferences?

The idunno.Bluesky.ReplyReferences, if any, of the post this post is in reply to.

labels SelfLabels?

A collection of idunno.AtProto.Labels.SelfLabels to apply to the post, if any.

tags ICollection<string>?

A collection of tags to apply to the post, if any.

Exceptions

ArgumentNullException

Thrown when video is null.

Post(string?, DateTimeOffset, EmbeddedGallery, ICollection<Facet>?, ICollection<string>?, ReplyReferences?, SelfLabels?, ICollection<string>?)

Creates a new instance of idunno.Bluesky.Post.

public Post(string? text, DateTimeOffset createdAt, EmbeddedGallery gallery, ICollection<Facet>? facets = null, ICollection<string>? langs = null, ReplyReferences? reply = null, SelfLabels? labels = null, ICollection<string>? tags = null)

Parameters

text string?

The text for the post.

createdAt DateTimeOffset

The System.DateTimeOffset the post was created on.

gallery EmbeddedGallery

The idunno.Bluesky.Embed.EmbeddedGallery to embed in the post.

facets ICollection<Facet>?

A collection of idunno.Bluesky.RichText.Facets for the post.

langs ICollection<string>?

A collection of language strings, if any, that the post is written in.

reply ReplyReferences?

The idunno.Bluesky.ReplyReferences, if any, of the post this post is in reply to.

labels SelfLabels?

A collection of idunno.AtProto.Labels.SelfLabels to apply to the post, if any.

tags ICollection<string>?

A collection of tags to apply to the post, if any.

Exceptions

ArgumentNullException

Thrown when gallery is null.

Post(string?, EmbeddedGallery, ICollection<Facet>?, ICollection<string>?, ReplyReferences?, SelfLabels?, ICollection<string>?)

Creates a new instance of idunno.Bluesky.Post.

public Post(string? text, EmbeddedGallery gallery, ICollection<Facet>? facets = null, ICollection<string>? langs = null, ReplyReferences? reply = null, SelfLabels? labels = null, ICollection<string>? tags = null)

Parameters

text string?

The text for the post.

gallery EmbeddedGallery

The idunno.Bluesky.Embed.EmbeddedGallery to embed in the post.

facets ICollection<Facet>?

A collection of idunno.Bluesky.RichText.Facets for the post.

langs ICollection<string>?

A collection of language strings, if any, that the post is written in.

reply ReplyReferences?

The idunno.Bluesky.ReplyReferences, if any, of the post this post is in reply to.

labels SelfLabels?

A collection of idunno.AtProto.Labels.SelfLabels to apply to the post, if any.

tags ICollection<string>?

A collection of tags to apply to the post, if any.

Exceptions

ArgumentNullException

Thrown when gallery is null.

Post()

Creates a new instance of idunno.Bluesky.Post and sets idunno.Bluesky.Record.BlueskyTimestampedRecord.CreatedAt to the current date and time.

public Post()

Post(string?, DateTimeOffset, ICollection<Facet>?, ICollection<string>?, EmbeddedBase?, ReplyReferences?, SelfLabels?, ICollection<string>?)

Creates a new instance of idunno.Bluesky.Post.

[JsonConstructor]
public Post(string? text, DateTimeOffset createdAt, ICollection<Facet>? facets = null, ICollection<string>? langs = null, EmbeddedBase? embeddedRecord = null, ReplyReferences? reply = null, SelfLabels? labels = null, ICollection<string>? tags = null)

Parameters

text string?

The text for the post.

createdAt DateTimeOffset

The System.DateTimeOffset the post was created on.

facets ICollection<Facet>?

A collection of idunno.Bluesky.RichText.Facets for the post.

langs ICollection<string>?

A collection of language strings, if any, that the post is written in.

embeddedRecord EmbeddedBase?

The embedded record for the post, if any.

reply ReplyReferences?

The idunno.Bluesky.ReplyReferences, if any, of the post this post is in reply to.

labels SelfLabels?

A collection of idunno.AtProto.Labels.SelfLabels to apply to the post, if any.

tags ICollection<string>?

A collection of tags to apply to the post, if any.

Remarks

text may be an empty string, if the embeddedRecord is not null.

Exceptions

ArgumentNullException

Thrown when both text and embeddedRecord are null.

ArgumentException

Thrown when a tag position is null or empty.

ArgumentOutOfRangeException

Thrown when text exceeds the maximum length or. tags exceeds the maximum number of tags or has a value that exceeds the maximum tag length.

Post(Post)

Creates a new instance of idunno.Bluesky.Post from the specified post.

public Post(Post post)

Parameters

post Post

The idunno.Bluesky.Post to create the new instance from.

Post(string, string)

Creates a new instance of idunno.Bluesky.Post.

public Post(string text, string lang)

Parameters

text string

The text for the post.

lang string

The language the post is written in.

Exceptions

ArgumentException

Thrown when text is null or empty, or lang is empty.

Post(string, ICollection<string>)

Creates a new instance of idunno.Bluesky.Post.

public Post(string text, ICollection<string> langs)

Parameters

text string

The text for the post.

langs ICollection<string>

The languages the post is written in.

Exceptions

ArgumentException

Thrown when text is null or empty.

ArgumentNullException

Thrown when langs is null.

ArgumentOutOfRangeException

Thrown when langs is empty.

Post(string?, ICollection<Facet>?, ICollection<string>?, EmbeddedBase?, ReplyReferences?, SelfLabels?, ICollection<string>?)

Creates a new instance of idunno.Bluesky.Post.

public Post(string? text, ICollection<Facet>? facets = null, ICollection<string>? langs = null, EmbeddedBase? embeddedRecord = null, ReplyReferences? reply = null, SelfLabels? labels = null, ICollection<string>? tags = null)

Parameters

text string?

The text for the post.

facets ICollection<Facet>?

A collection of idunno.Bluesky.RichText.Facets for the post.

langs ICollection<string>?

A collection of language strings, if any, that the post is written in.

embeddedRecord EmbeddedBase?

The embedded record for the post, if any.

reply ReplyReferences?

The idunno.Bluesky.ReplyReferences, if any, of the post this post is in reply to.

labels SelfLabels?

A collection of idunno.AtProto.Labels.SelfLabels to apply to the post, if any.

tags ICollection<string>?

A collection of tags to apply to the post, if any.

Remarks

text may be an empty string, if there are embeddedRecord is not null.

Exceptions

ArgumentNullException

Thrown when text is null and embeddedRecord is null.

ArgumentOutOfRangeException

Thrown when text exceeds the maximum length or. tags exceeds the maximum number of tags or has a value that exceeds the maximum tag length.

Post(string?, EmbeddedImage, ICollection<Facet>?, ICollection<string>?, ReplyReferences?, SelfLabels?, ICollection<string>?)

Creates a new instance of idunno.Bluesky.Post.

public Post(string? text, EmbeddedImage image, ICollection<Facet>? facets = null, ICollection<string>? langs = null, ReplyReferences? reply = null, SelfLabels? labels = null, ICollection<string>? tags = null)

Parameters

text string?

The text for the post.

image EmbeddedImage

The idunno.Bluesky.Embed.EmbeddedImage to embed in the post..

facets ICollection<Facet>?

A collection of idunno.Bluesky.RichText.Facets for the post.

langs ICollection<string>?

A collection of language strings, if any, that the post is written in.

reply ReplyReferences?

The idunno.Bluesky.ReplyReferences, if any, of the post this post is in reply to.

labels SelfLabels?

A collection of idunno.AtProto.Labels.SelfLabels to apply to the post, if any.

tags ICollection<string>?

A collection of tags to apply to the post, if any.

Exceptions

ArgumentNullException

Thrown when image is null.

Post(string?, DateTimeOffset, EmbeddedImage, ICollection<Facet>?, ICollection<string>?, ReplyReferences?, SelfLabels?, ICollection<string>?)

Creates a new instance of idunno.Bluesky.Post.

public Post(string? text, DateTimeOffset createdAt, EmbeddedImage image, ICollection<Facet>? facets = null, ICollection<string>? langs = null, ReplyReferences? reply = null, SelfLabels? labels = null, ICollection<string>? tags = null)

Parameters

text string?

The text for the post.

createdAt DateTimeOffset

The System.DateTimeOffset the post was created on.

image EmbeddedImage

The idunno.Bluesky.Embed.EmbeddedImage to embed in the post..

facets ICollection<Facet>?

A collection of idunno.Bluesky.RichText.Facets for the post.

langs ICollection<string>?

A collection of language strings, if any, that the post is written in.

reply ReplyReferences?

The idunno.Bluesky.ReplyReferences, if any, of the post this post is in reply to.

labels SelfLabels?

A collection of idunno.AtProto.Labels.SelfLabels to apply to the post, if any.

tags ICollection<string>?

A collection of tags to apply to the post, if any.

Exceptions

ArgumentNullException

Thrown when image is null.

Post(string?, ICollection<EmbeddedImage>, ICollection<Facet>?, ICollection<string>?, ReplyReferences?, SelfLabels?, ICollection<string>?)

Creates a new instance of idunno.Bluesky.Post.

public Post(string? text, ICollection<EmbeddedImage> images, ICollection<Facet>? facets = null, ICollection<string>? langs = null, ReplyReferences? reply = null, SelfLabels? labels = null, ICollection<string>? tags = null)

Parameters

text string?

The text for the post.

images ICollection<EmbeddedImage>

The idunno.Bluesky.Embed.EmbeddedImage to embed in the post..

facets ICollection<Facet>?

A collection of idunno.Bluesky.RichText.Facets for the post.

langs ICollection<string>?

A collection of language strings, if any, that the post is written in.

reply ReplyReferences?

The idunno.Bluesky.ReplyReferences, if any, of the post this post is in reply to.

labels SelfLabels?

A collection of idunno.AtProto.Labels.SelfLabels to apply to the post, if any.

tags ICollection<string>?

A collection of tags to apply to the post, if any.

Exceptions

ArgumentNullException

Thrown when images is null.

ArgumentOutOfRangeException

Thrown when images or empty, or contains more than the maximum allowed number of images.

ArgumentException

Thrown when images contains images without aspect ratios when more than the maximum allowed number of images are included.

Post(string?, DateTimeOffset, ICollection<EmbeddedImage>, ICollection<Facet>?, ICollection<string>?, ReplyReferences?, SelfLabels?, ICollection<string>?)

Creates a new instance of idunno.Bluesky.Post.

public Post(string? text, DateTimeOffset createdAt, ICollection<EmbeddedImage> images, ICollection<Facet>? facets = null, ICollection<string>? langs = null, ReplyReferences? reply = null, SelfLabels? labels = null, ICollection<string>? tags = null)

Parameters

text string?

The text for the post.

createdAt DateTimeOffset

The System.DateTimeOffset the post was created on.

images ICollection<EmbeddedImage>

The idunno.Bluesky.Embed.EmbeddedImage to embed in the post..

facets ICollection<Facet>?

A collection of idunno.Bluesky.RichText.Facets for the post.

langs ICollection<string>?

A collection of language strings, if any, that the post is written in.

reply ReplyReferences?

The idunno.Bluesky.ReplyReferences, if any, of the post this post is in reply to.

labels SelfLabels?

A collection of idunno.AtProto.Labels.SelfLabels to apply to the post, if any.

tags ICollection<string>?

A collection of tags to apply to the post, if any.

Exceptions

ArgumentNullException

Thrown when images is null.

ArgumentOutOfRangeException

Thrown when images or empty, or contains more than the maximum allowed number of images.

Post(string?, EmbeddedVideo, ICollection<Facet>?, ICollection<string>?, ReplyReferences?, SelfLabels?, ICollection<string>?)

Creates a new instance of idunno.Bluesky.Post.

public Post(string? text, EmbeddedVideo video, ICollection<Facet>? facets = null, ICollection<string>? langs = null, ReplyReferences? reply = null, SelfLabels? labels = null, ICollection<string>? tags = null)

Parameters

text string?

The text for the post.

video EmbeddedVideo

The idunno.Bluesky.Embed.EmbeddedVideo to embed in the post.

facets ICollection<Facet>?

A collection of idunno.Bluesky.RichText.Facets for the post.

langs ICollection<string>?

A collection of language strings, if any, that the post is written in.

reply ReplyReferences?

The idunno.Bluesky.ReplyReferences, if any, of the post this post is in reply to.

labels SelfLabels?

A collection of idunno.AtProto.Labels.SelfLabels to apply to the post, if any.

tags ICollection<string>?

A collection of tags to apply to the post, if any.

Exceptions

ArgumentNullException

Thrown when video is null.

Post(string?, DateTimeOffset, EmbeddedVideo, ICollection<Facet>?, ICollection<string>?, ReplyReferences?, SelfLabels?, ICollection<string>?)

Creates a new instance of idunno.Bluesky.Post.

public Post(string? text, DateTimeOffset createdAt, EmbeddedVideo video, ICollection<Facet>? facets = null, ICollection<string>? langs = null, ReplyReferences? reply = null, SelfLabels? labels = null, ICollection<string>? tags = null)

Parameters

text string?

The text for the post.

createdAt DateTimeOffset

The System.DateTimeOffset the post was created on.

video EmbeddedVideo

The idunno.Bluesky.Embed.EmbeddedVideo to embed in the post.

facets ICollection<Facet>?

A collection of idunno.Bluesky.RichText.Facets for the post.

langs ICollection<string>?

A collection of language strings, if any, that the post is written in.

reply ReplyReferences?

The idunno.Bluesky.ReplyReferences, if any, of the post this post is in reply to.

labels SelfLabels?

A collection of idunno.AtProto.Labels.SelfLabels to apply to the post, if any.

tags ICollection<string>?

A collection of tags to apply to the post, if any.

Exceptions

ArgumentNullException

Thrown when video is null.

Post(string?, DateTimeOffset, EmbeddedGallery, ICollection<Facet>?, ICollection<string>?, ReplyReferences?, SelfLabels?, ICollection<string>?)

Creates a new instance of idunno.Bluesky.Post.

public Post(string? text, DateTimeOffset createdAt, EmbeddedGallery gallery, ICollection<Facet>? facets = null, ICollection<string>? langs = null, ReplyReferences? reply = null, SelfLabels? labels = null, ICollection<string>? tags = null)

Parameters

text string?

The text for the post.

createdAt DateTimeOffset

The System.DateTimeOffset the post was created on.

gallery EmbeddedGallery

The idunno.Bluesky.Embed.EmbeddedGallery to embed in the post.

facets ICollection<Facet>?

A collection of idunno.Bluesky.RichText.Facets for the post.

langs ICollection<string>?

A collection of language strings, if any, that the post is written in.

reply ReplyReferences?

The idunno.Bluesky.ReplyReferences, if any, of the post this post is in reply to.

labels SelfLabels?

A collection of idunno.AtProto.Labels.SelfLabels to apply to the post, if any.

tags ICollection<string>?

A collection of tags to apply to the post, if any.

Exceptions

ArgumentNullException

Thrown when gallery is null.

Post(string?, EmbeddedGallery, ICollection<Facet>?, ICollection<string>?, ReplyReferences?, SelfLabels?, ICollection<string>?)

Creates a new instance of idunno.Bluesky.Post.

public Post(string? text, EmbeddedGallery gallery, ICollection<Facet>? facets = null, ICollection<string>? langs = null, ReplyReferences? reply = null, SelfLabels? labels = null, ICollection<string>? tags = null)

Parameters

text string?

The text for the post.

gallery EmbeddedGallery

The idunno.Bluesky.Embed.EmbeddedGallery to embed in the post.

facets ICollection<Facet>?

A collection of idunno.Bluesky.RichText.Facets for the post.

langs ICollection<string>?

A collection of language strings, if any, that the post is written in.

reply ReplyReferences?

The idunno.Bluesky.ReplyReferences, if any, of the post this post is in reply to.

labels SelfLabels?

A collection of idunno.AtProto.Labels.SelfLabels to apply to the post, if any.

tags ICollection<string>?

A collection of tags to apply to the post, if any.

Exceptions

ArgumentNullException

Thrown when gallery is null.

Post()

Creates a new instance of idunno.Bluesky.Post and sets idunno.Bluesky.Record.BlueskyTimestampedRecord.CreatedAt to the current date and time.

public Post()

Post(string?, DateTimeOffset, ICollection<Facet>?, ICollection<string>?, EmbeddedBase?, ReplyReferences?, SelfLabels?, ICollection<string>?)

Creates a new instance of idunno.Bluesky.Post.

[JsonConstructor]
public Post(string? text, DateTimeOffset createdAt, ICollection<Facet>? facets = null, ICollection<string>? langs = null, EmbeddedBase? embeddedRecord = null, ReplyReferences? reply = null, SelfLabels? labels = null, ICollection<string>? tags = null)

Parameters

text string?

The text for the post.

createdAt DateTimeOffset

The System.DateTimeOffset the post was created on.

facets ICollection<Facet>?

A collection of idunno.Bluesky.RichText.Facets for the post.

langs ICollection<string>?

A collection of language strings, if any, that the post is written in.

embeddedRecord EmbeddedBase?

The embedded record for the post, if any.

reply ReplyReferences?

The idunno.Bluesky.ReplyReferences, if any, of the post this post is in reply to.

labels SelfLabels?

A collection of idunno.AtProto.Labels.SelfLabels to apply to the post, if any.

tags ICollection<string>?

A collection of tags to apply to the post, if any.

Remarks

text may be an empty string, if the embeddedRecord is not null.

Exceptions

ArgumentNullException

Thrown when both text and embeddedRecord are null.

ArgumentException

Thrown when a tag position is null or empty.

ArgumentOutOfRangeException

Thrown when text exceeds the maximum length or. tags exceeds the maximum number of tags or has a value that exceeds the maximum tag length.

Post(Post)

Creates a new instance of idunno.Bluesky.Post from the specified post.

public Post(Post post)

Parameters

post Post

The idunno.Bluesky.Post to create the new instance from.

Post(string, string)

Creates a new instance of idunno.Bluesky.Post.

public Post(string text, string lang)

Parameters

text string

The text for the post.

lang string

The language the post is written in.

Exceptions

ArgumentException

Thrown when text is null or empty, or lang is empty.

Post(string, ICollection<string>)

Creates a new instance of idunno.Bluesky.Post.

public Post(string text, ICollection<string> langs)

Parameters

text string

The text for the post.

langs ICollection<string>

The languages the post is written in.

Exceptions

ArgumentException

Thrown when text is null or empty.

ArgumentNullException

Thrown when langs is null.

ArgumentOutOfRangeException

Thrown when langs is empty.

Post(string?, ICollection<Facet>?, ICollection<string>?, EmbeddedBase?, ReplyReferences?, SelfLabels?, ICollection<string>?)

Creates a new instance of idunno.Bluesky.Post.

public Post(string? text, ICollection<Facet>? facets = null, ICollection<string>? langs = null, EmbeddedBase? embeddedRecord = null, ReplyReferences? reply = null, SelfLabels? labels = null, ICollection<string>? tags = null)

Parameters

text string?

The text for the post.

facets ICollection<Facet>?

A collection of idunno.Bluesky.RichText.Facets for the post.

langs ICollection<string>?

A collection of language strings, if any, that the post is written in.

embeddedRecord EmbeddedBase?

The embedded record for the post, if any.

reply ReplyReferences?

The idunno.Bluesky.ReplyReferences, if any, of the post this post is in reply to.

labels SelfLabels?

A collection of idunno.AtProto.Labels.SelfLabels to apply to the post, if any.

tags ICollection<string>?

A collection of tags to apply to the post, if any.

Remarks

text may be an empty string, if there are embeddedRecord is not null.

Exceptions

ArgumentNullException

Thrown when text is null and embeddedRecord is null.

ArgumentOutOfRangeException

Thrown when text exceeds the maximum length or. tags exceeds the maximum number of tags or has a value that exceeds the maximum tag length.

Post(string?, EmbeddedImage, ICollection<Facet>?, ICollection<string>?, ReplyReferences?, SelfLabels?, ICollection<string>?)

Creates a new instance of idunno.Bluesky.Post.

public Post(string? text, EmbeddedImage image, ICollection<Facet>? facets = null, ICollection<string>? langs = null, ReplyReferences? reply = null, SelfLabels? labels = null, ICollection<string>? tags = null)

Parameters

text string?

The text for the post.

image EmbeddedImage

The idunno.Bluesky.Embed.EmbeddedImage to embed in the post..

facets ICollection<Facet>?

A collection of idunno.Bluesky.RichText.Facets for the post.

langs ICollection<string>?

A collection of language strings, if any, that the post is written in.

reply ReplyReferences?

The idunno.Bluesky.ReplyReferences, if any, of the post this post is in reply to.

labels SelfLabels?

A collection of idunno.AtProto.Labels.SelfLabels to apply to the post, if any.

tags ICollection<string>?

A collection of tags to apply to the post, if any.

Exceptions

ArgumentNullException

Thrown when image is null.

Post(string?, DateTimeOffset, EmbeddedImage, ICollection<Facet>?, ICollection<string>?, ReplyReferences?, SelfLabels?, ICollection<string>?)

Creates a new instance of idunno.Bluesky.Post.

public Post(string? text, DateTimeOffset createdAt, EmbeddedImage image, ICollection<Facet>? facets = null, ICollection<string>? langs = null, ReplyReferences? reply = null, SelfLabels? labels = null, ICollection<string>? tags = null)

Parameters

text string?

The text for the post.

createdAt DateTimeOffset

The System.DateTimeOffset the post was created on.

image EmbeddedImage

The idunno.Bluesky.Embed.EmbeddedImage to embed in the post..

facets ICollection<Facet>?

A collection of idunno.Bluesky.RichText.Facets for the post.

langs ICollection<string>?

A collection of language strings, if any, that the post is written in.

reply ReplyReferences?

The idunno.Bluesky.ReplyReferences, if any, of the post this post is in reply to.

labels SelfLabels?

A collection of idunno.AtProto.Labels.SelfLabels to apply to the post, if any.

tags ICollection<string>?

A collection of tags to apply to the post, if any.

Exceptions

ArgumentNullException

Thrown when image is null.

Post(string?, ICollection<EmbeddedImage>, ICollection<Facet>?, ICollection<string>?, ReplyReferences?, SelfLabels?, ICollection<string>?)

Creates a new instance of idunno.Bluesky.Post.

public Post(string? text, ICollection<EmbeddedImage> images, ICollection<Facet>? facets = null, ICollection<string>? langs = null, ReplyReferences? reply = null, SelfLabels? labels = null, ICollection<string>? tags = null)

Parameters

text string?

The text for the post.

images ICollection<EmbeddedImage>

The idunno.Bluesky.Embed.EmbeddedImage to embed in the post..

facets ICollection<Facet>?

A collection of idunno.Bluesky.RichText.Facets for the post.

langs ICollection<string>?

A collection of language strings, if any, that the post is written in.

reply ReplyReferences?

The idunno.Bluesky.ReplyReferences, if any, of the post this post is in reply to.

labels SelfLabels?

A collection of idunno.AtProto.Labels.SelfLabels to apply to the post, if any.

tags ICollection<string>?

A collection of tags to apply to the post, if any.

Exceptions

ArgumentNullException

Thrown when images is null.

ArgumentOutOfRangeException

Thrown when images or empty, or contains more than the maximum allowed number of images.

ArgumentException

Thrown when images contains images without aspect ratios when more than the maximum allowed number of images are included.

Post(string?, DateTimeOffset, ICollection<EmbeddedImage>, ICollection<Facet>?, ICollection<string>?, ReplyReferences?, SelfLabels?, ICollection<string>?)

Creates a new instance of idunno.Bluesky.Post.

public Post(string? text, DateTimeOffset createdAt, ICollection<EmbeddedImage> images, ICollection<Facet>? facets = null, ICollection<string>? langs = null, ReplyReferences? reply = null, SelfLabels? labels = null, ICollection<string>? tags = null)

Parameters

text string?

The text for the post.

createdAt DateTimeOffset

The System.DateTimeOffset the post was created on.

images ICollection<EmbeddedImage>

The idunno.Bluesky.Embed.EmbeddedImage to embed in the post..

facets ICollection<Facet>?

A collection of idunno.Bluesky.RichText.Facets for the post.

langs ICollection<string>?

A collection of language strings, if any, that the post is written in.

reply ReplyReferences?

The idunno.Bluesky.ReplyReferences, if any, of the post this post is in reply to.

labels SelfLabels?

A collection of idunno.AtProto.Labels.SelfLabels to apply to the post, if any.

tags ICollection<string>?

A collection of tags to apply to the post, if any.

Exceptions

ArgumentNullException

Thrown when images is null.

ArgumentOutOfRangeException

Thrown when images or empty, or contains more than the maximum allowed number of images.

Post(string?, EmbeddedVideo, ICollection<Facet>?, ICollection<string>?, ReplyReferences?, SelfLabels?, ICollection<string>?)

Creates a new instance of idunno.Bluesky.Post.

public Post(string? text, EmbeddedVideo video, ICollection<Facet>? facets = null, ICollection<string>? langs = null, ReplyReferences? reply = null, SelfLabels? labels = null, ICollection<string>? tags = null)

Parameters

text string?

The text for the post.

video EmbeddedVideo

The idunno.Bluesky.Embed.EmbeddedVideo to embed in the post.

facets ICollection<Facet>?

A collection of idunno.Bluesky.RichText.Facets for the post.

langs ICollection<string>?

A collection of language strings, if any, that the post is written in.

reply ReplyReferences?

The idunno.Bluesky.ReplyReferences, if any, of the post this post is in reply to.

labels SelfLabels?

A collection of idunno.AtProto.Labels.SelfLabels to apply to the post, if any.

tags ICollection<string>?

A collection of tags to apply to the post, if any.

Exceptions

ArgumentNullException

Thrown when video is null.

Post(string?, DateTimeOffset, EmbeddedVideo, ICollection<Facet>?, ICollection<string>?, ReplyReferences?, SelfLabels?, ICollection<string>?)

Creates a new instance of idunno.Bluesky.Post.

public Post(string? text, DateTimeOffset createdAt, EmbeddedVideo video, ICollection<Facet>? facets = null, ICollection<string>? langs = null, ReplyReferences? reply = null, SelfLabels? labels = null, ICollection<string>? tags = null)

Parameters

text string?

The text for the post.

createdAt DateTimeOffset

The System.DateTimeOffset the post was created on.

video EmbeddedVideo

The idunno.Bluesky.Embed.EmbeddedVideo to embed in the post.

facets ICollection<Facet>?

A collection of idunno.Bluesky.RichText.Facets for the post.

langs ICollection<string>?

A collection of language strings, if any, that the post is written in.

reply ReplyReferences?

The idunno.Bluesky.ReplyReferences, if any, of the post this post is in reply to.

labels SelfLabels?

A collection of idunno.AtProto.Labels.SelfLabels to apply to the post, if any.

tags ICollection<string>?

A collection of tags to apply to the post, if any.

Exceptions

ArgumentNullException

Thrown when video is null.

Post(string?, DateTimeOffset, EmbeddedGallery, ICollection<Facet>?, ICollection<string>?, ReplyReferences?, SelfLabels?, ICollection<string>?)

Creates a new instance of idunno.Bluesky.Post.

public Post(string? text, DateTimeOffset createdAt, EmbeddedGallery gallery, ICollection<Facet>? facets = null, ICollection<string>? langs = null, ReplyReferences? reply = null, SelfLabels? labels = null, ICollection<string>? tags = null)

Parameters

text string?

The text for the post.

createdAt DateTimeOffset

The System.DateTimeOffset the post was created on.

gallery EmbeddedGallery

The idunno.Bluesky.Embed.EmbeddedGallery to embed in the post.

facets ICollection<Facet>?

A collection of idunno.Bluesky.RichText.Facets for the post.

langs ICollection<string>?

A collection of language strings, if any, that the post is written in.

reply ReplyReferences?

The idunno.Bluesky.ReplyReferences, if any, of the post this post is in reply to.

labels SelfLabels?

A collection of idunno.AtProto.Labels.SelfLabels to apply to the post, if any.

tags ICollection<string>?

A collection of tags to apply to the post, if any.

Exceptions

ArgumentNullException

Thrown when gallery is null.

Post(string?, EmbeddedGallery, ICollection<Facet>?, ICollection<string>?, ReplyReferences?, SelfLabels?, ICollection<string>?)

Creates a new instance of idunno.Bluesky.Post.

public Post(string? text, EmbeddedGallery gallery, ICollection<Facet>? facets = null, ICollection<string>? langs = null, ReplyReferences? reply = null, SelfLabels? labels = null, ICollection<string>? tags = null)

Parameters

text string?

The text for the post.

gallery EmbeddedGallery

The idunno.Bluesky.Embed.EmbeddedGallery to embed in the post.

facets ICollection<Facet>?

A collection of idunno.Bluesky.RichText.Facets for the post.

langs ICollection<string>?

A collection of language strings, if any, that the post is written in.

reply ReplyReferences?

The idunno.Bluesky.ReplyReferences, if any, of the post this post is in reply to.

labels SelfLabels?

A collection of idunno.AtProto.Labels.SelfLabels to apply to the post, if any.

tags ICollection<string>?

A collection of tags to apply to the post, if any.

Exceptions

ArgumentNullException

Thrown when gallery is null.

Properties

ContainsGraphicMedia

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

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

Property Value

bool

ContainsGraphicMedia

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

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

Property Value

bool

ContainsGraphicMedia

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

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

Property Value

bool

ContainsNudity

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

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

Property Value

bool

ContainsNudity

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

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

Property Value

bool

ContainsNudity

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

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

Property Value

bool

ContainsPorn

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

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

Property Value

bool

ContainsPorn

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

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

Property Value

bool

ContainsPorn

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

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

Property Value

bool

ContainsSexualContent

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

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

Property Value

bool

ContainsSexualContent

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

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

Property Value

bool

ContainsSexualContent

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

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

Property Value

bool

EmbeddedRecord

Gets the embedded record for the post, if any.

[JsonInclude]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("embed")]
public EmbeddedBase? EmbeddedRecord { get; }

Property Value

EmbeddedBase?

EmbeddedRecord

Gets the embedded record for the post, if any.

[JsonInclude]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("embed")]
public EmbeddedBase? EmbeddedRecord { get; }

Property Value

EmbeddedBase?

EmbeddedRecord

Gets the embedded record for the post, if any.

[JsonInclude]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("embed")]
public EmbeddedBase? EmbeddedRecord { get; }

Property Value

EmbeddedBase?

EqualityContract

protected override Type EqualityContract { get; }

Property Value

Type

EqualityContract

protected override Type EqualityContract { get; }

Property Value

Type

EqualityContract

protected override Type EqualityContract { get; }

Property Value

Type

Facets

Gets a list of idunno.Bluesky.RichText.Facets for the post, if any.

[JsonInclude]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public ICollection<Facet>? Facets { get; }

Property Value

ICollection<Facet>?

Facets

Gets a list of idunno.Bluesky.RichText.Facets for the post, if any.

[JsonInclude]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public ICollection<Facet>? Facets { get; }

Property Value

ICollection<Facet>?

Facets

Gets a list of idunno.Bluesky.RichText.Facets for the post, if any.

[JsonInclude]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public ICollection<Facet>? Facets { get; }

Property Value

ICollection<Facet>?

GraphemeLength

Gets the number of graphemes in the post.

[JsonIgnore]
public int GraphemeLength { get; }

Property Value

int

GraphemeLength

Gets the number of graphemes in the post.

[JsonIgnore]
public int GraphemeLength { get; }

Property Value

int

GraphemeLength

Gets the number of graphemes in the post.

[JsonIgnore]
public int GraphemeLength { get; }

Property Value

int

Labels

A collection of idunno.AtProto.Labels.SelfLabels to apply to the post, if any.

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

Property Value

SelfLabels?

Remarks

Post self labels can only be one of the known global values.

Labels

A collection of idunno.AtProto.Labels.SelfLabels to apply to the post, if any.

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

Property Value

SelfLabels?

Remarks

Post self labels can only be one of the known global values.

Labels

A collection of idunno.AtProto.Labels.SelfLabels to apply to the post, if any.

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

Property Value

SelfLabels?

Remarks

Post self labels can only be one of the known global values.

Langs

Gets the collection of language strings, if any, that the post is written in.

[JsonInclude]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public ICollection<string>? Langs { get; }

Property Value

ICollection<string>?

Langs

Gets the collection of language strings, if any, that the post is written in.

[JsonInclude]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public ICollection<string>? Langs { get; }

Property Value

ICollection<string>?

Langs

Gets the collection of language strings, if any, that the post is written in.

[JsonInclude]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public ICollection<string>? Langs { get; }

Property Value

ICollection<string>?

Length

Gets the number of characters in the post.

[JsonIgnore]
public int Length { get; }

Property Value

int

Length

Gets the number of characters in the post.

[JsonIgnore]
public int Length { get; }

Property Value

int

Length

Gets the number of characters in the post.

[JsonIgnore]
public int Length { get; }

Property Value

int

Reply

The idunno.Bluesky.ReplyReferences, if any, of the post this post is in reply to.

[JsonInclude]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public ReplyReferences? Reply { get; }

Property Value

ReplyReferences?

Reply

The idunno.Bluesky.ReplyReferences, if any, of the post this post is in reply to.

[JsonInclude]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public ReplyReferences? Reply { get; }

Property Value

ReplyReferences?

Reply

The idunno.Bluesky.ReplyReferences, if any, of the post this post is in reply to.

[JsonInclude]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public ReplyReferences? Reply { get; }

Property Value

ReplyReferences?

Tags

Gets the collection of tags to apply to the post, if any.

[JsonInclude]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public ICollection<string>? Tags { get; }

Property Value

ICollection<string>?

Tags

Gets the collection of tags to apply to the post, if any.

[JsonInclude]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public ICollection<string>? Tags { get; }

Property Value

ICollection<string>?

Tags

Gets the collection of tags to apply to the post, if any.

[JsonInclude]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public ICollection<string>? Tags { get; }

Property Value

ICollection<string>?

Text

Gets the text for the post, if any.

[JsonInclude]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? Text { get; }

Property Value

string?

Text

Gets the text for the post, if any.

[JsonInclude]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? Text { get; }

Property Value

string?

Text

Gets the text for the post, if any.

[JsonInclude]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? Text { get; }

Property Value

string?

Utf8Length

Gets the number of bytes in the post, as a Utf8 byte array.

[JsonIgnore]
public int Utf8Length { get; }

Property Value

int

Utf8Length

Gets the number of bytes in the post, as a Utf8 byte array.

[JsonIgnore]
public int Utf8Length { get; }

Property Value

int

Utf8Length

Gets the number of bytes in the post, as a Utf8 byte array.

[JsonIgnore]
public int Utf8Length { get; }

Property Value

int

Methods

<Clone>$()

public override Post <Clone>$()

Returns

Post

<Clone>$()

public override Post <Clone>$()

Returns

Post

<Clone>$()

public override Post <Clone>$()

Returns

Post

Embed(EmbeddedBase)

Embeds the specified embed in this instance.

public void Embed(EmbeddedBase embed)

Parameters

embed EmbeddedBase

The record to embed in the post.

Embed(EmbeddedBase)

Embeds the specified embed in this instance.

public void Embed(EmbeddedBase embed)

Parameters

embed EmbeddedBase

The record to embed in the post.

Embed(EmbeddedBase)

Embeds the specified embed in this instance.

public void Embed(EmbeddedBase embed)

Parameters

embed EmbeddedBase

The record to embed in the post.

Equals(Post?)

Determines whether the specified idunno.Bluesky.Post is equal to the current instance.

public virtual bool Equals(Post? other)

Parameters

other Post?

The idunno.Bluesky.Post to compare against the current instance.

Returns

bool

true if other is equal to the current instance, otherwise false.

Remarks

idunno.Bluesky.Post.Facets, idunno.Bluesky.Post.Langs and idunno.Bluesky.Post.Tags are compared by their contents rather than by reference. idunno.Bluesky.Record.BlueskyTimestampedRecord.CreatedAt takes part in the comparison, so two posts created at different times are never equal.

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object?

Returns

bool

Equals(BlueskyTimestampedRecord?)

public override sealed bool Equals(BlueskyTimestampedRecord? other)

Parameters

other BlueskyTimestampedRecord?

Returns

bool

Equals(Post?)

Determines whether the specified idunno.Bluesky.Post is equal to the current instance.

public virtual bool Equals(Post? other)

Parameters

other Post?

The idunno.Bluesky.Post to compare against the current instance.

Returns

bool

true if other is equal to the current instance, otherwise false.

Remarks

idunno.Bluesky.Post.Facets, idunno.Bluesky.Post.Langs and idunno.Bluesky.Post.Tags are compared by their contents rather than by reference. idunno.Bluesky.Record.BlueskyTimestampedRecord.CreatedAt takes part in the comparison, so two posts created at different times are never equal.

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object?

Returns

bool

Equals(BlueskyTimestampedRecord?)

public override sealed bool Equals(BlueskyTimestampedRecord? other)

Parameters

other BlueskyTimestampedRecord?

Returns

bool

Equals(Post?)

Determines whether the specified idunno.Bluesky.Post is equal to the current instance.

public virtual bool Equals(Post? other)

Parameters

other Post?

The idunno.Bluesky.Post to compare against the current instance.

Returns

bool

true if other is equal to the current instance, otherwise false.

Remarks

idunno.Bluesky.Post.Facets, idunno.Bluesky.Post.Langs and idunno.Bluesky.Post.Tags are compared by their contents rather than by reference. idunno.Bluesky.Record.BlueskyTimestampedRecord.CreatedAt takes part in the comparison, so two posts created at different times are never equal.

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object?

Returns

bool

Equals(BlueskyTimestampedRecord?)

public override sealed bool Equals(BlueskyTimestampedRecord? other)

Parameters

other BlueskyTimestampedRecord?

Returns

bool

GetHashCode()

Returns the hash code for the current instance.

public override int GetHashCode()

Returns

int

The hash code for the current instance.

Remarks

The hash code is derived from the current property values, so it changes if the instance is mutated. Do not mutate an instance while it is being used as a key in a hashed collection.

GetHashCode()

Returns the hash code for the current instance.

public override int GetHashCode()

Returns

int

The hash code for the current instance.

Remarks

The hash code is derived from the current property values, so it changes if the instance is mutated. Do not mutate an instance while it is being used as a key in a hashed collection.

GetHashCode()

Returns the hash code for the current instance.

public override int GetHashCode()

Returns

int

The hash code for the current instance.

Remarks

The hash code is derived from the current property values, so it changes if the instance is mutated. Do not mutate an instance while it is being used as a key in a hashed collection.

PrintMembers(StringBuilder)

protected override bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

PrintMembers(StringBuilder)

protected override bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

PrintMembers(StringBuilder)

protected override bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

RemoveEmbed()

Removes the embedded record from the post.

public void RemoveEmbed()

RemoveEmbed()

Removes the embedded record from the post.

public void RemoveEmbed()

RemoveEmbed()

Removes the embedded record from the post.

public void RemoveEmbed()

SetSelfLabels(PostSelfLabels)

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

public void SetSelfLabels(PostSelfLabels labels)

Parameters

labels PostSelfLabels

The self label values to set.

Exceptions

ArgumentNullException

Thrown when labels is null.

SetSelfLabels(PostSelfLabels)

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

public void SetSelfLabels(PostSelfLabels labels)

Parameters

labels PostSelfLabels

The self label values to set.

Exceptions

ArgumentNullException

Thrown when labels is null.

SetSelfLabels(PostSelfLabels)

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

public void SetSelfLabels(PostSelfLabels labels)

Parameters

labels PostSelfLabels

The self label values to set.

Exceptions

ArgumentNullException

Thrown when labels is null.

ToString()

public override string ToString()

Returns

string

ToString()

public override string ToString()

Returns

string

ToString()

public override string ToString()

Returns

string

Operators

operator ==(Post?, Post?)

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

Parameters

left Post?
right Post?

Returns

bool

operator ==(Post?, Post?)

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

Parameters

left Post?
right Post?

Returns

bool

operator ==(Post?, Post?)

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

Parameters

left Post?
right Post?

Returns

bool

operator !=(Post?, Post?)

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

Parameters

left Post?
right Post?

Returns

bool

operator !=(Post?, Post?)

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

Parameters

left Post?
right Post?

Returns

bool

operator !=(Post?, Post?)

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

Parameters

left Post?
right Post?

Returns

bool