| | | 1 | | using System; |
| | | 2 | | using System.Collections.Generic; |
| | | 3 | | using System.Linq; |
| | | 4 | | using System.Threading.Tasks; |
| | | 5 | | using System.Runtime.Serialization; |
| | | 6 | | using WinSolutions.Sveta.Server.Data.DataModel.Entities; |
| | | 7 | | using System.ComponentModel.DataAnnotations; |
| | | 8 | | using SVETA.Api.Validation; |
| | | 9 | | |
| | | 10 | | |
| | | 11 | | namespace SVETA.Api.Data.DTO |
| | | 12 | | { |
| | | 13 | | public class TelegramNotifyResponseDTO |
| | | 14 | | { |
| | 0 | 15 | | public TelegramNotifyResponseDTO(TelegramNotification data) |
| | 0 | 16 | | { |
| | 0 | 17 | | Id = data.Id; |
| | 0 | 18 | | HashTag = data.HashTag; |
| | 0 | 19 | | Description = data.Description; |
| | 0 | 20 | | IsActive = data.IsActive; |
| | 0 | 21 | | } |
| | | 22 | | |
| | 0 | 23 | | public long Id { get; set; } |
| | 0 | 24 | | public string HashTag { get; set; } |
| | 0 | 25 | | public string Description { get; set; } |
| | 0 | 26 | | public bool IsActive { get; set; } |
| | | 27 | | } |
| | | 28 | | } |