Rethinking the API

This commit is contained in:
Mikhail Shabanov committed 2020-04-14 11:16:51 +02:00
1 parent 83628d21bd
commit a4b3ae96fd
11 files changed
+127 -16

No files matched your search

@@ -0,0 +1,10 @@
using System.Collections.Generic;
namespace WotBlitzStatisticsPro.Common.Model
{
public class AccountsSearchResponse
{
public int AccountsCount { get; set; }
public ICollection<AccountsSearchResponseItem> Accounts { get; set; }
}
}
@@ -0,0 +1,15 @@
namespace WotBlitzStatisticsPro.Common.Model
{
public class AccountsSearchResponseItem
{
///<summary>
/// Player accountId
///</summary>
public long AccountId { get; set; }
///<summary>
/// Player nick
///</summary>
public string Nickname { get; set; }
}
}
@@ -4,6 +4,7 @@ using System.Text;
namespace WotBlitzStatisticsPro.Common.Model
{
[Obsolete("Use AccountsSearchResponse instead")]
public class AccountsSearchResult
{
public int TotalAccountsCount { get; set; }