Table of Contents

Class ImageGroupModule

Namespace
Kook
Assembly
Kook.Net.Core.dll

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

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

Properties

Elements

Gets the image elements in this image group module.

public ImmutableArray<ImageElement> Elements { get; }

Property Value

ImmutableArray<ImageElement>

An ImmutableArray<T> representing the images in this image group 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(ImageGroupModule?)

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

public bool Equals(ImageGroupModule? imageGroupModule)

Parameters

imageGroupModule ImageGroupModule

The ImageGroupModule to compare with the current ImageGroupModule.

Returns

bool

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

Equals(object?)

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

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current ImageGroupModule.

Returns

bool

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

Remarks

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

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

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

Parameters

left ImageGroupModule
right ImageGroupModule

Returns

bool

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

operator !=(ImageGroupModule, ImageGroupModule)

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

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

Parameters

left ImageGroupModule
right ImageGroupModule

Returns

bool

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