NadekoBot/NadekoBot.Modules.Searches/Common/OverwatchApiModel.cs

60 lines
1.4 KiB
C#
Raw Normal View History

2016-12-15 15:03:48 +00:00
using Newtonsoft.Json;
2017-07-17 19:42:36 +00:00
namespace NadekoBot.Modules.Searches.Common
2016-12-15 15:03:48 +00:00
{
public class OverwatchApiModel
{
public OverwatchPlayer Player { get; set; }
2017-05-17 17:43:30 +00:00
public class OverwatchResponse
{
public object _request;
public OverwatchPlayer Eu { get; set; }
public OverwatchPlayer Kr { get; set; }
public OverwatchPlayer Us { get; set; }
}
2016-12-15 15:03:48 +00:00
public class OverwatchPlayer
{
2017-05-17 17:43:30 +00:00
public StatsField Stats { get; set; }
}
public class StatsField
{
public Stats Quickplay { get; set; }
public Stats Competitive { get; set; }
2016-12-15 15:03:48 +00:00
}
2017-05-17 17:43:30 +00:00
public class Stats
{
[JsonProperty("overall_stats")]
public OverallStats OverallStats { get; set; }
[JsonProperty("game_stats")]
public GameStats GameStats { get; set; }
}
public class OverallStats
2016-12-15 15:03:48 +00:00
{
2017-05-17 17:43:30 +00:00
public int? comprank;
public int level;
public int prestige;
public string avatar;
public int wins;
public int losses;
public int games;
public string rank_image;
}
public class GameStats
{
[JsonProperty("time_played")]
public float timePlayed;
}
public class Competitive
{
2016-12-15 15:03:48 +00:00
}
}
}