2023-02-02 11:08:25 +05:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
|
|
|
|
namespace AsbCloudApp.Requests
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// параметры для запроса списка сообщений
|
|
|
|
|
/// </summary>
|
2023-02-03 11:15:14 +05:00
|
|
|
|
public class MessageRequestBase : RequestBase
|
2023-02-02 11:08:25 +05:00
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
2023-02-03 09:09:55 +05:00
|
|
|
|
/// категория
|
2023-02-02 11:08:25 +05:00
|
|
|
|
/// </summary>
|
|
|
|
|
public IEnumerable<int>? Categoryids { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2023-02-03 09:09:55 +05:00
|
|
|
|
/// начальная дата
|
2023-02-02 11:08:25 +05:00
|
|
|
|
/// </summary>
|
|
|
|
|
public DateTime? Begin { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2023-02-03 09:09:55 +05:00
|
|
|
|
/// конечная дата
|
2023-02-02 11:08:25 +05:00
|
|
|
|
/// </summary>
|
2023-02-03 11:15:14 +05:00
|
|
|
|
public DateTime? End { get; set; }
|
2023-02-02 11:08:25 +05:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
2023-02-03 09:09:55 +05:00
|
|
|
|
/// строка поиска
|
2023-02-02 11:08:25 +05:00
|
|
|
|
/// </summary>
|
|
|
|
|
public string? SearchString { get; set; }
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// параметры для запроса списка сообщений (с id скважины)
|
|
|
|
|
/// </summary>
|
2023-02-03 11:15:14 +05:00
|
|
|
|
public class MessageRequest : MessageRequestBase
|
|
|
|
|
{
|
2023-02-02 11:08:25 +05:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// id скважины
|
|
|
|
|
/// </summary>
|
|
|
|
|
public int IdWell { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// параметры для запроса списка сообщений (с id скважины)
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="request"></param>
|
|
|
|
|
/// <param name="idWell"></param>
|
|
|
|
|
public MessageRequest(MessageRequestBase request, int idWell)
|
|
|
|
|
{
|
|
|
|
|
this.IdWell = idWell;
|
|
|
|
|
|
2023-02-03 09:38:56 +05:00
|
|
|
|
this.Categoryids = request.Categoryids;
|
|
|
|
|
this.Begin = request.Begin;
|
|
|
|
|
this.End = request.End;
|
|
|
|
|
this.SearchString = request.SearchString;
|
|
|
|
|
|
2023-02-02 11:08:25 +05:00
|
|
|
|
this.Skip = request.Skip;
|
|
|
|
|
this.Take = request.Take;
|
|
|
|
|
this.SortFields = request.SortFields;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|