Table of Contents

Class Follow

Namespace
idunno.Bluesky.Graph
Assembly
idunno.Bluesky.dll

Encapsulates a follow record.

[JsonPolymorphic(IgnoreUnrecognizedTypeDiscriminators = true, UnknownDerivedTypeHandling = JsonUnknownDerivedTypeHandling.FallBackToNearestAncestor)]
[JsonDerivedType(typeof(Follow), "app.bsky.graph.follow")]
public record Follow : BlueskyTimestampedRecord, IEquatable<AtProtoRecord>, IEquatable<BlueskyRecord>, IEquatable<BlueskyTimestampedRecord>, IEquatable<Follow>

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

Follow(Did)

Creates a new instance of idunno.Bluesky.Graph.Follow with idunno.Bluesky.Record.BlueskyTimestampedRecord.CreatedAt set to the current date and time.

public Follow(Did subject)

Parameters

subject Did

The idunno.AtProto.Did to the actor to be followed.

Exceptions

ArgumentNullException

Thrown when subject is null.

Follow(Did, StrongReference?)

Creates a new instance of idunno.Bluesky.Graph.Follow with idunno.Bluesky.Record.BlueskyTimestampedRecord.CreatedAt set to the current date and time.

public Follow(Did subject, StrongReference? via)

Parameters

subject Did

The idunno.AtProto.Did to the actor to be followed.

via StrongReference?

A idunno.AtProto.Repo.StrongReference to the starter pack the follow originated from, if any.

Exceptions

ArgumentNullException

Thrown when subject is null.

Follow(Did, DateTimeOffset)

Creates a new instance of idunno.Bluesky.Graph.Follow.

public Follow(Did subject, DateTimeOffset createdAt)

Parameters

subject Did

The idunno.AtProto.Did to the actor to be followed.

createdAt DateTimeOffset

The System.DateTimeOffset for the repost creation date.

Exceptions

ArgumentNullException

Thrown when subject is null.

Follow(Did, StrongReference?, DateTimeOffset)

Creates a new instance of idunno.Bluesky.Graph.Follow.

[JsonConstructor]
public Follow(Did subject, StrongReference? via, DateTimeOffset createdAt)

Parameters

subject Did

The idunno.AtProto.Did to the actor to be followed.

via StrongReference?

A idunno.AtProto.Repo.StrongReference to the starter pack the follow originated from, if any.

createdAt DateTimeOffset

The System.DateTimeOffset for the repost creation date.

Exceptions

ArgumentNullException

Thrown when subject is null.

Follow(Follow)

protected Follow(Follow original)

Parameters

original Follow

Follow(Did)

Creates a new instance of idunno.Bluesky.Graph.Follow with idunno.Bluesky.Record.BlueskyTimestampedRecord.CreatedAt set to the current date and time.

public Follow(Did subject)

Parameters

subject Did

The idunno.AtProto.Did to the actor to be followed.

Exceptions

ArgumentNullException

Thrown when subject is null.

Follow(Did, StrongReference?)

Creates a new instance of idunno.Bluesky.Graph.Follow with idunno.Bluesky.Record.BlueskyTimestampedRecord.CreatedAt set to the current date and time.

public Follow(Did subject, StrongReference? via)

Parameters

subject Did

The idunno.AtProto.Did to the actor to be followed.

via StrongReference?

A idunno.AtProto.Repo.StrongReference to the starter pack the follow originated from, if any.

Exceptions

ArgumentNullException

Thrown when subject is null.

Follow(Did, DateTimeOffset)

Creates a new instance of idunno.Bluesky.Graph.Follow.

public Follow(Did subject, DateTimeOffset createdAt)

Parameters

subject Did

The idunno.AtProto.Did to the actor to be followed.

createdAt DateTimeOffset

The System.DateTimeOffset for the repost creation date.

Exceptions

ArgumentNullException

Thrown when subject is null.

Follow(Did, StrongReference?, DateTimeOffset)

Creates a new instance of idunno.Bluesky.Graph.Follow.

[JsonConstructor]
public Follow(Did subject, StrongReference? via, DateTimeOffset createdAt)

Parameters

subject Did

The idunno.AtProto.Did to the actor to be followed.

via StrongReference?

A idunno.AtProto.Repo.StrongReference to the starter pack the follow originated from, if any.

