Table of Contents

Class ViewRecord

Namespace
idunno.Bluesky.Embed
Assembly
idunno.Bluesky.dll

A view projection over a record embedded in a Bluesky record.

public sealed record ViewRecord : View, IEquatable<View>, IEquatable<View>, IEquatable<ViewRecord>

Inheritance

Implements

Inherited Members

Constructors

ViewRecord(AtUri, Cid, ProfileViewBasic, BlueskyRecord, IReadOnlyCollection<Label>?, int?, int?, int?, int?, IReadOnlyCollection<EmbeddedView>?, DateTimeOffset)

Constructs a new instance of idunno.Bluesky.Embed.ViewRecord

[JsonConstructor]
public ViewRecord(AtUri uri, Cid cid, ProfileViewBasic author, BlueskyRecord value, IReadOnlyCollection<Label>? labels, int? replyCount, int? repostCount, int? likeCount, int? quoteCount, IReadOnlyCollection<EmbeddedView>? embeds, DateTimeOffset indexedAt)

Parameters

uri AtUri

The idunno.AtProto.AtUri of the record.

cid Cid

The idunno.AtProto.Cid of the record.

author ProfileViewBasic

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

value BlueskyRecord

A idunno.Bluesky.Record.BlueskyRecord.

labels IReadOnlyCollection<Label>?

Any labels applied to the record.

replyCount int?

The number of replies to this post.

repostCount int?

The number of times this post has been reposted.

likeCount int?

The number of likes this record has.

quoteCount int?

The number of quotes this post has.

embeds IReadOnlyCollection<EmbeddedView>?

The views over any embeds the record has.

indexedAt DateTimeOffset

The System.DateTimeOffset the record was indexed on.

Exceptions

ArgumentNullException

Thrown when uri, cid, author or value is null.

ViewRecord(AtUri, Cid, ProfileViewBasic, BlueskyRecord, IReadOnlyCollection<Label>?, int?, int?, int?, int?, IReadOnlyCollection<EmbeddedView>?, DateTimeOffset)

Constructs a new instance of idunno.Bluesky.Embed.ViewRecord

[JsonConstructor]
public ViewRecord(AtUri uri, Cid cid, ProfileViewBasic author, BlueskyRecord value, IReadOnlyCollection<Label>? labels, int? replyCount, int? repostCount, int? likeCount, int? quoteCount, IReadOnlyCollection<EmbeddedView>? embeds, DateTimeOffset indexedAt)

Parameters

uri AtUri

The idunno.AtProto.AtUri of the record.

cid Cid

The idunno.AtProto.Cid of the record.

author ProfileViewBasic

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

value BlueskyRecord

A idunno.Bluesky.Record.BlueskyRecord.

labels IReadOnlyCollection<Label>?

Any labels applied to the record.

replyCount int?

The number of replies to this post.

repostCount int?

The number of times this post has been reposted.

likeCount int?

The number of likes this record has.

quoteCount int?

The number of quotes this post has.

embeds IReadOnlyCollection<EmbeddedView>?

The views over any embeds the record has.

indexedAt DateTimeOffset

The System.DateTimeOffset the record was indexed on.

Exceptions

ArgumentNullException

Thrown when uri, cid, author or value is null.

ViewRecord(AtUri, Cid, ProfileViewBasic, BlueskyRecord, IReadOnlyCollection<Label>?, int?, int?, int?, int?, IReadOnlyCollection<EmbeddedView>?, DateTimeOffset)

Constructs a new instance of idunno.Bluesky.Embed.ViewRecord

[JsonConstructor]
public ViewRecord(AtUri uri, Cid cid, ProfileViewBasic author, BlueskyRecord value, IReadOnlyCollection<Label>? labels, int? replyCount, int? repostCount, int? likeCount, int? quoteCount, IReadOnlyCollection<EmbeddedView>? embeds, DateTimeOffset indexedAt)

Parameters

uri AtUri

The idunno.AtProto.AtUri of the record.

cid Cid

The idunno.AtProto.Cid of the record.

author ProfileViewBasic

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

value BlueskyRecord

A idunno.Bluesky.Record.BlueskyRecord.

labels IReadOnlyCollection<Label>?

Any labels applied to the record.

replyCount int?

The number of replies to this post.

repostCount int?

The number of times this post has been reposted.

likeCount int?

The number of likes this record has.

quoteCount int?

The number of quotes this post has.

embeds IReadOnlyCollection<EmbeddedView>?

The views over any embeds the record has.

indexedAt DateTimeOffset

The System.DateTimeOffset the record was indexed on.

Exceptions

ArgumentNullException

Thrown when uri, cid, author or value is null.

Properties

Author

Gets the record author.

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

Property Value

ProfileViewBasic

Author

Gets the record author.

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

Property Value

ProfileViewBasic

Author

Gets the record author.

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

Property Value

ProfileViewBasic

Cid

Gets the Content Identifier of the record.

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

Property Value

Cid

Cid

Gets the Content Identifier of the record.

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

Property Value

Cid

Cid

Gets the Content Identifier of the record.

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

Property Value

Cid

Embeds

Gets views over any embeds the record has.

[JsonInclude]
public IReadOnlyCollection<EmbeddedView>? Embeds { get; init; }

Property Value

IReadOnlyCollection<EmbeddedView>?

Embeds

Gets views over any embeds the record has.

[JsonInclude]
public IReadOnlyCollection<EmbeddedView>? Embeds { get; init; }

Property Value

IReadOnlyCollection<EmbeddedView>?

