[issue #139] client lookup and stats api
This commit is contained in:
15
SharedLibraryCore/Dtos/ErrorResponse.cs
Normal file
15
SharedLibraryCore/Dtos/ErrorResponse.cs
Normal 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; }
|
||||
}
|
||||
}
|
17
SharedLibraryCore/Dtos/FindClientRequest.cs
Normal file
17
SharedLibraryCore/Dtos/FindClientRequest.cs
Normal 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}]";
|
||||
}
|
||||
}
|
20
SharedLibraryCore/Dtos/FindClientResult.cs
Normal file
20
SharedLibraryCore/Dtos/FindClientResult.cs
Normal 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; }
|
||||
}
|
||||
}
|
@ -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
|
||||
|
Reference in New Issue
Block a user