2020-12-29 19:23:02 +01:00
|
|
|
using Newtonsoft.Json;
|
2020-02-15 16:00:42 +03:00
|
|
|
|
|
|
|
|
namespace WotBlitzStatisticsPro.WgApiClient
|
|
|
|
|
{
|
2020-12-29 19:23:02 +01:00
|
|
|
public class ResponseBody<T> where T: class
|
2020-02-15 16:00:42 +03:00
|
|
|
{
|
|
|
|
|
[JsonProperty("status")]
|
2020-12-27 12:39:25 +01:00
|
|
|
public string? Status { get; set; }
|
2020-02-15 16:00:42 +03:00
|
|
|
|
|
|
|
|
[JsonProperty("meta")]
|
2020-12-27 12:39:25 +01:00
|
|
|
public Meta? Meta { get; set; }
|
2020-02-15 16:00:42 +03:00
|
|
|
|
|
|
|
|
[JsonProperty("data")]
|
2020-12-27 12:39:25 +01:00
|
|
|
public T? Data { get; set; }
|
2020-02-15 16:00:42 +03:00
|
|
|
|
|
|
|
|
[JsonProperty("error")]
|
2020-12-27 12:39:25 +01:00
|
|
|
public Error? Error { get; set; }
|
2020-02-15 16:00:42 +03:00
|
|
|
}
|
|
|
|
|
|
2020-12-29 19:23:02 +01:00
|
|
|
public class Meta
|
2020-02-15 16:00:42 +03:00
|
|
|
{
|
|
|
|
|
[JsonProperty("count")]
|
|
|
|
|
public int Count { get; set; }
|
|
|
|
|
}
|
|
|
|
|
|
2020-12-29 19:23:02 +01:00
|
|
|
public class Error
|
2020-02-15 16:00:42 +03:00
|
|
|
{
|
|
|
|
|
[JsonProperty("field")]
|
2020-12-27 12:39:25 +01:00
|
|
|
public string? Field { get; set; }
|
2020-02-15 16:00:42 +03:00
|
|
|
|
|
|
|
|
[JsonProperty("message")]
|
2020-12-27 12:39:25 +01:00
|
|
|
public string? Message { get; set; }
|
2020-02-15 16:00:42 +03:00
|
|
|
|
|
|
|
|
[JsonProperty("code")]
|
2020-12-27 12:39:25 +01:00
|
|
|
public string? Code { get; set; }
|
2020-02-15 16:00:42 +03:00
|
|
|
|
|
|
|
|
[JsonProperty("value")]
|
2020-12-27 12:39:25 +01:00
|
|
|
public string? Value { get; set; }
|
2020-02-15 16:00:42 +03:00
|
|
|
}
|
|
|
|
|
}
|