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
uriAtUri-
The idunno.AtProto.AtUri of the record.
cidCid-
The idunno.AtProto.Cid of the record.
authorProfileViewBasic-
A idunno.Bluesky.Actor.ProfileViewBasic of the record author.
valueBlueskyRecord-
A idunno.Bluesky.Record.BlueskyRecord.
labelsIReadOnlyCollection<Label>?-
Any labels applied to the record.
replyCountint?-
The number of replies to this post.
repostCountint?-
The number of times this post has been reposted.
likeCountint?-
The number of likes this record has.
quoteCountint?-
The number of quotes this post has.
embedsIReadOnlyCollection<EmbeddedView>?-
The views over any embeds the record has.
indexedAtDateTimeOffset-
The System.DateTimeOffset the record was indexed on.
Exceptions
- ArgumentNullException
-
Thrown when
uri,cid,authororvalueis 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
uriAtUri-
The idunno.AtProto.AtUri of the record.
cidCid-
The idunno.AtProto.Cid of the record.
authorProfileViewBasic-
A idunno.Bluesky.Actor.ProfileViewBasic of the record author.
valueBlueskyRecord-
A idunno.Bluesky.Record.BlueskyRecord.
labelsIReadOnlyCollection<Label>?-
Any labels applied to the record.
replyCountint?-
The number of replies to this post.
repostCountint?-
The number of times this post has been reposted.
likeCountint?-
The number of likes this record has.
quoteCountint?-
The number of quotes this post has.
embedsIReadOnlyCollection<EmbeddedView>?-
The views over any embeds the record has.
indexedAtDateTimeOffset-
The System.DateTimeOffset the record was indexed on.
Exceptions
- ArgumentNullException
-
Thrown when
uri,cid,authororvalueis 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
uriAtUri-
The idunno.AtProto.AtUri of the record.
cidCid-
The idunno.AtProto.Cid of the record.
authorProfileViewBasic-
A idunno.Bluesky.Actor.ProfileViewBasic of the record author.
valueBlueskyRecord-
A idunno.Bluesky.Record.BlueskyRecord.
labelsIReadOnlyCollection<Label>?-
Any labels applied to the record.
replyCountint?-
The number of replies to this post.
repostCountint?-
The number of times this post has been reposted.
likeCountint?-
The number of likes this record has.
quoteCountint?-
The number of quotes this post has.
embedsIReadOnlyCollection<EmbeddedView>?-
The views over any embeds the record has.
indexedAtDateTimeOffset-
The System.DateTimeOffset the record was indexed on.
Exceptions
- ArgumentNullException
-
Thrown when
uri,cid,authororvalueis null.
Properties
Author
Gets the record author.
[JsonInclude]
[JsonRequired]
public ProfileViewBasic Author { get; init; }Property Value
Author
Gets the record author.
[JsonInclude]
[JsonRequired]
public ProfileViewBasic Author { get; init; }Property Value
Author
Gets the record author.
[JsonInclude]
[JsonRequired]
public ProfileViewBasic Author { get; init; }Property Value
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
Embeds
Gets views over any embeds the record has.
[JsonInclude]
public IReadOnlyCollection<EmbeddedView>? Embeds { get; init; }Property Value
Embeds
Gets views over any embeds the record has.
[JsonInclude]
public IReadOnlyCollection<EmbeddedView>? Embeds { get; init; }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
IndexedAt
Gets the System.DateTimeOffset the record was indexed on.
[JsonInclude]
public DateTimeOffset IndexedAt { get; init; }Property Value
IndexedAt
Gets the System.DateTimeOffset the record was indexed on.
[JsonInclude]
public DateTimeOffset IndexedAt { get; init; }Property Value
IndexedAt
Gets the System.DateTimeOffset the record was indexed on.
[JsonInclude]
public DateTimeOffset IndexedAt { get; init; }Property Value
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
Value
Gets the record itself.
[JsonInclude]
[JsonRequired]
public BlueskyRecord Value { get; init; }Property Value
Value
Gets the record itself.
[JsonInclude]
[JsonRequired]
public BlueskyRecord Value { get; init; }Property Value
Methods
<Clone>$()
public override ViewRecord <Clone>$()Returns
<Clone>$()
public override ViewRecord <Clone>$()Returns
<Clone>$()
public override ViewRecord <Clone>$()Returns
Equals(object?)
public override bool Equals(object? obj)Parameters
objobject?
Returns
Equals(View?)
public override sealed bool Equals(View? other)Parameters
otherView?
Returns
Equals(ViewRecord?)
public bool Equals(ViewRecord? other)Parameters
otherViewRecord?
Returns
Equals(object?)
public override bool Equals(object? obj)Parameters
objobject?
Returns
Equals(View?)
public override sealed bool Equals(View? other)Parameters
otherView?
Returns
Equals(ViewRecord?)
public bool Equals(ViewRecord? other)Parameters
otherViewRecord?
Returns
Equals(object?)
public override bool Equals(object? obj)Parameters
objobject?
Returns
Equals(View?)
public override sealed bool Equals(View? other)Parameters
otherView?
Returns
Equals(ViewRecord?)
public bool Equals(ViewRecord? other)Parameters
otherViewRecord?
Returns
GetHashCode()
public override int GetHashCode()Returns
GetHashCode()
public override int GetHashCode()Returns
GetHashCode()
public override int GetHashCode()Returns
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
ToString()
public override string ToString()Returns
ToString()
public override string ToString()Returns
ToString()
public override string ToString()Returns
Operators
operator ==(ViewRecord?, ViewRecord?)
public static bool operator ==(ViewRecord? left, ViewRecord? right)Parameters
leftViewRecord?rightViewRecord?
Returns
operator ==(ViewRecord?, ViewRecord?)
public static bool operator ==(ViewRecord? left, ViewRecord? right)Parameters
leftViewRecord?rightViewRecord?
Returns
operator ==(ViewRecord?, ViewRecord?)
public static bool operator ==(ViewRecord? left, ViewRecord? right)Parameters
leftViewRecord?rightViewRecord?
Returns
operator !=(ViewRecord?, ViewRecord?)
public static bool operator !=(ViewRecord? left, ViewRecord? right)Parameters
leftViewRecord?rightViewRecord?
Returns
operator !=(ViewRecord?, ViewRecord?)
public static bool operator !=(ViewRecord? left, ViewRecord? right)Parameters
leftViewRecord?rightViewRecord?
Returns
operator !=(ViewRecord?, ViewRecord?)
public static bool operator !=(ViewRecord? left, ViewRecord? right)Parameters
leftViewRecord?rightViewRecord?