Class Card
- Namespace
- Kook
- Assembly
- Kook.Net.Core.dll
表示一个卡片对象,可用于卡片消息。
public class Card : ICard, IEquatable<Card>, IEquatable<ICard>
- Inheritance
-
Card
- Implements
- Inherited Members
- Extension Methods
Properties
Color
获取卡片侧边的颜色。
public Color? Color { get; }
Property Value
ModuleCount
获取卡片中模块的数量。
public int ModuleCount { get; }
Property Value
Modules
获取卡片的模块。
public ImmutableArray<IModule> Modules { get; }
Property Value
Size
获取卡片的大小。
public CardSize Size { get; }
Property Value
Theme
获取卡片的主题。
public CardTheme Theme { get; }
Property Value
Type
获取卡片的类型。
public CardType Type { get; }
Property Value
Methods
Equals(Card?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(Card? card)
Parameters
card
Card
Returns
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
obj
objectThe object to compare with the current object.
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
Operators
operator ==(Card, Card)
判定两个 Card 是否相等。
public static bool operator ==(Card left, Card right)
Parameters
Returns
operator !=(Card, Card)
判定两个 Card 是否不相等。
public static bool operator !=(Card left, Card right)