using SharedLibraryCore.Dtos; using System; namespace StatsWeb.Dtos { public class ChatSearchQuery : PaginationInfo { /// /// 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 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; } }