DD.WellWorkover.Cloud/AsbCloudApp/Requests/MessageRequest.cs

64 lines
1.6 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AsbCloudApp.Requests
{
#nullable enable
/// <summary>
/// параметры для запроса списка сообщений
/// </summary>
public class MessageRequestBase: RequestBase
{
/// <summary>
///
/// </summary>
public IEnumerable<int>? Categoryids { get; set; }
/// <summary>
///
/// </summary>
public DateTime? Begin { get; set; }
/// <summary>
///
/// </summary>
public DateTime? End { get; set; }
/// <summary>
///
/// </summary>
public string? SearchString { get; set; }
}
/// <summary>
/// параметры для запроса списка сообщений (с id скважины)
/// </summary>
public class MessageRequest: MessageRequestBase {
/// <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;
this.Skip = request.Skip;
this.Take = request.Take;
this.SortFields = request.SortFields;
}
}
}