28 lines
608 B
C#
28 lines
608 B
C#
using Newtonsoft.Json;
|
|
|
|
namespace Maki.Structures.Presences
|
|
{
|
|
/// <summary>
|
|
/// Discord API Game structure
|
|
/// </summary>
|
|
internal struct Game
|
|
{
|
|
/// <summary>
|
|
/// the game's name
|
|
/// </summary>
|
|
[JsonProperty("name")]
|
|
public string Name;
|
|
|
|
/// <summary>
|
|
/// see Game Types
|
|
/// </summary>
|
|
[JsonProperty("type")]
|
|
public GameType? Type;
|
|
|
|
/// <summary>
|
|
/// stream url, is validated when type is Streaming/1
|
|
/// </summary>
|
|
[JsonProperty("url")]
|
|
public string Url;
|
|
}
|
|
}
|