PIbd-23_Ivanov_V.N._Pizzeria/Pizzeria/PizzeriaContracts/ViewModels/MessageInfoViewModel.cs

39 lines
1.0 KiB
C#
Raw Permalink Normal View History

2024-04-02 16:35:18 +04:00
using PizzeriaDataModels.Models;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace PizzeriaContracts.ViewModels
{
2024-04-03 09:19:16 +04:00
public class MessageInfoViewModel : IMessageInfoModel
{
public string MessageId { get; set; } = string.Empty;
2024-04-02 16:35:18 +04:00
2024-04-03 09:19:16 +04:00
public int? ClientId { get; set; }
2024-04-02 16:35:18 +04:00
2024-04-03 09:19:16 +04:00
[DisplayName("Отправитель")]
public string SenderName { get; set; } = string.Empty;
2024-04-02 16:35:18 +04:00
2024-04-03 09:19:16 +04:00
[DisplayName("Дата письма")]
public DateTime DateDelivery { get; set; }
2024-04-02 16:35:18 +04:00
2024-04-03 09:19:16 +04:00
[DisplayName("Заголовок")]
public string Subject { get; set; } = string.Empty;
2024-04-02 16:35:18 +04:00
2024-04-03 09:19:16 +04:00
[DisplayName("Текст")]
public string Body { get; set; } = string.Empty;
[DisplayName("Прочитанно")]
public bool IsReaded { get; set; }
public string? ReplyMessageId { get; set; }
public IMessageInfoModel? Reply { get; set; }
public bool IsReply { get; set; }
}
2024-04-02 16:35:18 +04:00
}