2020-08-20 11:38:11 -04:00
|
|
|
|
using SharedLibraryCore.QueryHelper;
|
2020-05-22 21:29:41 -04:00
|
|
|
|
using System;
|
|
|
|
|
|
2020-08-20 11:38:11 -04:00
|
|
|
|
namespace Stats.Dtos
|
2020-05-22 21:29:41 -04:00
|
|
|
|
{
|
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;
|
2020-08-20 11:38:11 -04:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// indicates if the chat is on the meta page
|
|
|
|
|
/// </summary>
|
|
|
|
|
public bool IsProfileMeta { get; set; }
|
2020-05-22 21:29:41 -04:00
|
|
|
|
}
|
|
|
|
|
}
|