mirror of
https://github.com/DrMboga/WotBlitzStatisticsBlazor.git
synced 2026-10-23 19:30:06 +02:00
Renamed account info model
This commit is contained in:
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,
|
RealmType realmType = RealmType.Ru,
|
||||||
RequestLanguage language = RequestLanguage.En);
|
RequestLanguage language = RequestLanguage.En);
|
||||||
|
|
||||||
Task<AccountInfo> GetPlayerAccountInfo(long accountId,
|
Task<WotAccountInfo> GetPlayerAccountInfo(long accountId,
|
||||||
RealmType realmType = RealmType.Ru,
|
RealmType realmType = RealmType.Ru,
|
||||||
RequestLanguage language = RequestLanguage.En);
|
RequestLanguage language = RequestLanguage.En);
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
namespace WotBlitzStatisticsPro.WgApiClient.Model
|
namespace WotBlitzStatisticsPro.WgApiClient.Model
|
||||||
{
|
{
|
||||||
public class AccountFullStatistics
|
public class WotAccountFullStatistics
|
||||||
{
|
{
|
||||||
///<summary>
|
///<summary>
|
||||||
/// Battles count
|
/// Battles count
|
||||||
+3
-3
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
namespace WotBlitzStatisticsPro.WgApiClient.Model
|
namespace WotBlitzStatisticsPro.WgApiClient.Model
|
||||||
{
|
{
|
||||||
public class AccountInfo
|
public class WotAccountInfo
|
||||||
{
|
{
|
||||||
///<summary>
|
///<summary>
|
||||||
/// Player account identifier
|
/// Player account identifier
|
||||||
@@ -38,12 +38,12 @@ namespace WotBlitzStatisticsPro.WgApiClient.Model
|
|||||||
/// Private account data
|
/// Private account data
|
||||||
///</summary>
|
///</summary>
|
||||||
[JsonProperty("private")]
|
[JsonProperty("private")]
|
||||||
public AccountPrivateInfo Private { get; set; }
|
public WotAccountPrivateInfo Private { get; set; }
|
||||||
|
|
||||||
///<summary>
|
///<summary>
|
||||||
/// Player's statistics
|
/// Player's statistics
|
||||||
///</summary>
|
///</summary>
|
||||||
[JsonProperty("statistics")]
|
[JsonProperty("statistics")]
|
||||||
public AccountStatistics Statistics { get; set; }
|
public WotAccountStatistics Statistics { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
+3
-3
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
namespace WotBlitzStatisticsPro.WgApiClient.Model
|
namespace WotBlitzStatisticsPro.WgApiClient.Model
|
||||||
{
|
{
|
||||||
public class AccountPrivateInfo
|
public class WotAccountPrivateInfo
|
||||||
{
|
{
|
||||||
///<summary>
|
///<summary>
|
||||||
/// Account ban info
|
/// Account ban info
|
||||||
@@ -57,13 +57,13 @@ namespace WotBlitzStatisticsPro.WgApiClient.Model
|
|||||||
///Дополнительное поле.
|
///Дополнительное поле.
|
||||||
///</summary>
|
///</summary>
|
||||||
[JsonProperty("grouped_contacts")]
|
[JsonProperty("grouped_contacts")]
|
||||||
public AccountPrivateInfoGroupedContacts GroupedContacts { get; set; }
|
public WotAccountPrivateInfoGroupedContacts GroupedContacts { get; set; }
|
||||||
|
|
||||||
///<summary>
|
///<summary>
|
||||||
///Ограничения аккаунта
|
///Ограничения аккаунта
|
||||||
///</summary>
|
///</summary>
|
||||||
[JsonProperty("restrictions")]
|
[JsonProperty("restrictions")]
|
||||||
public AccountPrivateInfoRestrictions Restrictions { get; set; }
|
public WotAccountPrivateInfoRestrictions Restrictions { get; set; }
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
+1
-1
@@ -3,7 +3,7 @@ using System.Collections.Generic;
|
|||||||
|
|
||||||
namespace WotBlitzStatisticsPro.WgApiClient.Model
|
namespace WotBlitzStatisticsPro.WgApiClient.Model
|
||||||
{
|
{
|
||||||
public class AccountPrivateInfoGroupedContacts
|
public class WotAccountPrivateInfoGroupedContacts
|
||||||
{
|
{
|
||||||
///<summary>
|
///<summary>
|
||||||
/// Blocked accountIds
|
/// Blocked accountIds
|
||||||
+1
-1
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
namespace WotBlitzStatisticsPro.WgApiClient.Model
|
namespace WotBlitzStatisticsPro.WgApiClient.Model
|
||||||
{
|
{
|
||||||
public class AccountPrivateInfoRestrictions
|
public class WotAccountPrivateInfoRestrictions
|
||||||
{
|
{
|
||||||
///<summary>
|
///<summary>
|
||||||
/// Clan chat ban time
|
/// Clan chat ban time
|
||||||
+2
-2
@@ -3,7 +3,7 @@ using System.Collections.Generic;
|
|||||||
|
|
||||||
namespace WotBlitzStatisticsPro.WgApiClient.Model
|
namespace WotBlitzStatisticsPro.WgApiClient.Model
|
||||||
{
|
{
|
||||||
public class AccountStatistics
|
public class WotAccountStatistics
|
||||||
{
|
{
|
||||||
///<summary>
|
///<summary>
|
||||||
/// Amount of destroyed by player tanks.
|
/// Amount of destroyed by player tanks.
|
||||||
@@ -15,6 +15,6 @@ namespace WotBlitzStatisticsPro.WgApiClient.Model
|
|||||||
/// Full player's statistics
|
/// Full player's statistics
|
||||||
///</summary>
|
///</summary>
|
||||||
[JsonProperty("all")]
|
[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,
|
RealmType realmType = RealmType.Ru,
|
||||||
RequestLanguage language = RequestLanguage.En)
|
RequestLanguage language = RequestLanguage.En)
|
||||||
{
|
{
|
||||||
var account = await GetFromBlitzApi<Dictionary<string, AccountInfo>>(
|
var account = await GetFromBlitzApi<Dictionary<string, WotAccountInfo>>(
|
||||||
realmType,
|
realmType,
|
||||||
language,
|
language,
|
||||||
"account/info/",
|
"account/info/",
|
||||||
|
|||||||
Reference in new issue
Block a user