mirror of
https://github.com/RaidMax/IW4M-Admin.git
synced 2025-06-10 15:20:48 -05:00
add chat to advanced search
This commit is contained in:
9
WebfrontCore/QueryHelpers/Models/ChatResourceRequest.cs
Normal file
9
WebfrontCore/QueryHelpers/Models/ChatResourceRequest.cs
Normal file
@ -0,0 +1,9 @@
|
||||
using Stats.Dtos;
|
||||
|
||||
namespace WebfrontCore.QueryHelpers.Models;
|
||||
|
||||
public class ChatResourceRequest : ChatSearchQuery
|
||||
{
|
||||
public bool HasData => !string.IsNullOrEmpty(MessageContains) || !string.IsNullOrEmpty(ServerId) ||
|
||||
ClientId is not null || SentAfterDateTime is not null;
|
||||
}
|
@ -16,4 +16,7 @@ public class ClientResourceRequest : ClientPaginationRequest
|
||||
public EFClient.Permission? ClientLevel { get; set; }
|
||||
public Reference.Game? GameName { get; set; }
|
||||
public bool IncludeGeolocationData { get; set; } = true;
|
||||
|
||||
public bool HasData => !string.IsNullOrEmpty(ClientName) || !string.IsNullOrEmpty(ClientIp) ||
|
||||
!string.IsNullOrEmpty(ClientGuid) || ClientLevel is not null || GameName is not null;
|
||||
}
|
||||
|
Reference in New Issue
Block a user