| | | 1 | | using System; |
| | | 2 | | using System.Collections.Generic; |
| | | 3 | | using System.ComponentModel.DataAnnotations; |
| | | 4 | | using System.Text; |
| | | 5 | | using WinSolutions.Sveta.Server.Data.DataModel.Kinds; |
| | | 6 | | |
| | | 7 | | namespace WinSolutions.Sveta.Server.Data.DataModel.Entities |
| | | 8 | | { |
| | | 9 | | public class Notification : ExternalRecord, ITrackableRecord |
| | | 10 | | { |
| | | 11 | | /// <summary> |
| | | 12 | | /// Пользователь |
| | | 13 | | /// </summary> |
| | 1490 | 14 | | [Required] public User User { get; set; } |
| | | 15 | | |
| | | 16 | | /// <summary> |
| | | 17 | | /// Тема |
| | | 18 | | /// </summary> |
| | 0 | 19 | | [Required] public string Subject { get; set; } |
| | | 20 | | |
| | | 21 | | /// <summary> |
| | | 22 | | /// Сообщение |
| | | 23 | | /// </summary> |
| | 0 | 24 | | [Required] public string Body { get; set; } |
| | | 25 | | |
| | | 26 | | /// <summary> |
| | | 27 | | /// Тип комуникации |
| | | 28 | | /// </summary> |
| | | 29 | | /* [Obsolete] |
| | | 30 | | public int Type { get; set; }*/ |
| | 1490 | 31 | | [Required] public NotificationsType NotificationsType { get; set; } |
| | | 32 | | /// <summary> |
| | | 33 | | /// Время жизни коммуникации |
| | | 34 | | /// </summary> |
| | 0 | 35 | | public DateTime TimeToTurnOff { get; set; } |
| | | 36 | | |
| | | 37 | | } |
| | | 38 | | } |