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.EqualityContractAtProtoRecord.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
textstring?-
The text for the post.
createdAtDateTimeOffset-
The System.DateTimeOffset the post was created on.
facetsICollection<Facet>?-
A collection of idunno.Bluesky.RichText.Facets for the post.
langsICollection<string>?-
A collection of language strings, if any, that the post is written in.
embeddedRecordEmbeddedBase?-
The embedded record for the post, if any.
replyReplyReferences?-
The idunno.Bluesky.ReplyReferences, if any, of the post this post is in reply to.
labelsSelfLabels?-
A collection of idunno.AtProto.Labels.SelfLabels to apply to the post, if any.
tagsICollection<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
textandembeddedRecordare null. - ArgumentException
-
Thrown when a tag position is null or empty.
- ArgumentOutOfRangeException
-
Thrown when
textexceeds the maximum length or.tagsexceeds 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
postPost-
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
Exceptions
- ArgumentException
-
Thrown when
textis null or empty, orlangis empty.
Post(string, ICollection<string>)
Creates a new instance of idunno.Bluesky.Post.
public Post(string text, ICollection<string> langs)Parameters
textstring-
The text for the post.
langsICollection<string>-
The languages the post is written in.
Exceptions
- ArgumentException
-
Thrown when
textis null or empty. - ArgumentNullException
-
Thrown when
langsis null. - ArgumentOutOfRangeException
-
Thrown when
langsis 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
textstring?-
The text for the post.
facetsICollection<Facet>?-
A collection of idunno.Bluesky.RichText.Facets for the post.
langsICollection<string>?-
A collection of language strings, if any, that the post is written in.
embeddedRecordEmbeddedBase?-
The embedded record for the post, if any.
replyReplyReferences?-
The idunno.Bluesky.ReplyReferences, if any, of the post this post is in reply to.
labelsSelfLabels?-
A collection of idunno.AtProto.Labels.SelfLabels to apply to the post, if any.
tagsICollection<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
- ArgumentOutOfRangeException
-
Thrown when
textexceeds the maximum length or.tagsexceeds 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
textstring?-
The text for the post.
imageEmbeddedImage-
The idunno.Bluesky.Embed.EmbeddedImage to embed in the post..
facetsICollection<Facet>?-
A collection of idunno.Bluesky.RichText.Facets for the post.
langsICollection<string>?-
A collection of language strings, if any, that the post is written in.
replyReplyReferences?-
The idunno.Bluesky.ReplyReferences, if any, of the post this post is in reply to.
labelsSelfLabels?-
A collection of idunno.AtProto.Labels.SelfLabels to apply to the post, if any.
tagsICollection<string>?-
A collection of tags to apply to the post, if any.
Exceptions
- ArgumentNullException
-
Thrown when
imageis 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
textstring?-
The text for the post.
createdAtDateTimeOffset-
The System.DateTimeOffset the post was created on.
imageEmbeddedImage-
The idunno.Bluesky.Embed.EmbeddedImage to embed in the post..
facetsICollection<Facet>?-
A collection of idunno.Bluesky.RichText.Facets for the post.
langsICollection<string>?-
A collection of language strings, if any, that the post is written in.
replyReplyReferences?-
The idunno.Bluesky.ReplyReferences, if any, of the post this post is in reply to.
labelsSelfLabels?-
A collection of idunno.AtProto.Labels.SelfLabels to apply to the post, if any.
tagsICollection<string>?-
A collection of tags to apply to the post, if any.
Exceptions
- ArgumentNullException
-
Thrown when
imageis 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
textstring?-
The text for the post.
imagesICollection<EmbeddedImage>-
The idunno.Bluesky.Embed.EmbeddedImage to embed in the post..
facetsICollection<Facet>?-
A collection of idunno.Bluesky.RichText.Facets for the post.
langsICollection<string>?-
A collection of language strings, if any, that the post is written in.
replyReplyReferences?-
The idunno.Bluesky.ReplyReferences, if any, of the post this post is in reply to.
labelsSelfLabels?-
A collection of idunno.AtProto.Labels.SelfLabels to apply to the post, if any.
tagsICollection<string>?-
A collection of tags to apply to the post, if any.
Exceptions
- ArgumentNullException
-
Thrown when
imagesis null. - ArgumentOutOfRangeException
-
Thrown when
imagesor empty, or contains more than the maximum allowed number of images. - ArgumentException
-
Thrown when
imagescontains 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
textstring?-
The text for the post.
createdAtDateTimeOffset-
The System.DateTimeOffset the post was created on.
imagesICollection<EmbeddedImage>-
The idunno.Bluesky.Embed.EmbeddedImage to embed in the post..
facetsICollection<Facet>?-
A collection of idunno.Bluesky.RichText.Facets for the post.
langsICollection<string>?-
A collection of language strings, if any, that the post is written in.
replyReplyReferences?-
The idunno.Bluesky.ReplyReferences, if any, of the post this post is in reply to.
labelsSelfLabels?-
A collection of idunno.AtProto.Labels.SelfLabels to apply to the post, if any.
tagsICollection<string>?-
A collection of tags to apply to the post, if any.
Exceptions
- ArgumentNullException
-
Thrown when
imagesis null. - ArgumentOutOfRangeException
-
Thrown when
imagesor 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
textstring?-
The text for the post.
videoEmbeddedVideo-
The idunno.Bluesky.Embed.EmbeddedVideo to embed in the post.
facetsICollection<Facet>?-
A collection of idunno.Bluesky.RichText.Facets for the post.
langsICollection<string>?-
A collection of language strings, if any, that the post is written in.
replyReplyReferences?-
The idunno.Bluesky.ReplyReferences, if any, of the post this post is in reply to.
labelsSelfLabels?-
A collection of idunno.AtProto.Labels.SelfLabels to apply to the post, if any.
tagsICollection<string>?-
A collection of tags to apply to the post, if any.
Exceptions
- ArgumentNullException
-
Thrown when
videois 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
textstring?-
The text for the post.
createdAtDateTimeOffset-
The System.DateTimeOffset the post was created on.
videoEmbeddedVideo-
The idunno.Bluesky.Embed.EmbeddedVideo to embed in the post.
facetsICollection<Facet>?-
A collection of idunno.Bluesky.RichText.Facets for the post.
langsICollection<string>?-
A collection of language strings, if any, that the post is written in.
replyReplyReferences?-
The idunno.Bluesky.ReplyReferences, if any, of the post this post is in reply to.
labelsSelfLabels?-
A collection of idunno.AtProto.Labels.SelfLabels to apply to the post, if any.
tagsICollection<string>?-
A collection of tags to apply to the post, if any.
Exceptions
- ArgumentNullException
-
Thrown when
videois 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
textstring?-
The text for the post.
createdAtDateTimeOffset-
The System.DateTimeOffset the post was created on.
galleryEmbeddedGallery-
The idunno.Bluesky.Embed.EmbeddedGallery to embed in the post.
facetsICollection<Facet>?-
A collection of idunno.Bluesky.RichText.Facets for the post.
langsICollection<string>?-
A collection of language strings, if any, that the post is written in.
replyReplyReferences?-
The idunno.Bluesky.ReplyReferences, if any, of the post this post is in reply to.
labelsSelfLabels?-
A collection of idunno.AtProto.Labels.SelfLabels to apply to the post, if any.
tagsICollection<string>?-
A collection of tags to apply to the post, if any.
Exceptions
- ArgumentNullException
-
Thrown when
galleryis 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
textstring?-
The text for the post.
galleryEmbeddedGallery-
The idunno.Bluesky.Embed.EmbeddedGallery to embed in the post.
facetsICollection<Facet>?-
A collection of idunno.Bluesky.RichText.Facets for the post.
langsICollection<string>?-
A collection of language strings, if any, that the post is written in.
replyReplyReferences?-
The idunno.Bluesky.ReplyReferences, if any, of the post this post is in reply to.
labelsSelfLabels?-
A collection of idunno.AtProto.Labels.SelfLabels to apply to the post, if any.
tagsICollection<string>?-
A collection of tags to apply to the post, if any.
Exceptions
- ArgumentNullException
-
Thrown when
galleryis 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
textstring?-
The text for the post.
createdAtDateTimeOffset-
The System.DateTimeOffset the post was created on.
facetsICollection<Facet>?-
A collection of idunno.Bluesky.RichText.Facets for the post.
langsICollection<string>?-
A collection of language strings, if any, that the post is written in.
embeddedRecordEmbeddedBase?-
The embedded record for the post, if any.
replyReplyReferences?-
The idunno.Bluesky.ReplyReferences, if any, of the post this post is in reply to.
labelsSelfLabels?-
A collection of idunno.AtProto.Labels.SelfLabels to apply to the post, if any.
tagsICollection<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
textandembeddedRecordare null. - ArgumentException
-
Thrown when a tag position is null or empty.
- ArgumentOutOfRangeException
-
Thrown when
textexceeds the maximum length or.tagsexceeds 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
postPost-
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
Exceptions
- ArgumentException
-
Thrown when
textis null or empty, orlangis empty.
Post(string, ICollection<string>)
Creates a new instance of idunno.Bluesky.Post.
public Post(string text, ICollection<string> langs)Parameters
textstring-
The text for the post.
langsICollection<string>-
The languages the post is written in.
Exceptions
- ArgumentException
-
Thrown when
textis null or empty. - ArgumentNullException
-
Thrown when
langsis null. - ArgumentOutOfRangeException
-
Thrown when
langsis 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
textstring?-
The text for the post.
facetsICollection<Facet>?-
A collection of idunno.Bluesky.RichText.Facets for the post.
langsICollection<string>?-
A collection of language strings, if any, that the post is written in.
embeddedRecordEmbeddedBase?-
The embedded record for the post, if any.
replyReplyReferences?-
The idunno.Bluesky.ReplyReferences, if any, of the post this post is in reply to.
labelsSelfLabels?-
A collection of idunno.AtProto.Labels.SelfLabels to apply to the post, if any.
tagsICollection<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
- ArgumentOutOfRangeException
-
Thrown when
textexceeds the maximum length or.tagsexceeds 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
textstring?-
The text for the post.
imageEmbeddedImage-
The idunno.Bluesky.Embed.EmbeddedImage to embed in the post..
facetsICollection<Facet>?-
A collection of idunno.Bluesky.RichText.Facets for the post.
langsICollection<string>?-
A collection of language strings, if any, that the post is written in.
replyReplyReferences?-
The idunno.Bluesky.ReplyReferences, if any, of the post this post is in reply to.
labelsSelfLabels?-
A collection of idunno.AtProto.Labels.SelfLabels to apply to the post, if any.
tagsICollection<string>?-
A collection of tags to apply to the post, if any.
Exceptions
- ArgumentNullException
-
Thrown when
imageis 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
textstring?-
The text for the post.
createdAtDateTimeOffset-
The System.DateTimeOffset the post was created on.
imageEmbeddedImage-
The idunno.Bluesky.Embed.EmbeddedImage to embed in the post..
facetsICollection<Facet>?-
A collection of idunno.Bluesky.RichText.Facets for the post.
langsICollection<string>?-
A collection of language strings, if any, that the post is written in.
replyReplyReferences?-
The idunno.Bluesky.ReplyReferences, if any, of the post this post is in reply to.
labelsSelfLabels?-
A collection of idunno.AtProto.Labels.SelfLabels to apply to the post, if any.
tagsICollection<string>?-
A collection of tags to apply to the post, if any.
Exceptions
- ArgumentNullException
-
Thrown when
imageis 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
textstring?-
The text for the post.
imagesICollection<EmbeddedImage>-
The idunno.Bluesky.Embed.EmbeddedImage to embed in the post..
facetsICollection<Facet>?-
A collection of idunno.Bluesky.RichText.Facets for the post.
langsICollection<string>?-
A collection of language strings, if any, that the post is written in.
replyReplyReferences?-
The idunno.Bluesky.ReplyReferences, if any, of the post this post is in reply to.
labelsSelfLabels?-
A collection of idunno.AtProto.Labels.SelfLabels to apply to the post, if any.
tagsICollection<string>?-
A collection of tags to apply to the post, if any.
Exceptions
- ArgumentNullException
-
Thrown when
imagesis null. - ArgumentOutOfRangeException
-
Thrown when
imagesor empty, or contains more than the maximum allowed number of images. - ArgumentException
-
Thrown when
imagescontains 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
textstring?-
The text for the post.
createdAtDateTimeOffset-
The System.DateTimeOffset the post was created on.
imagesICollection<EmbeddedImage>-
The idunno.Bluesky.Embed.EmbeddedImage to embed in the post..
facetsICollection<Facet>?-
A collection of idunno.Bluesky.RichText.Facets for the post.
langsICollection<string>?-
A collection of language strings, if any, that the post is written in.
replyReplyReferences?-
The idunno.Bluesky.ReplyReferences, if any, of the post this post is in reply to.
labelsSelfLabels?-
A collection of idunno.AtProto.Labels.SelfLabels to apply to the post, if any.
tagsICollection<string>?-
A collection of tags to apply to the post, if any.
Exceptions
- ArgumentNullException
-
Thrown when
imagesis null. - ArgumentOutOfRangeException
-
Thrown when
imagesor 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
textstring?-
The text for the post.
videoEmbeddedVideo-
The idunno.Bluesky.Embed.EmbeddedVideo to embed in the post.
facetsICollection<Facet>?-
A collection of idunno.Bluesky.RichText.Facets for the post.
langsICollection<string>?-
A collection of language strings, if any, that the post is written in.
replyReplyReferences?-
The idunno.Bluesky.ReplyReferences, if any, of the post this post is in reply to.
labelsSelfLabels?-
A collection of idunno.AtProto.Labels.SelfLabels to apply to the post, if any.
tagsICollection<string>?-
A collection of tags to apply to the post, if any.
Exceptions
- ArgumentNullException
-
Thrown when
videois 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
textstring?-
The text for the post.
createdAtDateTimeOffset-
The System.DateTimeOffset the post was created on.
videoEmbeddedVideo-
The idunno.Bluesky.Embed.EmbeddedVideo to embed in the post.
facetsICollection<Facet>?-
A collection of idunno.Bluesky.RichText.Facets for the post.
langsICollection<string>?-
A collection of language strings, if any, that the post is written in.
replyReplyReferences?-
The idunno.Bluesky.ReplyReferences, if any, of the post this post is in reply to.
labelsSelfLabels?-
A collection of idunno.AtProto.Labels.SelfLabels to apply to the post, if any.
tagsICollection<string>?-
A collection of tags to apply to the post, if any.
Exceptions
- ArgumentNullException
-
Thrown when
videois 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
textstring?-
The text for the post.
createdAtDateTimeOffset-
The System.DateTimeOffset the post was created on.
galleryEmbeddedGallery-
The idunno.Bluesky.Embed.EmbeddedGallery to embed in the post.
facetsICollection<Facet>?-
A collection of idunno.Bluesky.RichText.Facets for the post.
langsICollection<string>?-
A collection of language strings, if any, that the post is written in.
replyReplyReferences?-
The idunno.Bluesky.ReplyReferences, if any, of the post this post is in reply to.
labelsSelfLabels?-
A collection of idunno.AtProto.Labels.SelfLabels to apply to the post, if any.
tagsICollection<string>?-
A collection of tags to apply to the post, if any.
Exceptions
- ArgumentNullException
-
Thrown when
galleryis 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
textstring?-
The text for the post.
galleryEmbeddedGallery-
The idunno.Bluesky.Embed.EmbeddedGallery to embed in the post.
facetsICollection<Facet>?-
A collection of idunno.Bluesky.RichText.Facets for the post.
langsICollection<string>?-
A collection of language strings, if any, that the post is written in.
replyReplyReferences?-
The idunno.Bluesky.ReplyReferences, if any, of the post this post is in reply to.
labelsSelfLabels?-
A collection of idunno.AtProto.Labels.SelfLabels to apply to the post, if any.
tagsICollection<string>?-
A collection of tags to apply to the post, if any.
Exceptions
- ArgumentNullException
-
Thrown when
galleryis 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
textstring?-
The text for the post.
createdAtDateTimeOffset-
The System.DateTimeOffset the post was created on.
facetsICollection<Facet>?-
A collection of idunno.Bluesky.RichText.Facets for the post.
langsICollection<string>?-
A collection of language strings, if any, that the post is written in.
embeddedRecordEmbeddedBase?-
The embedded record for the post, if any.
replyReplyReferences?-
The idunno.Bluesky.ReplyReferences, if any, of the post this post is in reply to.
labelsSelfLabels?-
A collection of idunno.AtProto.Labels.SelfLabels to apply to the post, if any.
tagsICollection<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
textandembeddedRecordare null. - ArgumentException
-
Thrown when a tag position is null or empty.
- ArgumentOutOfRangeException
-
Thrown when
textexceeds the maximum length or.tagsexceeds 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
postPost-
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
Exceptions
- ArgumentException
-
Thrown when
textis null or empty, orlangis empty.
Post(string, ICollection<string>)
Creates a new instance of idunno.Bluesky.Post.
public Post(string text, ICollection<string> langs)Parameters
textstring-
The text for the post.
langsICollection<string>-
The languages the post is written in.
Exceptions
- ArgumentException
-
Thrown when
textis null or empty. - ArgumentNullException
-
Thrown when
langsis null. - ArgumentOutOfRangeException
-
Thrown when
langsis 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
textstring?-
The text for the post.
facetsICollection<Facet>?-
A collection of idunno.Bluesky.RichText.Facets for the post.
langsICollection<string>?-
A collection of language strings, if any, that the post is written in.
embeddedRecordEmbeddedBase?-
The embedded record for the post, if any.
replyReplyReferences?-
The idunno.Bluesky.ReplyReferences, if any, of the post this post is in reply to.
labelsSelfLabels?-
A collection of idunno.AtProto.Labels.SelfLabels to apply to the post, if any.
tagsICollection<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
- ArgumentOutOfRangeException
-
Thrown when
textexceeds the maximum length or.tagsexceeds 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
textstring?-
The text for the post.
imageEmbeddedImage-
The idunno.Bluesky.Embed.EmbeddedImage to embed in the post..
facetsICollection<Facet>?-
A collection of idunno.Bluesky.RichText.Facets for the post.
langsICollection<string>?-
A collection of language strings, if any, that the post is written in.
replyReplyReferences?-
The idunno.Bluesky.ReplyReferences, if any, of the post this post is in reply to.
labelsSelfLabels?-
A collection of idunno.AtProto.Labels.SelfLabels to apply to the post, if any.
tagsICollection<string>?-
A collection of tags to apply to the post, if any.
Exceptions
- ArgumentNullException
-
Thrown when
imageis 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
textstring?-
The text for the post.
createdAtDateTimeOffset-
The System.DateTimeOffset the post was created on.
imageEmbeddedImage-
The idunno.Bluesky.Embed.EmbeddedImage to embed in the post..
facetsICollection<Facet>?-
A collection of idunno.Bluesky.RichText.Facets for the post.
langsICollection<string>?-
A collection of language strings, if any, that the post is written in.
replyReplyReferences?-
The idunno.Bluesky.ReplyReferences, if any, of the post this post is in reply to.
labelsSelfLabels?-
A collection of idunno.AtProto.Labels.SelfLabels to apply to the post, if any.
tagsICollection<string>?-
A collection of tags to apply to the post, if any.
Exceptions
- ArgumentNullException
-
Thrown when
imageis 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
textstring?-
The text for the post.
imagesICollection<EmbeddedImage>-
The idunno.Bluesky.Embed.EmbeddedImage to embed in the post..
facetsICollection<Facet>?-
A collection of idunno.Bluesky.RichText.Facets for the post.
langsICollection<string>?-
A collection of language strings, if any, that the post is written in.
replyReplyReferences?-
The idunno.Bluesky.ReplyReferences, if any, of the post this post is in reply to.
labelsSelfLabels?-
A collection of idunno.AtProto.Labels.SelfLabels to apply to the post, if any.
tagsICollection<string>?-
A collection of tags to apply to the post, if any.
Exceptions
- ArgumentNullException
-
Thrown when
imagesis null. - ArgumentOutOfRangeException
-
Thrown when
imagesor empty, or contains more than the maximum allowed number of images. - ArgumentException
-
Thrown when
imagescontains 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
textstring?-
The text for the post.
createdAtDateTimeOffset-
The System.DateTimeOffset the post was created on.
imagesICollection<EmbeddedImage>-
The idunno.Bluesky.Embed.EmbeddedImage to embed in the post..
facetsICollection<Facet>?-
A collection of idunno.Bluesky.RichText.Facets for the post.
langsICollection<string>?-
A collection of language strings, if any, that the post is written in.
replyReplyReferences?-
The idunno.Bluesky.ReplyReferences, if any, of the post this post is in reply to.
labelsSelfLabels?-
A collection of idunno.AtProto.Labels.SelfLabels to apply to the post, if any.
tagsICollection<string>?-
A collection of tags to apply to the post, if any.
Exceptions
- ArgumentNullException
-
Thrown when
imagesis null. - ArgumentOutOfRangeException
-
Thrown when
imagesor 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
textstring?-
The text for the post.
videoEmbeddedVideo-
The idunno.Bluesky.Embed.EmbeddedVideo to embed in the post.
facetsICollection<Facet>?-
A collection of idunno.Bluesky.RichText.Facets for the post.
langsICollection<string>?-
A collection of language strings, if any, that the post is written in.
replyReplyReferences?-
The idunno.Bluesky.ReplyReferences, if any, of the post this post is in reply to.
labelsSelfLabels?-
A collection of idunno.AtProto.Labels.SelfLabels to apply to the post, if any.
tagsICollection<string>?-
A collection of tags to apply to the post, if any.
Exceptions
- ArgumentNullException
-
Thrown when
videois 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
textstring?-
The text for the post.
createdAtDateTimeOffset-
The System.DateTimeOffset the post was created on.
videoEmbeddedVideo-
The idunno.Bluesky.Embed.EmbeddedVideo to embed in the post.
facetsICollection<Facet>?-
A collection of idunno.Bluesky.RichText.Facets for the post.
langsICollection<string>?-
A collection of language strings, if any, that the post is written in.
replyReplyReferences?-
The idunno.Bluesky.ReplyReferences, if any, of the post this post is in reply to.
labelsSelfLabels?-
A collection of idunno.AtProto.Labels.SelfLabels to apply to the post, if any.
tagsICollection<string>?-
A collection of tags to apply to the post, if any.
Exceptions
- ArgumentNullException
-
Thrown when
videois 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
textstring?-
The text for the post.
createdAtDateTimeOffset-
The System.DateTimeOffset the post was created on.
galleryEmbeddedGallery-
The idunno.Bluesky.Embed.EmbeddedGallery to embed in the post.
facetsICollection<Facet>?-
A collection of idunno.Bluesky.RichText.Facets for the post.
langsICollection<string>?-
A collection of language strings, if any, that the post is written in.
replyReplyReferences?-
The idunno.Bluesky.ReplyReferences, if any, of the post this post is in reply to.
labelsSelfLabels?-
A collection of idunno.AtProto.Labels.SelfLabels to apply to the post, if any.
tagsICollection<string>?-
A collection of tags to apply to the post, if any.
Exceptions
- ArgumentNullException
-
Thrown when
galleryis 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
textstring?-
The text for the post.
galleryEmbeddedGallery-
The idunno.Bluesky.Embed.EmbeddedGallery to embed in the post.
facetsICollection<Facet>?-
A collection of idunno.Bluesky.RichText.Facets for the post.
langsICollection<string>?-
A collection of language strings, if any, that the post is written in.
replyReplyReferences?-
The idunno.Bluesky.ReplyReferences, if any, of the post this post is in reply to.
labelsSelfLabels?-
A collection of idunno.AtProto.Labels.SelfLabels to apply to the post, if any.
tagsICollection<string>?-
A collection of tags to apply to the post, if any.
Exceptions
- ArgumentNullException
-
Thrown when
galleryis 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
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
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
ContainsNudity
Gets or sets a flag indicating the post media contains nudity. This puts a warning on images but isn't 18+ and defaults to ignore.
[JsonIgnore]
public bool ContainsNudity { get; set; }Property Value
ContainsNudity
Gets or sets a flag indicating the post media contains nudity. This puts a warning on images but isn't 18+ and defaults to ignore.
[JsonIgnore]
public bool ContainsNudity { get; set; }Property Value
ContainsNudity
Gets or sets a flag indicating the post media contains nudity. This puts a warning on images but isn't 18+ and defaults to ignore.
[JsonIgnore]
public bool ContainsNudity { get; set; }Property Value
ContainsPorn
Gets or sets a flag indicating the post media contains porn. This puts a warning on images and can only be clicked through if the user is 18+ and has enabled adult content.
[JsonIgnore]
public bool ContainsPorn { get; set; }Property Value
ContainsPorn
Gets or sets a flag indicating the post media contains porn. This puts a warning on images and can only be clicked through if the user is 18+ and has enabled adult content.
[JsonIgnore]
public bool ContainsPorn { get; set; }Property Value
ContainsPorn
Gets or sets a flag indicating the post media contains porn. This puts a warning on images and can only be clicked through if the user is 18+ and has enabled adult content.
[JsonIgnore]
public bool ContainsPorn { get; set; }Property Value
ContainsSexualContent
Gets or sets a flag indicating the post media contains sexual content. This behaves like idunno.Bluesky.Post.ContainsPorn but is meant to handle less intense sexual content.
[JsonIgnore]
public bool ContainsSexualContent { get; set; }Property Value
ContainsSexualContent
Gets or sets a flag indicating the post media contains sexual content. This behaves like idunno.Bluesky.Post.ContainsPorn but is meant to handle less intense sexual content.
[JsonIgnore]
public bool ContainsSexualContent { get; set; }Property Value
ContainsSexualContent
Gets or sets a flag indicating the post media contains sexual content. This behaves like idunno.Bluesky.Post.ContainsPorn but is meant to handle less intense sexual content.
[JsonIgnore]
public bool ContainsSexualContent { get; set; }Property Value
EmbeddedRecord
Gets the embedded record for the post, if any.
[JsonInclude]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("embed")]
public EmbeddedBase? EmbeddedRecord { get; }Property Value
EmbeddedRecord
Gets the embedded record for the post, if any.
[JsonInclude]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("embed")]
public EmbeddedBase? EmbeddedRecord { get; }Property Value
EmbeddedRecord
Gets the embedded record for the post, if any.
[JsonInclude]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("embed")]
public EmbeddedBase? EmbeddedRecord { get; }Property Value
EqualityContract
protected override Type EqualityContract { get; }Property Value
EqualityContract
protected override Type EqualityContract { get; }Property Value
EqualityContract
protected override Type EqualityContract { get; }Property Value
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
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
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
GraphemeLength
Gets the number of graphemes in the post.
[JsonIgnore]
public int GraphemeLength { get; }Property Value
GraphemeLength
Gets the number of graphemes in the post.
[JsonIgnore]
public int GraphemeLength { get; }Property Value
GraphemeLength
Gets the number of graphemes in the post.
[JsonIgnore]
public int GraphemeLength { get; }Property Value
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
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
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
Length
Gets the number of characters in the post.
[JsonIgnore]
public int Length { get; }Property Value
Length
Gets the number of characters in the post.
[JsonIgnore]
public int Length { get; }Property Value
Length
Gets the number of characters in the post.
[JsonIgnore]
public int Length { get; }Property Value
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
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
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
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
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
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
Text
Gets the text for the post, if any.
[JsonInclude]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? Text { get; }Property Value
Text
Gets the text for the post, if any.
[JsonInclude]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? Text { get; }Property Value
Text
Gets the text for the post, if any.
[JsonInclude]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? Text { get; }Property Value
Utf8Length
Gets the number of bytes in the post, as a Utf8 byte array.
[JsonIgnore]
public int Utf8Length { get; }Property Value
Utf8Length
Gets the number of bytes in the post, as a Utf8 byte array.
[JsonIgnore]
public int Utf8Length { get; }Property Value
Utf8Length
Gets the number of bytes in the post, as a Utf8 byte array.
[JsonIgnore]
public int Utf8Length { get; }Property Value
Methods
<Clone>$()
public override Post <Clone>$()Returns
<Clone>$()
public override Post <Clone>$()Returns
<Clone>$()
public override Post <Clone>$()Returns
Embed(EmbeddedBase)
Embeds the specified embed in this instance.
public void Embed(EmbeddedBase embed)Parameters
embedEmbeddedBase-
The record to embed in the post.
Embed(EmbeddedBase)
Embeds the specified embed in this instance.
public void Embed(EmbeddedBase embed)Parameters
embedEmbeddedBase-
The record to embed in the post.
Embed(EmbeddedBase)
Embeds the specified embed in this instance.
public void Embed(EmbeddedBase embed)Parameters
embedEmbeddedBase-
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
otherPost?-
The idunno.Bluesky.Post to compare against the current instance.
Returns
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
objobject?
Returns
Equals(BlueskyTimestampedRecord?)
public override sealed bool Equals(BlueskyTimestampedRecord? other)Parameters
otherBlueskyTimestampedRecord?
Returns
Equals(Post?)
Determines whether the specified idunno.Bluesky.Post is equal to the current instance.
public virtual bool Equals(Post? other)Parameters
otherPost?-
The idunno.Bluesky.Post to compare against the current instance.
Returns
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
objobject?
Returns
Equals(BlueskyTimestampedRecord?)
public override sealed bool Equals(BlueskyTimestampedRecord? other)Parameters
otherBlueskyTimestampedRecord?
Returns
Equals(Post?)
Determines whether the specified idunno.Bluesky.Post is equal to the current instance.
public virtual bool Equals(Post? other)Parameters
otherPost?-
The idunno.Bluesky.Post to compare against the current instance.
Returns
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
objobject?
Returns
Equals(BlueskyTimestampedRecord?)
public override sealed bool Equals(BlueskyTimestampedRecord? other)Parameters
otherBlueskyTimestampedRecord?
Returns
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
builderStringBuilder
Returns
PrintMembers(StringBuilder)
protected override bool PrintMembers(StringBuilder builder)Parameters
builderStringBuilder
Returns
PrintMembers(StringBuilder)
protected override bool PrintMembers(StringBuilder builder)Parameters
builderStringBuilder
Returns
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
labelsPostSelfLabels-
The self label values to set.
Exceptions
- ArgumentNullException
-
Thrown when
labelsis null.
SetSelfLabels(PostSelfLabels)
Sets the self labels for the post to the values specified in labels.
public void SetSelfLabels(PostSelfLabels labels)Parameters
labelsPostSelfLabels-
The self label values to set.
Exceptions
- ArgumentNullException
-
Thrown when
labelsis null.
SetSelfLabels(PostSelfLabels)
Sets the self labels for the post to the values specified in labels.
public void SetSelfLabels(PostSelfLabels labels)Parameters
labelsPostSelfLabels-
The self label values to set.
Exceptions
- ArgumentNullException
-
Thrown when
labelsis null.
ToString()
public override string ToString()Returns
ToString()
public override string ToString()Returns
ToString()
public override string ToString()Returns
Operators
operator ==(Post?, Post?)
public static bool operator ==(Post? left, Post? right)Parameters
Returns
operator ==(Post?, Post?)
public static bool operator ==(Post? left, Post? right)Parameters
Returns
operator ==(Post?, Post?)
public static bool operator ==(Post? left, Post? right)Parameters
Returns
operator !=(Post?, Post?)
public static bool operator !=(Post? left, Post? right)Parameters
Returns
operator !=(Post?, Post?)
public static bool operator !=(Post? left, Post? right)Parameters
Returns
operator !=(Post?, Post?)
public static bool operator !=(Post? left, Post? right)