Table of Contents

Class VideoModule

Namespace
Kook
Assembly
Kook.Net.Core.dll

Represents a video module in an ICard.

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

Properties

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

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

public bool Equals(VideoModule? videoModule)

Parameters

videoModule VideoModule

The VideoModule to compare with the current VideoModule.

Returns

bool

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

Equals(object?)

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

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current VideoModule.

Returns

bool

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

Remarks

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

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

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

Parameters

left VideoModule
right VideoModule

Returns

bool

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

operator !=(VideoModule, VideoModule)

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

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

Parameters

left VideoModule
right VideoModule

Returns

bool

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