Class Repost
- Namespace
- idunno.Bluesky.Feed
- Assembly
- idunno.Bluesky.dll
Encapsulates the information needed to create a repost record.
[JsonPolymorphic(IgnoreUnrecognizedTypeDiscriminators = true, UnknownDerivedTypeHandling = JsonUnknownDerivedTypeHandling.FallBackToBaseType)]
[JsonDerivedType(typeof(Repost), "app.bsky.feed.repost")]
public record Repost : BlueskyTimestampedRecord, IEquatable<AtProtoRecord>, IEquatable<BlueskyRecord>, IEquatable<BlueskyTimestampedRecord>, IEquatable<Repost>Inheritance
-
AtProtoRecord
Implements
Inherited Members
-
AtProtoRecord.Equals(AtProtoRecord?)AtProtoRecord.GetHashCode()AtProtoRecord.ToString()AtProtoRecord.PrintMembers(StringBuilder)AtProtoRecord.Equals(object?)AtProtoRecord.<Clone>$()AtProtoRecord.EqualityContractAtProtoRecord.ExtensionData
Constructors
Repost(StrongReference)
Creates a new instance of idunno.Bluesky.Feed.Repost, withidunno.Bluesky.Record.BlueskyTimestampedRecord.CreatedAt set to the current date and time.
public Repost(StrongReference subject)Parameters
subjectStrongReference-
The idunno.AtProto.Repo.StrongReference to the post to be reposted.
Repost(StrongReference, DateTimeOffset)
Creates a new instance of idunno.Bluesky.Feed.Repost.
public Repost(StrongReference subject, DateTimeOffset createdAt)Parameters
subjectStrongReference-
The idunno.AtProto.Repo.StrongReference to the post to be reposted.
createdAtDateTimeOffset-
The System.DateTimeOffset for the repost creation date.
Repost(StrongReference, StrongReference?)
Creates a new instance of idunno.Bluesky.Feed.Repost, withidunno.Bluesky.Record.BlueskyTimestampedRecord.CreatedAt set to the current date and time.
public Repost(StrongReference subject, StrongReference? via)Parameters
subjectStrongReference-
The idunno.AtProto.Repo.StrongReference to the post to be reposted.
viaStrongReference?-
A idunno.AtProto.Repo.StrongReference to a repost record, if the repost is of a repost.
Repost(StrongReference, DateTimeOffset, StrongReference?)
Creates a new instance of idunno.Bluesky.Feed.Repost.
[JsonConstructor]
public Repost(StrongReference subject, DateTimeOffset createdAt, StrongReference? via)Parameters
subjectStrongReference-
The idunno.AtProto.Repo.StrongReference to the post to be reposted.
createdAtDateTimeOffset-
The System.DateTimeOffset for the repost creation date.
viaStrongReference?-
A idunno.AtProto.Repo.StrongReference to a repost record, if the repost is of a repost.
Repost(Repost)
protected Repost(Repost original)Parameters
originalRepost
Repost(StrongReference)
Creates a new instance of idunno.Bluesky.Feed.Repost, withidunno.Bluesky.Record.BlueskyTimestampedRecord.CreatedAt set to the current date and time.
public Repost(StrongReference subject)Parameters
subjectStrongReference-
The idunno.AtProto.Repo.StrongReference to the post to be reposted.
Repost(StrongReference, DateTimeOffset)
Creates a new instance of idunno.Bluesky.Feed.Repost.
public Repost(StrongReference subject, DateTimeOffset createdAt)Parameters
subjectStrongReference-
The idunno.AtProto.Repo.StrongReference to the post to be reposted.
createdAtDateTimeOffset-
The System.DateTimeOffset for the repost creation date.
Repost(StrongReference, StrongReference?)
Creates a new instance of idunno.Bluesky.Feed.Repost, withidunno.Bluesky.Record.BlueskyTimestampedRecord.CreatedAt set to the current date and time.
public Repost(StrongReference subject, StrongReference? via)Parameters
subjectStrongReference-
The idunno.AtProto.Repo.StrongReference to the post to be reposted.
viaStrongReference?-
A idunno.AtProto.Repo.StrongReference to a repost record, if the repost is of a repost.
Repost(StrongReference, DateTimeOffset, StrongReference?)
Creates a new instance of idunno.Bluesky.Feed.Repost.
[JsonConstructor]
public Repost(StrongReference subject, DateTimeOffset createdAt, StrongReference? via)Parameters
subjectStrongReference-
The idunno.AtProto.Repo.StrongReference to the post to be reposted.
createdAtDateTimeOffset-
The System.DateTimeOffset for the repost creation date.
viaStrongReference?-
A idunno.AtProto.Repo.StrongReference to a repost record, if the repost is of a repost.
Repost(Repost)
protected Repost(Repost original)Parameters
originalRepost
Repost(StrongReference)
Creates a new instance of idunno.Bluesky.Feed.Repost, withidunno.Bluesky.Record.BlueskyTimestampedRecord.CreatedAt set to the current date and time.
public Repost(StrongReference subject)Parameters
subjectStrongReference-
The idunno.AtProto.Repo.StrongReference to the post to be reposted.
Repost(StrongReference, DateTimeOffset)
Creates a new instance of idunno.Bluesky.Feed.Repost.
public Repost(StrongReference subject, DateTimeOffset createdAt)Parameters
subjectStrongReference-
The idunno.AtProto.Repo.StrongReference to the post to be reposted.
createdAtDateTimeOffset-
The System.DateTimeOffset for the repost creation date.
Repost(StrongReference, StrongReference?)
Creates a new instance of idunno.Bluesky.Feed.Repost, withidunno.Bluesky.Record.BlueskyTimestampedRecord.CreatedAt set to the current date and time.
public Repost(StrongReference subject, StrongReference? via)Parameters
subjectStrongReference-
The idunno.AtProto.Repo.StrongReference to the post to be reposted.
viaStrongReference?-
A idunno.AtProto.Repo.StrongReference to a repost record, if the repost is of a repost.
Repost(StrongReference, DateTimeOffset, StrongReference?)
Creates a new instance of idunno.Bluesky.Feed.Repost.
[JsonConstructor]
public Repost(StrongReference subject, DateTimeOffset createdAt, StrongReference? via)Parameters
subjectStrongReference-
The idunno.AtProto.Repo.StrongReference to the post to be reposted.
createdAtDateTimeOffset-
The System.DateTimeOffset for the repost creation date.
viaStrongReference?-
A idunno.AtProto.Repo.StrongReference to a repost record, if the repost is of a repost.
Repost(Repost)
protected Repost(Repost original)Parameters
originalRepost
Properties
EqualityContract
protected override Type EqualityContract { get; }Property Value
EqualityContract
protected override Type EqualityContract { get; }Property Value
EqualityContract
protected override Type EqualityContract { get; }Property Value
Subject
Gets the idunno.AtProto.Repo.StrongReference to the post to be reposted.
[JsonInclude]
public StrongReference Subject { get; init; }Property Value
- StrongReference
Subject
Gets the idunno.AtProto.Repo.StrongReference to the post to be reposted.
[JsonInclude]
public StrongReference Subject { get; init; }Property Value
- StrongReference
Subject
Gets the idunno.AtProto.Repo.StrongReference to the post to be reposted.
[JsonInclude]
public StrongReference Subject { get; init; }Property Value
- StrongReference
Via
Gets the idunno.AtProto.Repo.StrongReference to the repost record, if the repost is of a repost.
[JsonInclude]
public StrongReference? Via { get; init; }Property Value
- StrongReference?
Via
Gets the idunno.AtProto.Repo.StrongReference to the repost record, if the repost is of a repost.
[JsonInclude]
public StrongReference? Via { get; init; }Property Value
- StrongReference?
Via
Gets the idunno.AtProto.Repo.StrongReference to the repost record, if the repost is of a repost.
[JsonInclude]
public StrongReference? Via { get; init; }Property Value
- StrongReference?
Methods
<Clone>$()
public override Repost <Clone>$()Returns
<Clone>$()
public override Repost <Clone>$()Returns
<Clone>$()
public override Repost <Clone>$()Returns
Equals(object?)
public override bool Equals(object? obj)Parameters
objobject?
Returns
Equals(BlueskyTimestampedRecord?)
public override sealed bool Equals(BlueskyTimestampedRecord? other)Parameters
otherBlueskyTimestampedRecord?
Returns
Equals(Repost?)
public virtual bool Equals(Repost? other)Parameters
otherRepost?
Returns
Equals(object?)
public override bool Equals(object? obj)Parameters
objobject?
Returns
Equals(BlueskyTimestampedRecord?)
public override sealed bool Equals(BlueskyTimestampedRecord? other)Parameters
otherBlueskyTimestampedRecord?
Returns
Equals(Repost?)
public virtual bool Equals(Repost? other)Parameters
otherRepost?
Returns
Equals(object?)
public override bool Equals(object? obj)Parameters
objobject?
Returns
Equals(BlueskyTimestampedRecord?)
public override sealed bool Equals(BlueskyTimestampedRecord? other)Parameters
otherBlueskyTimestampedRecord?
Returns
Equals(Repost?)
public virtual bool Equals(Repost? other)Parameters
otherRepost?
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 keys of idunno.AtProto.Repo.AtProtoRecord.ExtensionData rather than from its identity.
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 keys of idunno.AtProto.Repo.AtProtoRecord.ExtensionData rather than from its identity.
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 keys of idunno.AtProto.Repo.AtProtoRecord.ExtensionData rather than from its identity.
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 ==(Repost?, Repost?)
public static bool operator ==(Repost? left, Repost? right)Parameters
Returns
operator ==(Repost?, Repost?)
public static bool operator ==(Repost? left, Repost? right)Parameters
Returns
operator ==(Repost?, Repost?)
public static bool operator ==(Repost? left, Repost? right)Parameters
Returns
operator !=(Repost?, Repost?)
public static bool operator !=(Repost? left, Repost? right)Parameters
Returns
operator !=(Repost?, Repost?)
public static bool operator !=(Repost? left, Repost? right)Parameters
Returns
operator !=(Repost?, Repost?)
public static bool operator !=(Repost? left, Repost? right)