You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

94 lines
2.5 KiB

  1. using Newtonsoft.Json;
  2. using System.Collections.Generic;
  3. using Swift.API.Common.Enum;
  4. namespace Swift.API.Common
  5. {
  6. public class SendNotificationRequest: CommonRequest
  7. {
  8. public string NotificationTypeId { get; set; }
  9. public bool IsBulkNotification { get; set; }
  10. public string ControlNo { get; set; }
  11. public List<RecipientViewModel> Recipients { get; set; }
  12. }
  13. public class DisplayMailAddress
  14. {
  15. public string FromEmail { get; set; }
  16. public string AliasName { get; set; }
  17. }
  18. public class AttachmentModel
  19. {
  20. public string FileName { get; set; }
  21. public string FilePath { get; set; }
  22. public string FileType { get; set; }
  23. public string Byte64String { get; set; }
  24. }
  25. public class RecipientViewModel
  26. {
  27. public string Address { get; set; }
  28. public string CcAddress { get; set; }
  29. public string BccAddress { get; set; }
  30. public string DeviceType { get; set; }
  31. public DisplayMailAddress MailAddress { get; set; }
  32. public NotificationDTO NotificationContent { get; set; }
  33. }
  34. public class NotificationDTO
  35. {
  36. [JsonProperty("body")]
  37. public string Body { get; set; }
  38. [JsonProperty("title")]
  39. public string Title { get; set; }
  40. [JsonProperty("image")]
  41. public string Image { get; set; }
  42. public string ClickActivity { get; set; }
  43. public string MessageType { get; set; }
  44. public string NavigateURL { get; set; }
  45. public List<AttachmentModel> Attachments { get; set; }
  46. public List<AttachmentModel> EmbeddedResources { get; set; }
  47. }
  48. public class Mapping
  49. {
  50. public string SValue { get; set; }
  51. public string SText { get; set; }
  52. public string DValue { get; set; }
  53. public string DText { get; set; }
  54. }
  55. public class SendNotificationRequestMobile : CommonRequest
  56. {
  57. public string NotificationTypeId { get; set; }
  58. public bool IsBulkNotification { get; set; }
  59. public string ControlNo { get; set; }
  60. public List<RecipientViewModel> Recipients { get; set; }
  61. public NotifyTemplate Template { get; set; }
  62. public string Language { get; set; }
  63. }
  64. public class CommonRequest
  65. {
  66. public string ProcessId { get; set; }
  67. public string UserName { get; set; }
  68. public string ProviderId { get; set; }
  69. public string SessionId { get; set; }
  70. }
  71. }