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); }
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); }