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

58 lines
1.7 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.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AsbCloudApp.Requests
{
#nullable enable
/// <summary>
/// Параметры запроса для фильтрации faq-вопросов
/// </summary>
public class FaqRequestBase : RequestBase
{
/// <summary>
/// Есть ли ответ на вопрос
/// </summary>
public bool HasAnswer { get; set; } = false;
/// <summary>
/// Частый вопрос
/// </summary>
public bool IsFrequently { get; set; } = false;
/// <summary>
/// Включать ли в выборку удаленные вопросы
/// </summary>
public bool IncludeDeleted { get; set; } = false;
}
/// <summary>
/// Параметры запроса для фильтрации faq-вопросов (с id скважины)
/// </summary>
public class FaqRequest : FaqRequestBase
{
/// <summary>
/// копирующий конструктор
/// </summary>
/// <param name="request"></param>
/// <param name="idWell"></param>
public FaqRequest(FaqRequestBase request, int idWell)
{
IdWell = idWell;
this.IncludeDeleted = request.IncludeDeleted;
this.HasAnswer = request.HasAnswer;
this.IsFrequently = request.IsFrequently;
}
/// <summary>
/// id скважины
/// </summary>
public int IdWell { get; set; }
}
#nullable disable
}