Table of Contents

Class CountdownModule

Namespace
Kook
Assembly
Kook.Net.Core.dll

Represents a countdown module that can be used in an ICard.

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

Properties

EndTime

Gets the end time of the countdown.

public DateTimeOffset EndTime { get; }

Property Value

DateTimeOffset

The end time of the countdown.

Mode

Gets the mode of the countdown.

public CountdownMode Mode { get; }

Property Value

CountdownMode

A CountdownMode value that represents the mode of the countdown.

StartTime

Gets the start time of the countdown.

public DateTimeOffset? StartTime { get; }

Property Value

DateTimeOffset?

The start time of the countdown.

Type

Gets the type of the module.

public ModuleType Type { get; }

Property Value

ModuleType

A ModuleType value that represents the type of the module.

Methods

Equals(CountdownModule?)

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

public bool Equals(CountdownModule? countdownModule)

Parameters

countdownModule CountdownModule

The CountdownModule to compare with the current CountdownModule.

Returns

bool

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

Equals(object?)

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

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current CountdownModule.

Returns

bool

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

Remarks

If the object passes is an CountdownModule, Equals(CountdownModule?) will be called to compare the 2 instances.

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

Operators

operator ==(CountdownModule, CountdownModule)

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

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

Parameters

left CountdownModule
right CountdownModule

Returns

bool

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

operator !=(CountdownModule, CountdownModule)

Determines whether the specified CountdownModule is not equal to the current CountdownModule.

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

Parameters

left CountdownModule
right CountdownModule

Returns

bool

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