Class VideoModule
- Namespace
- Kook
- Assembly
- Kook.Net.Core.dll
视频模块,可用于 ICard 中。
public class VideoModule : IMediaModule, IModule, IEquatable<VideoModule>, IEquatable<IModule>
- Inheritance
-
VideoModule
- Implements
- Inherited Members
- Extension Methods
Properties
Source
获取视频的 URL。
public string Source { get; }
Property Value
Title
获取视频的标题。
public string? Title { get; }
Property Value
Type
获取模块的类型。
public ModuleType Type { get; }
Property Value
Methods
Equals(VideoModule?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(VideoModule? videoModule)
Parameters
videoModule
VideoModule
Returns
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
obj
objectThe object to compare with the current object.
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
Operators
operator ==(VideoModule, VideoModule)
判定两个 VideoModule 是否相等。
public static bool operator ==(VideoModule left, VideoModule right)
Parameters
left
VideoModuleright
VideoModule
Returns
- bool
如果两个 VideoModule 相等,则为
true
;否则为false
。
operator !=(VideoModule, VideoModule)
判定两个 VideoModule 是否不相等。
public static bool operator !=(VideoModule left, VideoModule right)
Parameters
left
VideoModuleright
VideoModule
Returns
- bool
如果两个 VideoModule 不相等,则为
true
;否则为false
。