add "advanced" search functionality

This commit is contained in:
RaidMax
2023-01-23 16:38:16 -06:00
parent c89314667c
commit ba40478d11
24 changed files with 771 additions and 44 deletions

View File

@ -0,0 +1,19 @@
using System;
using Data.Models;
using Data.Models.Client;
using SharedLibraryCore.QueryHelper;
namespace WebfrontCore.QueryHelpers.Models;
public class ClientResourceRequest : ClientPaginationRequest
{
public string ClientName { get; set; }
public bool IsExactClientName { get; set; }
public string ClientIp { get; set; }
public bool IsExactClientIp { get; set; }
public string ClientGuid { get; set; }
public DateTime? ClientConnected { get; set; }
public EFClient.Permission? ClientLevel { get; set; }
public Reference.Game? GameName { get; set; }
public bool IncludeGeolocationData { get; set; } = true;
}

View File

@ -0,0 +1,22 @@
using System;
using Data.Models;
using Data.Models.Client;
namespace WebfrontCore.QueryHelpers.Models;
public class ClientResourceResponse
{
public int ClientId { get; set; }
public int AliasId { get; set; }
public int LinkId { get; set; }
public string CurrentClientName { get; set; }
public string MatchedClientName { get; set; }
public int? CurrentClientIp { get; set; }
public int? MatchedClientIp { get; set; }
public string ClientCountryCode { get; set; }
public string ClientCountryDisplayName { get; set; }
public string ClientLevel { get; set; }
public EFClient.Permission ClientLevelValue { get; set; }
public DateTime LastConnection { get; set; }
public Reference.Game Game { get; set; }
}