Ejemplo n.º 1
0
        private static Dictionary <string, string> GetNotificationData(NotificationMessageContent parsed, NotificationType type)
        {
            var notificationData = parsed.Data.ToDictionary(x => x.Key, x => x.Value);

            notificationData[nameof(NotificationType)] = type.ToString();
            return(notificationData);
        }
Ejemplo n.º 2
0
 private void AddOtherInformation(NotificationOptions model, NotificationMessage notification,
                                  NotificationMessageContent parsed)
 {
     notification.Other.Add("image", parsed?.Image ?? string.Empty);
     notification.Other.Add("title", model.RequestType == RequestType.Movie ? MovieRequest.Title : TvRequest.Title);
 }