Table of Contents

Class CountdownModule

Namespace
Kook
Assembly
Kook.Net.Core.dll

倒计时模块,可用于 ICard 中。

public class CountdownModule : IModule, IEquatable<CountdownModule>, IEquatable<IModule>
Inheritance
CountdownModule
Implements
Inherited Members
Extension Methods

Properties

EndTime

获取倒计时的结束时间。

public DateTimeOffset EndTime { get; }

Property Value

DateTimeOffset

Mode

获取倒计时的显示模式。

public CountdownMode Mode { get; }

Property Value

CountdownMode

StartTime

获取倒计时的开始时间。

public DateTimeOffset? StartTime { get; }

Property Value

DateTimeOffset?

Type

获取模块的类型。

public ModuleType Type { get; }

Property Value

ModuleType

Methods

Equals(CountdownModule?)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(CountdownModule? countdownModule)

Parameters

countdownModule CountdownModule

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

Operators

operator ==(CountdownModule, CountdownModule)

判定两个 CountdownModule 是否相等。

public static bool operator ==(CountdownModule left, CountdownModule right)

Parameters

left CountdownModule
right CountdownModule

Returns

bool

如果两个 CountdownModule 相等,则为 true;否则为 false

operator !=(CountdownModule, CountdownModule)

判定两个 CountdownModule 是否不相等。

public static bool operator !=(CountdownModule left, CountdownModule right)

Parameters

left CountdownModule
right CountdownModule

Returns

bool

如果两个 CountdownModule 不相等,则为 true;否则为 false