2020-12-27 12:39:25 +01:00
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
using System.Diagnostics.CodeAnalysis;
|
|
|
|
|
using Newtonsoft.Json;
|
2020-02-15 16:00:42 +03:00
|
|
|
|
|
|
|
|
namespace WotBlitzStatisticsPro.WgApiClient
|
|
|
|
|
{
|
2020-12-27 12:39:25 +01:00
|
|
|
internal 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
|
|
|
}
|
|
|
|
|
|
|
|
|
|
internal class Meta
|
|
|
|
|
{
|
|
|
|
|
[JsonProperty("count")]
|
|
|
|
|
public int Count { get; set; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
internal class Error
|
|
|
|
|
{
|
|
|
|
|
[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
|
|
|
}
|
|
|
|
|
}
|