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.EqualityContractAtProtoRecord.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
subjectDid-
The idunno.AtProto.Did to the actor to be followed.
Exceptions
- ArgumentNullException
-
Thrown when
subjectis 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
subjectDid-
The idunno.AtProto.Did to the actor to be followed.
viaStrongReference?-
A idunno.AtProto.Repo.StrongReference to the starter pack the follow originated from, if any.
Exceptions
- ArgumentNullException
-
Thrown when
subjectis null.
Follow(Did, DateTimeOffset)
Creates a new instance of idunno.Bluesky.Graph.Follow.
public Follow(Did subject, DateTimeOffset createdAt)Parameters
subjectDid-
The idunno.AtProto.Did to the actor to be followed.
createdAtDateTimeOffset-
The System.DateTimeOffset for the repost creation date.
Exceptions
- ArgumentNullException
-
Thrown when
subjectis null.
Follow(Did, StrongReference?, DateTimeOffset)
Creates a new instance of idunno.Bluesky.Graph.Follow.
[JsonConstructor]
public Follow(Did subject, StrongReference? via, DateTimeOffset createdAt)Parameters
subjectDid-
The idunno.AtProto.Did to the actor to be followed.
viaStrongReference?-
A idunno.AtProto.Repo.StrongReference to the starter pack the follow originated from, if any.
createdAtDateTimeOffset-
The System.DateTimeOffset for the repost creation date.
Exceptions
- ArgumentNullException
-
Thrown when
subjectis null.
Follow(Follow)
protected Follow(Follow original)Parameters
originalFollow
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
subjectDid-
The idunno.AtProto.Did to the actor to be followed.
Exceptions
- ArgumentNullException
-
Thrown when
subjectis 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
subjectDid-
The idunno.AtProto.Did to the actor to be followed.
viaStrongReference?-
A idunno.AtProto.Repo.StrongReference to the starter pack the follow originated from, if any.
Exceptions
- ArgumentNullException
-
Thrown when
subjectis null.
Follow(Did, DateTimeOffset)
Creates a new instance of idunno.Bluesky.Graph.Follow.
public Follow(Did subject, DateTimeOffset createdAt)Parameters
subjectDid-
The idunno.AtProto.Did to the actor to be followed.
createdAtDateTimeOffset-
The System.DateTimeOffset for the repost creation date.
Exceptions
- ArgumentNullException
-
Thrown when
subjectis null.
Follow(Did, StrongReference?, DateTimeOffset)
Creates a new instance of idunno.Bluesky.Graph.Follow.
[JsonConstructor]
public Follow(Did subject, StrongReference? via, DateTimeOffset createdAt)Parameters
subjectDid-
The idunno.AtProto.Did to the actor to be followed.
viaStrongReference?-
A idunno.AtProto.Repo.StrongReference to the starter pack the follow originated from, if any.
createdAtDateTimeOffset-
The System.DateTimeOffset for the repost creation date.
Exceptions
- ArgumentNullException
-
Thrown when
subjectis null.
Follow(Follow)
protected Follow(Follow original)Parameters
originalFollow
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
subjectDid-
The idunno.AtProto.Did to the actor to be followed.
Exceptions
- ArgumentNullException
-
Thrown when
subjectis 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
subjectDid-
The idunno.AtProto.Did to the actor to be followed.
viaStrongReference?-
A idunno.AtProto.Repo.StrongReference to the starter pack the follow originated from, if any.
Exceptions
- ArgumentNullException
-
Thrown when
subjectis null.
Follow(Did, DateTimeOffset)
Creates a new instance of idunno.Bluesky.Graph.Follow.
public Follow(Did subject, DateTimeOffset createdAt)Parameters
subjectDid-
The idunno.AtProto.Did to the actor to be followed.
createdAtDateTimeOffset-
The System.DateTimeOffset for the repost creation date.
Exceptions
- ArgumentNullException
-
Thrown when
subjectis null.
Follow(Did, StrongReference?, DateTimeOffset)
Creates a new instance of idunno.Bluesky.Graph.Follow.
[JsonConstructor]
public Follow(Did subject, StrongReference? via, DateTimeOffset createdAt)Parameters
subjectDid-
The idunno.AtProto.Did to the actor to be followed.
viaStrongReference?-
A idunno.AtProto.Repo.StrongReference to the starter pack the follow originated from, if any.
createdAtDateTimeOffset-
The System.DateTimeOffset for the repost creation date.
Exceptions
- ArgumentNullException
-
Thrown when
subjectis null.
Follow(Follow)
protected Follow(Follow original)Parameters
originalFollow
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.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
<Clone>$()
public override Follow <Clone>$()Returns
<Clone>$()
public override Follow <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(Follow?)
public virtual bool Equals(Follow? other)Parameters
otherFollow?
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(Follow?)
public virtual bool Equals(Follow? other)Parameters
otherFollow?
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(Follow?)
public virtual bool Equals(Follow? other)Parameters
otherFollow?
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 ==(Follow?, Follow?)
public static bool operator ==(Follow? left, Follow? right)Parameters
Returns
operator ==(Follow?, Follow?)
public static bool operator ==(Follow? left, Follow? right)Parameters
Returns
operator ==(Follow?, Follow?)
public static bool operator ==(Follow? left, Follow? right)Parameters
Returns
operator !=(Follow?, Follow?)
public static bool operator !=(Follow? left, Follow? right)Parameters
Returns
operator !=(Follow?, Follow?)
public static bool operator !=(Follow? left, Follow? right)Parameters
Returns
operator !=(Follow?, Follow?)
public static bool operator !=(Follow? left, Follow? right)