Class JoinLink
- Namespace
- idunno.Bluesky.Chat.Embed
- Assembly
- idunno.Bluesky.dll
Encapsulates a join link embedded in a group chat.
[JsonPolymorphic(IgnoreUnrecognizedTypeDiscriminators = true, UnknownDerivedTypeHandling = JsonUnknownDerivedTypeHandling.FailSerialization)]
[JsonDerivedType(typeof(JoinLink), "chat.bsky.embed.joinLink")]
public record JoinLink : EmbeddedBase, IEquatable<AtProtoRecord>, IEquatable<EmbeddedBase>, IEquatable<JoinLink>Inheritance
-
AtProtoRecord
Implements
Inherited Members
-
AtProtoRecord.Equals(AtProtoRecord?)AtProtoRecord.GetHashCode()AtProtoRecord.ToString()AtProtoRecord.PrintMembers(StringBuilder)AtProtoRecord.Equals(object?)AtProtoRecord.<Clone>$()AtProtoRecord.EqualityContractAtProtoRecord.ExtensionData
Constructors
JoinLink(string)
Creates a new instance of the idunno.Bluesky.Chat.Embed.JoinLink class.
[JsonConstructor]
public JoinLink(string code)Parameters
codestring-
The join link code.
Exceptions
- ArgumentNullException
-
Thrown when
codeis null.
JoinLink(JoinLink)
protected JoinLink(JoinLink original)Parameters
originalJoinLink
JoinLink(string)
Creates a new instance of the idunno.Bluesky.Chat.Embed.JoinLink class.
[JsonConstructor]
public JoinLink(string code)Parameters
codestring-
The join link code.
Exceptions
- ArgumentNullException
-
Thrown when
codeis null.
JoinLink(JoinLink)
protected JoinLink(JoinLink original)Parameters
originalJoinLink
JoinLink(string)
Creates a new instance of the idunno.Bluesky.Chat.Embed.JoinLink class.
[JsonConstructor]
public JoinLink(string code)Parameters
codestring-
The join link code.
Exceptions
- ArgumentNullException
-
Thrown when
codeis null.
JoinLink(JoinLink)
protected JoinLink(JoinLink original)Parameters
originalJoinLink
Properties
Code
Gets the join link code.
[JsonRequired]
public string Code { get; init; }Property Value
Code
Gets the join link code.
[JsonRequired]
public string Code { get; init; }Property Value
Code
Gets the join link code.
[JsonRequired]
public string Code { get; init; }Property Value
EqualityContract
protected override Type EqualityContract { get; }Property Value
EqualityContract
protected override Type EqualityContract { get; }Property Value
EqualityContract
protected override Type EqualityContract { get; }Property Value
Methods
<Clone>$()
public override JoinLink <Clone>$()Returns
<Clone>$()
public override JoinLink <Clone>$()Returns
<Clone>$()
public override JoinLink <Clone>$()Returns
Equals(object?)
public override bool Equals(object? obj)Parameters
objobject?
Returns
Equals(EmbeddedBase?)
public override sealed bool Equals(EmbeddedBase? other)Parameters
otherEmbeddedBase?
Returns
Equals(JoinLink?)
public virtual bool Equals(JoinLink? other)Parameters
otherJoinLink?
Returns
Equals(object?)
public override bool Equals(object? obj)Parameters
objobject?
Returns
Equals(EmbeddedBase?)
public override sealed bool Equals(EmbeddedBase? other)Parameters
otherEmbeddedBase?
Returns
Equals(JoinLink?)
public virtual bool Equals(JoinLink? other)Parameters
otherJoinLink?
Returns
Equals(object?)
public override bool Equals(object? obj)Parameters
objobject?
Returns
Equals(EmbeddedBase?)
public override sealed bool Equals(EmbeddedBase? other)Parameters
otherEmbeddedBase?
Returns
Equals(JoinLink?)
public virtual bool Equals(JoinLink? other)Parameters
otherJoinLink?
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 ==(JoinLink?, JoinLink?)
public static bool operator ==(JoinLink? left, JoinLink? right)Parameters
Returns
operator ==(JoinLink?, JoinLink?)
public static bool operator ==(JoinLink? left, JoinLink? right)Parameters
Returns
operator ==(JoinLink?, JoinLink?)
public static bool operator ==(JoinLink? left, JoinLink? right)Parameters
Returns
operator !=(JoinLink?, JoinLink?)
public static bool operator !=(JoinLink? left, JoinLink? right)Parameters
Returns
operator !=(JoinLink?, JoinLink?)
public static bool operator !=(JoinLink? left, JoinLink? right)Parameters
Returns
operator !=(JoinLink?, JoinLink?)
public static bool operator !=(JoinLink? left, JoinLink? right)