Table of Contents

Class AudioModule

Namespace
Kook
Assembly
Kook.Net.Core.dll

Represents an audio module that can be used in an ICard.

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

Properties

Cover

Gets the cover of the audio associated with this module.

public string? Cover { get; }

Property Value

string

A string representing the cover of the audio associated with this module.

Source

Gets the source of the media associated with this module.

public string Source { get; }

Property Value

string

A string representing the source of the audio associated with this module.

Title

Gets the title of the media associated with this module.

public string? Title { get; }

Property Value

string

A string representing the title of the media associated with 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(AudioModule?)

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

public bool Equals(AudioModule? audioModule)

Parameters

audioModule AudioModule

The AudioModule to compare with the current AudioModule.

Returns

bool

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

Equals(object?)

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

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current AudioModule.

Returns

bool

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

Remarks

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

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

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

Parameters

left AudioModule
right AudioModule

Returns

bool

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

operator !=(AudioModule, AudioModule)

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

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

Parameters

left AudioModule
right AudioModule

Returns

bool

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