1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-07 21:58:06 -05:00
IW4M-Admin/WebfrontCore/QueryHelpers/Models/ClientResourceRequest.cs
2024-07-16 22:27:27 +01:00

25 lines
1022 B
C#

using System;
using Data.Models;
using Data.Models.Client;
using SharedLibraryCore.QueryHelper;
namespace IW4MAdmin.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;
public EFClient.Permission RequesterPermission { get; set; } = EFClient.Permission.User;
public bool HasData => !string.IsNullOrEmpty(ClientName) || !string.IsNullOrEmpty(ClientIp) ||
!string.IsNullOrEmpty(ClientGuid) || ClientLevel is not null || GameName is not null;
}