Embeds

Gets views over any embeds the record has.

[JsonInclude]
public IReadOnlyCollection<EmbeddedView>? Embeds { get; init; }

Property Value

IReadOnlyCollection<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

Gets the System.DateTimeOffset the record was indexed on.

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

Property Value

DateTimeOffset

IndexedAt

Gets the System.DateTimeOffset the record was indexed on.

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

Property Value

DateTimeOffset

IndexedAt

Gets the System.DateTimeOffset the record was indexed on.

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

Property Value

DateTimeOffset

Labels

Gets any labels applied to the record.

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

Property Value

IReadOnlyCollection<Label>?

Labels

Gets any labels applied to the record.

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

Property Value

IReadOnlyCollection<Label>?

Labels

Gets any labels applied to the record.

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

Property Value

IReadOnlyCollection<Label>?

LikeCount

Gets the number of likes this record has.

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

Property Value

int?

LikeCount

Gets the number of likes this record has.

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

Property Value

int?

LikeCount

Gets the number of likes this record has.

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

Property Value

int?

QuoteCount

Gets the number of quotes this post has.

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

Property Value

int?

QuoteCount

Gets the number of quotes this post has.

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

Property Value

int?

QuoteCount

Gets the number of quotes this post has.

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

Property Value

int?

ReplyCount

Gets the number of replies to this post.

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

Property Value

int?

ReplyCount

Gets the number of replies to this post.

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

Property Value

int?

ReplyCount

Gets the number of replies to this post.

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

Property Value

int?

RepostCount

Gets the number of times this post has been reposted.

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

Property Value

int?

RepostCount

Gets the number of times this post has been reposted.

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

Property Value

int?

RepostCount

Gets the number of times this post has been reposted.

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

Property Value

int?

StrongReference

Gets a idunno.Bluesky.Embed.ViewRecord.StrongReference for the record.

[JsonIgnore]
public StrongReference StrongReference { get; }

Property Value

StrongReference

Remarks

The reference is derived from idunno.Bluesky.Embed.ViewRecord.Uri and idunno.Bluesky.Embed.ViewRecord.Cid, so it stays correct when either is changed by a with expression.

StrongReference

Gets a idunno.Bluesky.Embed.ViewRecord.StrongReference for the record.

[JsonIgnore]
public StrongReference StrongReference { get; }

Property Value

StrongReference

Remarks

The reference is derived from idunno.Bluesky.Embed.ViewRecord.Uri and idunno.Bluesky.Embed.ViewRecord.Cid, so it stays correct when either is changed by a with expression.

StrongReference

Gets a idunno.Bluesky.Embed.ViewRecord.StrongReference for the record.

[JsonIgnore]
public StrongReference StrongReference { get; }

Property Value

StrongReference

Remarks

The reference is derived from idunno.Bluesky.Embed.ViewRecord.Uri and idunno.Bluesky.Embed.ViewRecord.Cid, so it stays correct when either is changed by a with expression.

Uri

Gets the idunno.AtProto.AtUri of the record.

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

Property Value

AtUri

Uri

Gets the idunno.AtProto.AtUri of the record.

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

Property Value

AtUri

Uri

Gets the idunno.AtProto.AtUri of the record.

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

Property Value

AtUri

Value

Gets the record itself.

[JsonInclude]
[JsonRequired]
public BlueskyRecord Value { get; init; }

Property Value

BlueskyRecord

Value

Gets the record itself.

[JsonInclude]
[JsonRequired]
public BlueskyRecord Value { get; init; }

Property Value

BlueskyRecord

Value

Gets the record itself.

[JsonInclude]
[JsonRequired]
public BlueskyRecord Value { get; init; }

Property Value

BlueskyRecord

Methods

<Clone>$()

public override ViewRecord <Clone>$()

Returns

ViewRecord

<Clone>$()

public override ViewRecord <Clone>$()

Returns

ViewRecord

<Clone>$()

public override ViewRecord <Clone>$()

Returns

ViewRecord

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object?

Returns

bool

Equals(View?)

public override sealed bool Equals(View? other)

Parameters

other View?

Returns

bool

Equals(ViewRecord?)

public bool Equals(ViewRecord? other)

Parameters

other ViewRecord?

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object?

Returns

bool

Equals(View?)

public override sealed bool Equals(View? other)

Parameters

other View?

Returns

bool

Equals(ViewRecord?)

public bool Equals(ViewRecord? other)

Parameters

other ViewRecord?

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object?

Returns

bool

Equals(View?)

public override sealed bool Equals(View? other)

Parameters

other View?

Returns

bool

Equals(ViewRecord?)

public bool Equals(ViewRecord? other)

Parameters

other ViewRecord?

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 ==(ViewRecord?, ViewRecord?)

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

Parameters

left ViewRecord?
right ViewRecord?

Returns

bool

operator ==(ViewRecord?, ViewRecord?)

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

Parameters

left ViewRecord?
right ViewRecord?

Returns

bool

operator ==(ViewRecord?, ViewRecord?)

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

Parameters

left ViewRecord?
right ViewRecord?

Returns

bool

operator !=(ViewRecord?, ViewRecord?)

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

Parameters

left ViewRecord?
right ViewRecord?

Returns

bool

operator !=(ViewRecord?, ViewRecord?)

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

Parameters

left ViewRecord?
right ViewRecord?

Returns

bool

operator !=(ViewRecord?, ViewRecord?)

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

Parameters

left ViewRecord?
right ViewRecord?

Returns

bool