Table of Contents

Class ActionGroupModule

Namespace
Kook
Assembly
Kook.Net.Core.dll

Represents an action group module that can be used in an ICard.

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

Properties

Elements

Gets the elements of this module.

public ImmutableArray<ButtonElement> Elements { get; }

Property Value

ImmutableArray<ButtonElement>

An ImmutableArray<T> containing the elements of this module.

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

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

public bool Equals(ActionGroupModule? actionGroupModule)

Parameters

actionGroupModule ActionGroupModule

The ActionGroupModule to compare with the current ActionGroupModule.

Returns

bool

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

Equals(object?)

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

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current ActionGroupModule.

Returns

bool

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

Remarks

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

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

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

Parameters

left ActionGroupModule
right ActionGroupModule

Returns

bool

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

operator !=(ActionGroupModule, ActionGroupModule)

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

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

Parameters

left ActionGroupModule
right ActionGroupModule

Returns

bool

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