using Newtonsoft.Json; using System.Collections.Generic; using Swift.API.Common.Enum; namespace Swift.API.Common { public class SendNotificationRequest: CommonRequest { public string NotificationTypeId { get; set; } public bool IsBulkNotification { get; set; } public string ControlNo { get; set; } public List Recipients { get; set; } } public class DisplayMailAddress { public string FromEmail { get; set; } public string AliasName { get; set; } } public class AttachmentModel { public string FileName { get; set; } public string FilePath { get; set; } public string FileType { get; set; } public string Byte64String { get; set; } } public class RecipientViewModel { public string Address { get; set; } public string CcAddress { get; set; } public string BccAddress { get; set; } public string DeviceType { get; set; } public DisplayMailAddress MailAddress { get; set; } public NotificationDTO NotificationContent { get; set; } } public class NotificationDTO { [JsonProperty("body")] public string Body { get; set; } [JsonProperty("title")] public string Title { get; set; } [JsonProperty("image")] public string Image { get; set; } public string ClickActivity { get; set; } public string MessageType { get; set; } public string NavigateURL { get; set; } public List Attachments { get; set; } public List EmbeddedResources { get; set; } } public class Mapping { public string SValue { get; set; } public string SText { get; set; } public string DValue { get; set; } public string DText { get; set; } } public class SendNotificationRequestMobile : CommonRequest { public string NotificationTypeId { get; set; } public bool IsBulkNotification { get; set; } public string ControlNo { get; set; } public List Recipients { get; set; } public NotifyTemplate Template { get; set; } public string Language { get; set; } } public class CommonRequest { public string ProcessId { get; set; } public string UserName { get; set; } public string ProviderId { get; set; } public string SessionId { get; set; } } }