Table of Contents

Class PostView

Namespace
idunno.Bluesky.Feed
Assembly
idunno.Bluesky.dll

A view over a post record generated by a Bluesky feed.

public sealed record PostView : PostViewBase, IEquatable<View>, IEquatable<PostViewBase>, IEquatable<PostView>

Inheritance

Implements

Inherited Members

Remarks

See https://docs.bsky.app/docs/api/app-bsky-feed-get-posts

See https://github.com/bluesky-social/atproto/blob/main/lexicons/app/bsky/feed/defs.json

Properties

Author

A idunno.Bluesky.Actor.ProfileViewBasic of the author of the post.

[JsonRequired]
public ProfileViewBasic Author { get; init; }

Property Value

ProfileViewBasic

Author

A idunno.Bluesky.Actor.ProfileViewBasic of the author of the post.

[JsonRequired]
public ProfileViewBasic Author { get; init; }

Property Value

ProfileViewBasic

Author

A idunno.Bluesky.Actor.ProfileViewBasic of the author of the post.

[JsonRequired]
public ProfileViewBasic Author { get; init; }

Property Value

ProfileViewBasic

BookmarkCount

The number of times the post has been bookmarked.

[JsonInclude]
public int BookmarkCount { get; init; }

Property Value

int

BookmarkCount

The number of times the post has been bookmarked.

[JsonInclude]
public int BookmarkCount { get; init; }

Property Value

int

BookmarkCount

The number of times the post has been bookmarked.

[JsonInclude]
public int BookmarkCount { get; init; }

Property Value

int

Cid

The content identifier for the post.

[JsonRequired]
public Cid Cid { get; init; }

Property Value

Cid

Cid

The content identifier for the post.

[JsonRequired]
public Cid Cid { get; init; }

Property Value

Cid

Cid

The content identifier for the post.

[JsonRequired]
public Cid Cid { get; init; }

Property Value

Cid

Embed

An optional idunno.Bluesky.Embed.EmbeddedView for embedded media information.

[JsonInclude]
public EmbeddedView? Embed { get; init; }

Property Value

EmbeddedView?

Embed

An optional idunno.Bluesky.Embed.EmbeddedView for embedded media information.

[JsonInclude]
public EmbeddedView? Embed { get; init; }

Property Value

EmbeddedView?

Embed

An optional idunno.Bluesky.Embed.EmbeddedView for embedded media information.

[JsonInclude]
public EmbeddedView? Embed { get; init; }

Property Value

EmbeddedView?

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

IndexedAt

The date and time the post was indexed at.

[JsonInclude]
[JsonRequired]
public DateTimeOffset IndexedAt { get; init; }

Property Value

DateTimeOffset

IndexedAt

The date and time the post was indexed at.

[JsonInclude]
[JsonRequired]
public DateTimeOffset IndexedAt { get; init; }

Property Value

DateTimeOffset

IndexedAt

The date and time the post was indexed at.

[JsonInclude]
[JsonRequired]
public DateTimeOffset IndexedAt { get; init; }

Property Value

DateTimeOffset

Labels

Any labels applied to the post.

[JsonInclude]
public IReadOnlyCollection<Label> Labels { get; init; }

Property Value

IReadOnlyCollection<Label>

Labels

Any labels applied to the post.

[JsonInclude]
public IReadOnlyCollection<Label> Labels { get; init; }

Property Value

IReadOnlyCollection<Label>

Labels

Any labels applied to the post.

[JsonInclude]
public IReadOnlyCollection<Label> Labels { get; init; }

Property Value

IReadOnlyCollection<Label>

LikeCount

The number of likes this post has.

[JsonInclude]
public int LikeCount { get; init; }

Property Value

int

LikeCount

The number of likes this post has.

[JsonInclude]
public int LikeCount { get; init; }

Property Value

int

LikeCount

The number of likes this post has.

[JsonInclude]
public int LikeCount { get; init; }

Property Value

int

QuoteCount

The number of quotes this post has.

[JsonInclude]
public int QuoteCount { get; init; }

Property Value

int

QuoteCount

The number of quotes this post has.

[JsonInclude]
public int QuoteCount { get; init; }

Property Value

int

QuoteCount

The number of quotes this post has.

[JsonInclude]
public int QuoteCount { get; init; }

Property Value

int

Record

The value of the post record.

[JsonRequired]
public Post Record { get; init; }

Property Value

Post

Record

The value of the post record.

[JsonRequired]
public Post Record { get; init; }

Property Value

Post

Record

The value of the post record.

[JsonRequired]
public Post Record { get; init; }

Property Value

Post

ReplyCount

The number of replies to this post.

[JsonInclude]
public int ReplyCount { get; init; }

Property Value

int

ReplyCount

The number of replies to this post.

[JsonInclude]
public int ReplyCount { get; init; }

Property Value

int

ReplyCount

The number of replies to this post.

[JsonInclude]
public int ReplyCount { get; init; }

Property Value

int

RepostCount

The number of times this post has been reposted.

[JsonInclude]
public int RepostCount { get; init; }

Property Value

int

RepostCount

The number of times this post has been reposted.

[JsonInclude]
public int RepostCount { get; init; }

Property Value

int

RepostCount

The number of times this post has been reposted.

[JsonInclude]
public int RepostCount { get; init; }

Property Value

