#pragma warning disable CS1591 using Newtonsoft.Json; using Newtonsoft.Json.Serialization; using System.Runtime.Serialization; namespace Discord.API { internal class Game { [JsonProperty("name")] public string Name { get; set; } [JsonProperty("url")] public Optional StreamUrl { get; set; } [JsonProperty("type")] public Optional Type { get; set; } [JsonProperty("details")] public Optional Details { get; set; } [JsonProperty("state")] public Optional State { get; set; } [JsonProperty("application_id")] public Optional ApplicationId { get; set; } [JsonProperty("assets")] public Optional Assets { get; set; } [JsonProperty("party")] public Optional Party { get; set; } [JsonProperty("secrets")] public Optional Secrets { get; set; } [JsonProperty("timestamps")] public Optional Timestamps { get; set; } [JsonProperty("instance")] public Optional Instance { get; set; } [JsonProperty("sync_id")] public Optional SyncId { get; set; } [JsonProperty("session_id")] public Optional SessionId { get; set; } [JsonProperty("Flags")] public Optional Flags { get; set; } [JsonProperty("id")] public Optional Id { get; set; } [JsonProperty("emoji")] public Optional Emoji { get; set; } [JsonProperty("created_at")] public Optional CreatedAt { get; set; } [OnError] internal void OnError(StreamingContext context, ErrorContext errorContext) { errorContext.Handled = true; } } }