forked from ddrilling/AsbCloudServer
86 lines
2.2 KiB
C#
86 lines
2.2 KiB
C#
using System;
|
||
|
||
namespace AsbCloudApp.Requests;
|
||
|
||
/// <summary>
|
||
/// Запрос для получения РТК план
|
||
/// </summary>
|
||
public class ProcessMapPlanBaseRequest
|
||
{
|
||
/// <summary>
|
||
/// Вернуть данные, которые поменялись с указанной даты
|
||
/// </summary>
|
||
public DateTimeOffset? UpdateFrom { get; set; }
|
||
|
||
/// <summary>
|
||
/// Конструктор
|
||
/// </summary>
|
||
public ProcessMapPlanBaseRequest()
|
||
{
|
||
|
||
}
|
||
|
||
/// <summary>
|
||
/// Копирующий конструктор
|
||
/// </summary>
|
||
/// <param name="request">Параметры запроса</param>
|
||
public ProcessMapPlanBaseRequest(ProcessMapPlanBaseRequest request)
|
||
{
|
||
UpdateFrom = request.UpdateFrom;
|
||
}
|
||
}
|
||
|
||
/// <summary>
|
||
/// Запрос для получения РТК план по скважине
|
||
/// </summary>
|
||
public class ProcessMapPlanBaseRequestWithWell : ProcessMapPlanBaseRequest
|
||
{
|
||
/// <summary>
|
||
/// Запрос для получения РТК план по скважине
|
||
/// </summary>
|
||
/// <param name="idWell"></param>
|
||
public ProcessMapPlanBaseRequestWithWell(int idWell)
|
||
{
|
||
IdWell = idWell;
|
||
}
|
||
|
||
/// <summary>
|
||
/// <inheritdoc/>
|
||
/// </summary>
|
||
/// <param name="idWell"></param>
|
||
/// <param name="gtDepth"></param>
|
||
/// <param name="ltDepth"></param>
|
||
public ProcessMapPlanBaseRequestWithWell(int idWell, double? gtDepth, double? ltDepth)
|
||
{
|
||
IdWell = idWell;
|
||
GtDepth = gtDepth;
|
||
LtDepth = ltDepth;
|
||
}
|
||
|
||
/// <summary>
|
||
/// Запрос для получения РТК план по скважине
|
||
/// </summary>
|
||
/// <param name="request"></param>
|
||
/// <param name="idWell"></param>
|
||
public ProcessMapPlanBaseRequestWithWell(ProcessMapPlanBaseRequest request, int idWell)
|
||
: base(request)
|
||
{
|
||
IdWell = idWell;
|
||
}
|
||
|
||
/// <summary>
|
||
/// Id скважины
|
||
/// </summary>
|
||
public int IdWell { get; set; }
|
||
|
||
/// <summary>
|
||
/// Меньше глубины забоя
|
||
/// </summary>
|
||
public double? LtDepth { get; set; }
|
||
|
||
/// <summary>
|
||
/// Больше глубине забоя
|
||
/// </summary>
|
||
public double? GtDepth { get; set; }
|
||
}
|