int

SelfLabels

Returns a list of label values for labels that appear to have been applied by the actor to themselves, based on the label source and uri.

[JsonIgnore]
public IReadOnlyList<string> SelfLabels { get; }

Property Value

IReadOnlyList<string>

Remarks

Known Bluesky label values can be found in idunno.Bluesky.SelfLabelValues.

SelfLabels

Returns a list of label values for labels that appear to have been applied by the actor to themselves, based on the label source and uri.

[JsonIgnore]
public IReadOnlyList<string> SelfLabels { get; }

Property Value

IReadOnlyList<string>

Remarks

Known Bluesky label values can be found in idunno.Bluesky.SelfLabelValues.

SelfLabels

Returns a list of label values for labels that appear to have been applied by the actor to themselves, based on the label source and uri.

[JsonIgnore]
public IReadOnlyList<string> SelfLabels { get; }

Property Value

IReadOnlyList<string>

Remarks

Known Bluesky label values can be found in idunno.Bluesky.SelfLabelValues.

StrongReference

A idunno.Bluesky.Feed.PostView.StrongReference to the post.

[JsonIgnore]
public StrongReference StrongReference { get; }

Property Value

StrongReference

StrongReference

A idunno.Bluesky.Feed.PostView.StrongReference to the post.

[JsonIgnore]
public StrongReference StrongReference { get; }

Property Value

StrongReference

StrongReference

A idunno.Bluesky.Feed.PostView.StrongReference to the post.

[JsonIgnore]
public StrongReference StrongReference { get; }

Property Value

StrongReference

ThreadGate

An optional idunno.Bluesky.Feed.PostView.ThreadGate controlling who can reply to a post.

[JsonInclude]
[JsonPropertyName("threadgate")]
public ThreadGateView? ThreadGate { get; init; }

Property Value

ThreadGateView?

ThreadGate

An optional idunno.Bluesky.Feed.PostView.ThreadGate controlling who can reply to a post.

[JsonInclude]
[JsonPropertyName("threadgate")]
public ThreadGateView? ThreadGate { get; init; }

Property Value

ThreadGateView?

ThreadGate

An optional idunno.Bluesky.Feed.PostView.ThreadGate controlling who can reply to a post.

[JsonInclude]
[JsonPropertyName("threadgate")]
public ThreadGateView? ThreadGate { get; init; }

Property Value

ThreadGateView?

Uri

The idunno.AtProto.AtUri for the post.

[JsonRequired]
public AtUri Uri { get; init; }

Property Value

AtUri

Uri

The idunno.AtProto.AtUri for the post.

[JsonRequired]
public AtUri Uri { get; init; }

Property Value

AtUri

Uri

The idunno.AtProto.AtUri for the post.

[JsonRequired]
public AtUri Uri { get; init; }

Property Value

AtUri

Viewer

Metadata about the requesting account's relationship with the subject content. Only has meaningful content for authenticated requests.

[JsonInclude]
public ViewerState? Viewer { get; init; }

Property Value

ViewerState?

Viewer

Metadata about the requesting account's relationship with the subject content. Only has meaningful content for authenticated requests.

[JsonInclude]
public ViewerState? Viewer { get; init; }

Property Value

ViewerState?

Viewer

Metadata about the requesting account's relationship with the subject content. Only has meaningful content for authenticated requests.

[JsonInclude]
public ViewerState? Viewer { get; init; }

Property Value

ViewerState?

Methods

<Clone>$()

public override PostView <Clone>$()

Returns

PostView

<Clone>$()

public override PostView <Clone>$()

Returns

PostView

<Clone>$()

public override PostView <Clone>$()

Returns

PostView

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object?

Returns

bool

Equals(PostViewBase?)

public override sealed bool Equals(PostViewBase? other)

Parameters

other PostViewBase?

Returns

bool

Equals(PostView?)

public bool Equals(PostView? other)

Parameters

other PostView?

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object?

Returns

bool

Equals(PostViewBase?)

public override sealed bool Equals(PostViewBase? other)

Parameters

other PostViewBase?

Returns

bool

Equals(PostView?)

public bool Equals(PostView? other)

Parameters

other PostView?

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object?

Returns

bool

Equals(PostViewBase?)

public override sealed bool Equals(PostViewBase? other)

Parameters

other PostViewBase?

Returns

bool

Equals(PostView?)

public bool Equals(PostView? other)

Parameters

other PostView?

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

GetHashCode()

public override int GetHashCode()

Returns

int

GetHashCode()

public override int GetHashCode()

Returns

int

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

ToString()

public override string ToString()

Returns

string

ToString()

public override string ToString()

Returns

string

ToString()

public override string ToString()

Returns

string

Operators

operator ==(PostView?, PostView?)

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

Parameters

left PostView?
right PostView?

Returns

bool

operator ==(PostView?, PostView?)

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

Parameters

left PostView?
right PostView?

Returns

bool

operator ==(PostView?, PostView?)

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

Parameters

left PostView?
right PostView?

Returns

bool

operator !=(PostView?, PostView?)

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

Parameters

left PostView?
right PostView?

Returns

bool

operator !=(PostView?, PostView?)

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

Parameters

left PostView?
right PostView?

Returns

bool

operator !=(PostView?, PostView?)

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

Parameters

left PostView?
right PostView?

Returns

bool