TourIAm/TIAMWebApp/Shared/Models/ClientSide/UI/WizardModels/MessageWizardModel.cs

43 lines
1.7 KiB
C#

using AyCode.Core.Enums;
using System.ComponentModel.DataAnnotations;
using TIAM.Resources;
namespace TIAMWebApp.Shared.Application.Models.ClientSide.UI.WizardModels
{
public class MessageWizardModel
{
public string ReceiverEmailAddress { get; set; }
public string ReceiverFullName { get; set; }
public Guid ReceiverId { get; set; }
public string SenderEmailAddress { get; set; }
public string SenderFullName { get; set; }
public Guid SenderId { get; set; }
public Guid ContextId { get; set; }
public MessageContextType ContextType { get; set; }
[Required(ErrorMessage = "The subject value should be specified.")]
[DataType(DataType.Text)]
[Display(Name = ResourceKeys.Subject, ResourceType = typeof(TIAMResources))]
public string Subject { get; set; }
[Required(ErrorMessage = "The content value should be specified.")]
[DataType(DataType.MultilineText)]
[Display(Name = "HtmlContent", ResourceType = typeof(TIAMResources))]
public string Content { get; set; }
public MessageWizardModel() { }
public MessageWizardModel(string receiverEmailAddress, string receiverFullName, Guid contextId, MessageContextType contextType, Guid receiverId, string senderEmailAddress, Guid senderId, string subject, string content)
{
ReceiverEmailAddress = receiverEmailAddress;
ReceiverFullName = receiverFullName;
ContextId = contextId;
ContextType = contextType;
ReceiverId = receiverId;
SenderEmailAddress = senderEmailAddress;
SenderId = senderId;
Subject = subject;
Content = content;
}
}
}