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.

96 lines
2.5 KiB

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