Clans search method

This commit is contained in:
Mikhail Shabanov committed 2020-05-19 14:22:47 +02:00
1 parent ed770e8c30
commit 5b88704edf
13 files changed
+179 -1

No files matched your search

@@ -2,9 +2,18 @@
namespace WotBlitzStatisticsPro.Common.Model
{
/// <summary>
/// Response contains a list of found accounts
/// </summary>
public class AccountsSearchResponse
{
/// <summary>
/// Count of found accounts
/// </summary>
public int AccountsCount { get; set; }
/// <summary>
/// Found accounts list
/// </summary>
public ICollection<AccountsSearchResponseItem> Accounts { get; set; }
}
}
@@ -1,5 +1,8 @@
namespace WotBlitzStatisticsPro.Common.Model
{
/// <summary>
/// Account search result item
/// </summary>
public class AccountsSearchResponseItem
{
///<summary>
@@ -0,0 +1,19 @@
using System.Collections.Generic;
namespace WotBlitzStatisticsPro.Common.Model
{
/// <summary>
/// Response with list of found clans
/// </summary>
public class ClanSearchResponse
{
/// <summary>
/// Count of clans in the list
/// </summary>
public int ClansCount { get; set; }
/// <summary>
/// List of clans
/// </summary>
public ICollection<ClanSearchResponseItem> Clans { get; set; }
}
}
@@ -0,0 +1,34 @@
namespace WotBlitzStatisticsPro.Common.Model
{
/// <summary>
/// Found clans list item
/// </summary>
public class ClanSearchResponseItem
{
///<summary>
/// Clan Id
///</summary>
public long ClanId { get; set; }
///<summary>
/// Clan Tag
///</summary>
public string Tag { get; set; }
///<summary>
/// Clan Name
///</summary>
public string Name { get; set; }
///<summary>
/// Clan created at. (UNIX Epoch time)
///</summary>
public int CreatedAt { get; set; }
///<summary>
/// Clan members count
///</summary>
public int MembersCount { get; set; }
}
}
@@ -2,6 +2,7 @@
<PropertyGroup>
<TargetFramework>netstandard2.1</TargetFramework>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
</PropertyGroup>
</Project>