Table of Contents

Class InviteModule

Namespace
Kook
Assembly
Kook.Net.Core.dll

An invite module that can be used in an ICard.

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

Properties

Code

Gets the invite code.

public string? Code { get; }

Property Value

string

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(InviteModule?)

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

public bool Equals(InviteModule? inviteModule)

Parameters

inviteModule InviteModule

The InviteModule to compare with the current InviteModule.

Returns

bool

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

Equals(object?)

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

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current InviteModule.

Returns

bool

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

Remarks

If the object passes is an InviteModule, Equals(InviteModule?) 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 ==(InviteModule, InviteModule)

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

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

Parameters

left InviteModule
right InviteModule

Returns

bool

true if the specified InviteModule is equal to the current InviteModule;

operator !=(InviteModule, InviteModule)

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

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

Parameters

left InviteModule
right InviteModule

Returns

bool

true if the specified InviteModule is not equal to the current InviteModule;