2020-05-22 21:29:41 -04:00
|
|
|
|
using SharedLibraryCore.Dtos;
|
2020-08-17 22:21:11 -04:00
|
|
|
|
using SharedLibraryCore.QueryHelper;
|
2020-05-22 21:29:41 -04:00
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
namespace StatsWeb.Dtos
|
|
|
|
|
{
|
2020-08-17 22:21:11 -04:00
|
|
|
|
public class ChatSearchQuery : ClientPaginationRequest
|
2020-05-22 21:29:41 -04:00
|
|
|
|
{
|
|
|
|
|
/// <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>
|
2020-08-17 22:21:11 -04:00
|
|
|
|
public new int? ClientId { get; set; }
|
2020-05-22 21:29:41 -04:00
|
|
|
|
|
|
|
|
|
/// <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;
|
|
|
|
|
}
|
|
|
|
|
}
|