2023-04-11 15:29:05 +04:00
|
|
|
|
using AbstractIceCreamShopDataModels.Models;
|
2023-04-11 15:57:59 +04:00
|
|
|
|
using IceCreamShopContracts.Attributes;
|
2023-04-11 15:29:05 +04:00
|
|
|
|
|
|
|
|
|
namespace IceCreamShopContracts.ViewModels
|
|
|
|
|
{
|
|
|
|
|
public class MessageInfoViewModel : IMessageInfoModel
|
|
|
|
|
{
|
2023-04-11 15:57:59 +04:00
|
|
|
|
[Column(visible: false)]
|
|
|
|
|
public string MessageId { get; set; } = string.Empty;
|
2023-04-11 15:29:05 +04:00
|
|
|
|
|
2023-04-11 15:57:59 +04:00
|
|
|
|
[Column(visible: false)]
|
|
|
|
|
public int? ClientId { get; set; }
|
2023-04-11 15:29:05 +04:00
|
|
|
|
|
2023-04-11 15:57:59 +04:00
|
|
|
|
[Column("Отправитель", gridViewAutoSize: GridViewAutoSize.DisplayedCells, isUseAutoSize: true)]
|
|
|
|
|
public string SenderName { get; set; } = string.Empty;
|
2023-04-11 15:29:05 +04:00
|
|
|
|
|
2023-04-11 15:57:59 +04:00
|
|
|
|
[Column("Дата письма", width: 100)]
|
|
|
|
|
public DateTime DateDelivery { get; set; }
|
2023-04-11 15:29:05 +04:00
|
|
|
|
|
2023-04-11 15:57:59 +04:00
|
|
|
|
[Column("Заголовок", width: 150)]
|
|
|
|
|
public string Subject { get; set; } = string.Empty;
|
2023-04-11 15:29:05 +04:00
|
|
|
|
|
2023-04-11 15:57:59 +04:00
|
|
|
|
[Column("Текст", gridViewAutoSize: GridViewAutoSize.Fill, isUseAutoSize: true)]
|
|
|
|
|
public string Body { get; set; } = string.Empty;
|
|
|
|
|
|
|
|
|
|
[Column(visible: false)]
|
2023-04-11 16:57:04 +04:00
|
|
|
|
public int Id => throw new NotImplementedException();
|
2023-04-11 15:57:59 +04:00
|
|
|
|
}
|
2023-04-11 15:29:05 +04:00
|
|
|
|
[DisplayName("Текст")]
|
|
|
|
|
public string Body { get; set; } = string.Empty;
|
2023-05-03 14:05:03 +04:00
|
|
|
|
|
|
|
|
|
[DisplayName("Прочитано")]
|
|
|
|
|
public bool HasRead { get; set; }
|
|
|
|
|
|
|
|
|
|
[DisplayName("Ответ")]
|
|
|
|
|
public string? Reply { get; set; }
|
|
|
|
|
}
|
2023-04-11 15:29:05 +04:00
|
|
|
|
}
|