Interface IGame
- Namespace
- Kook
- Assembly
- Kook.Net.Core.dll
Represents a generic game object.
public interface IGame : IActivity, IEntity<int>, IDeletable
- Inherited Members
Properties
GameType
Gets the type of the game.
GameType GameType { get; }
Property Value
- GameType
The type of the game.
Icon
Gets the URL of the game's icon.
string? Icon { get; }
Property Value
- string
A string representing the URL of the game's icon.
Name
Gets the name of the game.
string Name { get; }
Property Value
- string
A string containing the name of the game.
Options
Gets the additional information about the game.
string? Options { get; }
Property Value
- string
A string containing the additional information about the game.
ProcessNames
Gets the process names of the game.
IReadOnlyCollection<string> ProcessNames { get; }
Property Value
- IReadOnlyCollection<string>
An IReadOnlyCollection<T> containing the process names of the game.
ProductNames
Gets the product names of the game.
IReadOnlyCollection<string> ProductNames { get; }
Property Value
- IReadOnlyCollection<string>
An IReadOnlyCollection<T> containing the product names of the game.
RequireAdminPrivilege
Gets whether the Kook client needs administrator privileges to detect the game.
bool RequireAdminPrivilege { get; }
Property Value
- bool
true
if the Kook client needs administrator privileges to detect the game; otherwise,false
.
Methods
ModifyAsync(Action<GameProperties>, RequestOptions?)
Modifies this game.
Task<IGame> ModifyAsync(Action<GameProperties> func, RequestOptions? options = null)
Parameters
func
Action<GameProperties>A delegate containing the properties to modify the game with.
options
RequestOptionsThe options to be used when sending the request.
Returns
Remarks
This method modifies this game with the specified properties. To see an example of this method and what properties are available, please refer to GameProperties.