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