From baedc667b7faacb6d5b9bf1df7235a5d85b143ed Mon Sep 17 00:00:00 2001 From: Polianin Nikita Date: Tue, 28 May 2024 06:57:54 +0300 Subject: [PATCH] feat: add PairPeriod for ApiDto --- ApiDto/Common/PairPeriodTime.cs | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 ApiDto/Common/PairPeriodTime.cs diff --git a/ApiDto/Common/PairPeriodTime.cs b/ApiDto/Common/PairPeriodTime.cs new file mode 100644 index 0000000..89b0732 --- /dev/null +++ b/ApiDto/Common/PairPeriodTime.cs @@ -0,0 +1,22 @@ +using System; +using System.ComponentModel.DataAnnotations; + +namespace Mirea.Api.Dto.Common; + +/// +/// Represents a pair of time periods. +/// +public class PairPeriodTime +{ + /// + /// Gets or sets the start time of the period. + /// + [Required] + public TimeOnly Start { get; set; } + + /// + /// Gets or sets the end time of the period. + /// + [Required] + public TimeOnly End { get; set; } +} \ No newline at end of file