PIbd22_Kuznetsov_A.V._Sewin.../SewingDresses/SewingDressesContracts/ViewModels/MessageInfoViewModel.cs

25 lines
930 B
C#
Raw Permalink Normal View History

2024-06-22 21:11:56 +04:00
using SewingDressesContracts.Attributes;
using SewingDressesDataModels.Models;
2024-06-22 20:56:02 +04:00
using System.ComponentModel;
namespace SewingDressesContracts.ViewModels
{
public class MessageInfoViewModel : IMessageInfoModel
{
2024-06-22 21:11:56 +04:00
[Column(visible: false)]
2024-06-22 20:56:02 +04:00
public string MessageId { get; set; } = string.Empty;
2024-06-22 21:11:56 +04:00
[Column(visible: false)]
2024-06-22 20:56:02 +04:00
public int? ClientId { get; set; }
2024-06-22 21:11:56 +04:00
[Column(title: "Имя отправителя", width: 150)]
2024-06-22 20:56:02 +04:00
public string SenderName { get; set; } = string.Empty;
2024-06-22 21:11:56 +04:00
[Column(title: "Дата доставки", width: 100)]
2024-06-22 20:56:02 +04:00
public DateTime DateDelivery { get; set; }
2024-06-22 21:11:56 +04:00
[Column(title: "Тема письма", width: 150)]
2024-06-22 20:56:02 +04:00
public string Subject { get; set; } = string.Empty;
2024-06-22 21:11:56 +04:00
[Column(title: "Внутренности письма", gridViewAutoSize: GridViewAutoSize.Fill, isUseAutoSize: true)]
2024-06-22 20:56:02 +04:00
public string Body { get; set; } = string.Empty;
2024-06-22 21:11:56 +04:00
[Column(visible: false)]
public int Id { get; set; }
2024-06-22 20:56:02 +04:00
}
}