コード例 #1
0
ファイル: MobileNotification.cs プロジェクト: anojht/Ombi
        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);
        }
コード例 #2
0
ファイル: MattermostNotification.cs プロジェクト: itzfk0/ombi
 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);
 }