Renamed account info model

This commit is contained in:
Mikhail Shabanov committed 2020-06-07 14:48:39 +02:00
1 parent 4a11ed61df
commit 9b80314b92
8 files changed
+14 -14

No files matched your search

@@ -15,7 +15,7 @@ namespace WotBlitzStatisticsPro.WgApiClient
RealmType realmType = RealmType.Ru,
RequestLanguage language = RequestLanguage.En);
Task<AccountInfo> GetPlayerAccountInfo(long accountId,
Task<WotAccountInfo> GetPlayerAccountInfo(long accountId,
RealmType realmType = RealmType.Ru,
RequestLanguage language = RequestLanguage.En);
@@ -2,7 +2,7 @@
namespace WotBlitzStatisticsPro.WgApiClient.Model
{
public class AccountFullStatistics
public class WotAccountFullStatistics
{
///<summary>
/// Battles count
@@ -2,7 +2,7 @@
namespace WotBlitzStatisticsPro.WgApiClient.Model
{
public class AccountInfo
public class WotAccountInfo
{
///<summary>
/// Player account identifier
@@ -38,12 +38,12 @@ namespace WotBlitzStatisticsPro.WgApiClient.Model
/// Private account data
///</summary>
[JsonProperty("private")]
public AccountPrivateInfo Private { get; set; }
public WotAccountPrivateInfo Private { get; set; }
///<summary>
/// Player's statistics
///</summary>
[JsonProperty("statistics")]
public AccountStatistics Statistics { get; set; }
public WotAccountStatistics Statistics { get; set; }
}
}
@@ -2,7 +2,7 @@
namespace WotBlitzStatisticsPro.WgApiClient.Model
{
public class AccountPrivateInfo
public class WotAccountPrivateInfo
{
///<summary>
/// Account ban info
@@ -57,13 +57,13 @@ namespace WotBlitzStatisticsPro.WgApiClient.Model
///Дополнительное поле.
///</summary>
[JsonProperty("grouped_contacts")]
public AccountPrivateInfoGroupedContacts GroupedContacts { get; set; }
public WotAccountPrivateInfoGroupedContacts GroupedContacts { get; set; }
///<summary>
///Ограничения аккаунта
///</summary>
[JsonProperty("restrictions")]
public AccountPrivateInfoRestrictions Restrictions { get; set; }
public WotAccountPrivateInfoRestrictions Restrictions { get; set; }
}
}
@@ -3,7 +3,7 @@ using System.Collections.Generic;
namespace WotBlitzStatisticsPro.WgApiClient.Model
{
public class AccountPrivateInfoGroupedContacts
public class WotAccountPrivateInfoGroupedContacts
{
///<summary>
/// Blocked accountIds
@@ -2,7 +2,7 @@
namespace WotBlitzStatisticsPro.WgApiClient.Model
{
public class AccountPrivateInfoRestrictions
public class WotAccountPrivateInfoRestrictions
{
///<summary>
/// Clan chat ban time
@@ -3,7 +3,7 @@ using System.Collections.Generic;
namespace WotBlitzStatisticsPro.WgApiClient.Model
{
public class AccountStatistics
public class WotAccountStatistics
{
///<summary>
/// Amount of destroyed by player tanks.
@@ -15,6 +15,6 @@ namespace WotBlitzStatisticsPro.WgApiClient.Model
/// Full player's statistics
///</summary>
[JsonProperty("all")]
public AccountFullStatistics All { get; set; }
public WotAccountFullStatistics All { get; set; }
}
}
@@ -93,11 +93,11 @@ namespace WotBlitzStatisticsPro.WgApiClient
public async Task<AccountInfo> GetPlayerAccountInfo(long accountId,
public async Task<WotAccountInfo> GetPlayerAccountInfo(long accountId,
RealmType realmType = RealmType.Ru,
RequestLanguage language = RequestLanguage.En)
{
var account = await GetFromBlitzApi<Dictionary<string, AccountInfo>>(
var account = await GetFromBlitzApi<Dictionary<string, WotAccountInfo>>(
realmType,
language,
"account/info/",