Table of Contents

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.EqualityContract
AtProtoRecord.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

subject StrongReference

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

subject StrongReference

The idunno.AtProto.Repo.StrongReference to the post to be liked.

via StrongReference?

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

subject StrongReference

The idunno.AtProto.Repo.StrongReference to the post to be liked.

createdAt DateTimeOffset

The System.DateTimeOffset for the repost creation date.

via StrongReference?

An optional idunno.AtProto.Repo.StrongReference to a repost record, if the like is of a repost.

Like(Like)

protected Like(Like original)

Parameters

original Like

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

subject StrongReference

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

subject StrongReference

The idunno.AtProto.Repo.StrongReference to the post to be liked.

via StrongReference?

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

subject StrongReference

The idunno.AtProto.Repo.StrongReference to the post to be liked.

createdAt DateTimeOffset

The System.DateTimeOffset for the repost creation date.

via StrongReference?

An optional idunno.AtProto.Repo.StrongReference to a repost record, if the like is of a repost.

Like(Like)

protected Like(Like original)

Parameters

original Like

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

subject StrongReference

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

subject StrongReference

The idunno.AtProto.Repo.StrongReference to the post to be liked.

via StrongReference?

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

subject StrongReference

The idunno.AtProto.Repo.StrongReference to the post to be liked.

createdAt DateTimeOffset

The System.DateTimeOffset for the repost creation date.

via StrongReference?

An optional idunno.AtProto.Repo.StrongReference to a repost record, if the like is of a repost.

Like(Like)

protected Like(Like original)

Parameters

original Like

Properties

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

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

Like

<Clone>$()

public override Like <Clone>$()

Returns

Like

<Clone>$()

public override Like <Clone>$()

Returns

Like

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object?

Returns

bool

Equals(BlueskyTimestampedRecord?)

public override sealed bool Equals(BlueskyTimestampedRecord? other)

Parameters

other BlueskyTimestampedRecord?

Returns

bool

Equals(Like?)

public virtual bool Equals(Like? other)

Parameters

other Like?

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object?

Returns

bool

Equals(BlueskyTimestampedRecord?)

public override sealed bool Equals(BlueskyTimestampedRecord? other)

Parameters

other BlueskyTimestampedRecord?

Returns

bool

Equals(Like?)

public virtual bool Equals(Like? other)

Parameters

other Like?

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object?

Returns

bool

Equals(BlueskyTimestampedRecord?)

public override sealed bool Equals(BlueskyTimestampedRecord? other)

Parameters

other BlueskyTimestampedRecord?

Returns

bool

Equals(Like?)

public virtual bool Equals(Like? other)

Parameters

other Like?

Returns

bool

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

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

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

Parameters

left Like?
right Like?

Returns

bool

operator ==(Like?, Like?)

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

Parameters

left Like?
right Like?

Returns

bool

operator ==(Like?, Like?)

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

Parameters

left Like?
right Like?

Returns

bool

operator !=(Like?, Like?)

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

Parameters

left Like?
right Like?

Returns

bool

operator !=(Like?, Like?)

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

Parameters

left Like?
right Like?

Returns

bool

operator !=(Like?, Like?)

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

Parameters

left Like?
right Like?

Returns

bool