Class FileModule
- Namespace
- Kook
- Assembly
- Kook.Net.Core.dll
A file module that can be used in an ICard.
public class FileModule : IMediaModule, IModule, IEquatable<FileModule>, IEquatable<IModule>
- Inheritance
-
FileModule
- Implements
- Inherited Members
- Extension Methods
Properties
Size
The size of the file in bytes.
public int? Size { get; }
Property Value
- int?
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(FileModule?)
Determines whether the specified FileModule is equal to the current FileModule.
public bool Equals(FileModule? fileModule)
Parameters
fileModule
FileModuleThe FileModule to compare with the current FileModule.
Returns
- bool
true
if the specified FileModule is equal to the current FileModule; otherwise,false
.
Equals(object?)
Determines whether the specified FileModule is equal to the current FileModule.
public override bool Equals(object? obj)
Parameters
obj
objectThe object to compare with the current FileModule.
Returns
- bool
true
if the specified FileModule is equal to the current FileModule; otherwise,false
.
Remarks
If the object passes is an FileModule, Equals(FileModule?) 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 ==(FileModule, FileModule)
Determines whether the specified FileModule is equal to the current FileModule.
public static bool operator ==(FileModule left, FileModule right)
Parameters
left
FileModuleright
FileModule
Returns
- bool
true
if the specified FileModule is equal to the current FileModule; otherwise,false
.
operator !=(FileModule, FileModule)
Determines whether the specified FileModule is not equal to the current FileModule.
public static bool operator !=(FileModule left, FileModule right)
Parameters
left
FileModuleright
FileModule
Returns
- bool
true
if the specified FileModule is not equal to the current FileModule; otherwise,false
.