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