[issue #139] client lookup and stats api

This commit is contained in:
RaidMax
2020-05-24 21:22:26 -05:00
parent 4457ee5461
commit 30f2f7bf09
32 changed files with 907 additions and 36 deletions

View File

@ -0,0 +1,15 @@
namespace SharedLibraryCore.Dtos
{
public class ErrorResponse
{
/// <summary>
/// todo: type of error
/// </summary>
public string Type { get; set; }
/// <summary>
/// relevant error messages
/// </summary>
public string[] Messages { get; set; }
}
}

View File

@ -0,0 +1,17 @@
namespace SharedLibraryCore.Dtos
{
public class FindClientRequest : PaginationInfo
{
/// <summary>
/// name of client
/// </summary>
public string Name { get; set; }
/// <summary>
/// network id of client
/// </summary>
public string Xuid { get; set; }
public string ToDebugString() => $"[Name={Name}, Xuid={Xuid}]";
}
}

View File

@ -0,0 +1,20 @@
namespace SharedLibraryCore.Dtos
{
public class FindClientResult
{
/// <summary>
/// client identifier
/// </summary>
public int ClientId { get; set; }
/// <summary>
/// networkid of client
/// </summary>
public string Xuid { get; set; }
/// <summary>
/// name of client
/// </summary>
public string Name { get; set; }
}
}

View File

@ -13,7 +13,7 @@
/// <summary>
/// how many itesm to take
/// </summary>
public int Count { get; set; }
public int Count { get; set; } = 100;
/// <summary>
/// filter query