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 /// /// Параметры запроса для фильтрации faq-вопросов /// public class FaqRequestBase : RequestBase { /// /// Есть ли ответ на вопрос /// public bool HasAnswer { get; set; } = false; /// /// Частый вопрос /// public bool IsFrequently { get; set; } = false; /// /// Включать ли в выборку удаленные вопросы /// public bool IncludeDeleted { get; set; } = false; } /// /// Параметры запроса для фильтрации faq-вопросов (с id скважины) /// public class FaqRequest : FaqRequestBase { /// /// копирующий конструктор /// /// /// public FaqRequest(FaqRequestBase request, int idWell) { IdWell = idWell; this.IncludeDeleted = request.IncludeDeleted; this.HasAnswer = request.HasAnswer; this.IsFrequently = request.IsFrequently; } /// /// id скважины /// public int IdWell { get; set; } } #nullable disable }