Browse Source

#push notification

feature/Redmine-17825-Email_Template
Leeza Baidar 9 months ago
parent
commit
97a6267d80
  1. 23
      Business/Mobile/MobileServices.cs

23
Business/Mobile/MobileServices.cs

@ -724,6 +724,29 @@ namespace Business.Mobile
}
var rep = _requestServices.RegisterKYC(custKyc);
SendNotificationRequest pushNotificationRequest = new SendNotificationRequest()
{
IsBulkNotification = false,
UserName = custKyc.userId,
ProcessId = Guid.NewGuid().ToString(),
ProviderId = "RegisterKYC",
NotificationTypeId = NOTIFICATION_TYPE.PUSH_NOTIFICATION.ToString(),
Recipients = new List<RecipientViewModel>()
{
new RecipientViewModel()
{
NotificationContent = new NotificationDTO() {
Body = "Thank you for signing up with IME London. You can continue to send transactions while your KYC is being processed, even though it is currently in processing.",
Title = "KYC Processing",
},
Address= rep.Extra2,
DeviceType = rep.Extra3
}
},
Language = Convert.ToString(CallContext.GetData(Constants.Language))
};
Log.Debug("RegisterKYC | DB RESPONSE" + JsonConvert.SerializeObject(rep));

Loading…
Cancel
Save