createdAt DateTimeOffset

The System.DateTimeOffset for the repost creation date.

Exceptions

ArgumentNullException

Thrown when subject is null.

Follow(Follow)

protected Follow(Follow original)

Parameters

original Follow

Follow(Did)

Creates a new instance of idunno.Bluesky.Graph.Follow with idunno.Bluesky.Record.BlueskyTimestampedRecord.CreatedAt set to the current date and time.

public Follow(Did subject)

Parameters

subject Did

The idunno.AtProto.Did to the actor to be followed.

Exceptions

ArgumentNullException

Thrown when subject is null.

Follow(Did, StrongReference?)

Creates a new instance of idunno.Bluesky.Graph.Follow with idunno.Bluesky.Record.BlueskyTimestampedRecord.CreatedAt set to the current date and time.

public Follow(Did subject, StrongReference? via)

Parameters

subject Did

The idunno.AtProto.Did to the actor to be followed.

via StrongReference?

A idunno.AtProto.Repo.StrongReference to the starter pack the follow originated from, if any.

Exceptions

ArgumentNullException

Thrown when subject is null.

Follow(Did, DateTimeOffset)

Creates a new instance of idunno.Bluesky.Graph.Follow.

public Follow(Did subject, DateTimeOffset createdAt)

Parameters

subject Did

The idunno.AtProto.Did to the actor to be followed.

createdAt DateTimeOffset

The System.DateTimeOffset for the repost creation date.

Exceptions

ArgumentNullException

Thrown when subject is null.

Follow(Did, StrongReference?, DateTimeOffset)

Creates a new instance of idunno.Bluesky.Graph.Follow.

[JsonConstructor]
public Follow(Did subject, StrongReference? via, DateTimeOffset createdAt)

Parameters

subject Did

The idunno.AtProto.Did to the actor to be followed.

via StrongReference?

A idunno.AtProto.Repo.StrongReference to the starter pack the follow originated from, if any.

createdAt DateTimeOffset

The System.DateTimeOffset for the repost creation date.

Exceptions

ArgumentNullException

Thrown when subject is null.

Follow(Follow)

protected Follow(Follow original)

Parameters

original Follow

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.Did of the actor being followed.

[JsonInclude]
[JsonRequired]
public Did Subject { get; init; }

Property Value

Did

Subject

Gets the idunno.AtProto.Did of the actor being followed.

[JsonInclude]
[JsonRequired]
public Did Subject { get; init; }

Property Value

Did

Subject

Gets the idunno.AtProto.Did of the actor being followed.

[JsonInclude]
[JsonRequired]
public Did Subject { get; init; }

Property Value

Did

Via

Gets a idunno.AtProto.Repo.StrongReference to the starter pack the follow originated from.

public StrongReference? Via { get; init; }

Property Value

StrongReference?

Via

Gets a idunno.AtProto.Repo.StrongReference to the starter pack the follow originated from.

public StrongReference? Via { get; init; }

Property Value

StrongReference?

Via

Gets a idunno.AtProto.Repo.StrongReference to the starter pack the follow originated from.

public StrongReference? Via { get; init; }

Property Value

StrongReference?

Methods

<Clone>$()

public override Follow <Clone>$()

Returns

Follow

<Clone>$()

public override Follow <Clone>$()

Returns

Follow

<Clone>$()

public override Follow <Clone>$()

Returns

Follow

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(Follow?)

public virtual bool Equals(Follow? other)

Parameters

other Follow?

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(Follow?)

public virtual bool Equals(Follow? other)

Parameters

other Follow?

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(Follow?)

public virtual bool Equals(Follow? other)

Parameters

other Follow?

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

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

Parameters

left Follow?
right Follow?

Returns

bool

operator ==(Follow?, Follow?)

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

Parameters

left Follow?
right Follow?

Returns

bool

operator ==(Follow?, Follow?)

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

Parameters

left Follow?
right Follow?

Returns

bool

operator !=(Follow?, Follow?)

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

Parameters

left Follow?
right Follow?

Returns

bool

operator !=(Follow?, Follow?)

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

Parameters

left Follow?
right Follow?

Returns

bool

operator !=(Follow?, Follow?)

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

Parameters

left Follow?
right Follow?

Returns

bool