2023-03-18 20:16:32 +04:00
|
|
|
|
using ConfectioneryContracts.Attributes;
|
|
|
|
|
using ConfectioneryDataModels;
|
2023-03-13 18:39:11 +04:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.ComponentModel;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace ConfectioneryContracts.ViewModels
|
|
|
|
|
{
|
|
|
|
|
public class MessageInfoViewModel : IMessageInfoModel
|
|
|
|
|
{
|
2023-03-18 20:16:32 +04:00
|
|
|
|
[Column(visible: false)]
|
|
|
|
|
public string MessageId { get; set; } = string.Empty;
|
2023-03-13 18:39:11 +04:00
|
|
|
|
|
2023-03-18 20:16:32 +04:00
|
|
|
|
[Column(visible: false)]
|
2023-03-13 18:39:11 +04:00
|
|
|
|
public int? ClientId { get; set; }
|
|
|
|
|
|
2023-03-18 20:16:32 +04:00
|
|
|
|
[Column("Отправитель", gridViewAutoSize: GridViewAutoSize.DisplayedCells, isUseAutoSize: true)]
|
2023-03-13 18:39:11 +04:00
|
|
|
|
public string SenderName { get; set; } = string.Empty;
|
|
|
|
|
|
2023-03-19 16:41:07 +04:00
|
|
|
|
[Column("Дата письма", width: 100, format: "D")]
|
2023-03-13 18:39:11 +04:00
|
|
|
|
public DateTime DateDelivery { get; set; }
|
|
|
|
|
|
2023-03-18 20:16:32 +04:00
|
|
|
|
[Column("Заголовок", width: 150)]
|
2023-03-13 18:39:11 +04:00
|
|
|
|
public string Subject { get; set; } = string.Empty;
|
|
|
|
|
|
2023-03-18 20:16:32 +04:00
|
|
|
|
[Column("Текст", gridViewAutoSize: GridViewAutoSize.Fill, isUseAutoSize: true)]
|
2023-03-13 18:39:11 +04:00
|
|
|
|
public string Body { get; set; } = string.Empty;
|
2023-03-18 01:42:57 +04:00
|
|
|
|
|
2023-03-18 20:16:32 +04:00
|
|
|
|
[Column(visible: false)]
|
|
|
|
|
|
|
|
|
|
public int Id => throw new NotImplementedException();
|
2023-03-19 13:03:26 +04:00
|
|
|
|
|
|
|
|
|
[Column("Прочитано", gridViewAutoSize: GridViewAutoSize.AllCellsExceptHeader, isUseAutoSize: true)]
|
2023-03-18 01:42:57 +04:00
|
|
|
|
public bool HasRead { get; set; }
|
2023-03-18 05:10:51 +04:00
|
|
|
|
|
2023-03-19 13:03:26 +04:00
|
|
|
|
[Column("Ответ", gridViewAutoSize: GridViewAutoSize.Fill, isUseAutoSize: true)]
|
2023-03-18 06:54:05 +04:00
|
|
|
|
public string? Reply { get; set; }
|
2023-03-18 01:42:57 +04:00
|
|
|
|
}
|
2023-03-13 18:39:11 +04:00
|
|
|
|
}
|