1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-07 21:58:06 -05:00
IW4M-Admin/Plugins/Web/StatsWeb/Dtos/ChatSearchQuery.cs
RaidMax 6f9051120d [issue 135] enhanced search
implement enhanced search for chat messages
2020-05-22 20:29:41 -05:00

34 lines
918 B
C#

using SharedLibraryCore.Dtos;
using System;
namespace StatsWeb.Dtos
{
public class ChatSearchQuery : PaginationInfo
{
/// <summary>
/// specifies the partial content of the message to search for
/// </summary>
public string MessageContains { get; set; }
/// <summary>
/// identifier for the server
/// </summary>
public string ServerId { get; set; }
/// <summary>
/// identifier for the client
/// </summary>
public int? ClientId { get; set; }
/// <summary>
/// only look for messages sent after this date
/// </summary>
public DateTime SentAfter { get; set; } = DateTime.UtcNow.AddYears(-100);
/// <summary>
/// only look for messages sent before this date0
/// </summary>
public DateTime SentBefore { get; set; } = DateTime.UtcNow;
}
}