Table of Contents

Class AudioModule

Namespace
Kook
Assembly
Kook.Net.Core.dll

音频模块,可用于 ICard 中。

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

Properties

Cover

获取音频的封面的 URL。

public string? Cover { get; }

Property Value

string

Source

获取音频的 URL。

public string Source { get; }

Property Value

string

Title

获取音频的标题。

public string? Title { get; }

Property Value

string

Type

获取模块的类型。

public ModuleType Type { get; }

Property Value

ModuleType

Methods

Equals(AudioModule?)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(AudioModule? audioModule)

Parameters

audioModule AudioModule

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object?)

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

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

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

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

Operators

operator ==(AudioModule, AudioModule)

判定两个 AudioModule 是否相等。

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

Parameters

left AudioModule
right AudioModule

Returns

bool

如果两个 AudioModule 相等,则为 true;否则为 false

operator !=(AudioModule, AudioModule)

判定两个 AudioModule 是否不相等。

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

Parameters

left AudioModule
right AudioModule

Returns

bool

如果两个 AudioModule 不相等,则为 true;否则为 false