Exemplo n.º 1
0
        public override void OnApplicationUpdate(ApplicationUpdateMessage updateMessage)
        {
            var attachments = new List <Embed>
            {
                new Embed
                {
                    Author = new DiscordAuthor
                    {
                        Name    = Settings.Author.IsNullOrWhiteSpace() ? Environment.MachineName : Settings.Author,
                        IconUrl = "https://raw.githubusercontent.com/Prowlarr/Prowlarr/develop/Logo/256.png"
                    },
                    Title     = APPLICATION_UPDATE_TITLE,
                    Timestamp = DateTime.UtcNow.ToString("yyyy-MM-ddTHH:mm:ss.fffZ"),
                    Color     = (int)DiscordColors.Standard,
                    Fields    = new List <DiscordField>()
                    {
                        new DiscordField()
                        {
                            Name  = "Previous Version",
                            Value = updateMessage.PreviousVersion.ToString()
                        },
                        new DiscordField()
                        {
                            Name  = "New Version",
                            Value = updateMessage.NewVersion.ToString()
                        }
                    },
                }
            };

            var payload = CreatePayload(null, attachments);

            _proxy.SendPayload(payload, Settings);
        }
Exemplo n.º 2
0
 public override void OnApplicationUpdate(ApplicationUpdateMessage updateMessage)
 {
     if (Settings.Notify)
     {
         _mediaBrowserService.Notify(Settings, APPLICATION_UPDATE_TITLE_BRANDED, updateMessage.Message);
     }
 }
Exemplo n.º 3
0
        public override void OnApplicationUpdate(ApplicationUpdateMessage updateMessage)
        {
            var variables = new StringDictionary();

            variables.Add("Radarr_EventType", "ApplicationUpdate");
            variables.Add("Radarr_Update_Message", updateMessage.Message);
            variables.Add("Radarr_Update_NewVersion", updateMessage.NewVersion.ToString());
            variables.Add("Radarr_Update_PreviousVersion", updateMessage.PreviousVersion.ToString());

            _proxy.SendNotification(variables, Settings);
        }
Exemplo n.º 4
0
        public override void OnApplicationUpdate(ApplicationUpdateMessage updateMessage)
        {
            var environmentVariables = new StringDictionary();

            environmentVariables.Add("Radarr_EventType", "ApplicationUpdate");
            environmentVariables.Add("Radarr_Update_Message", updateMessage.Message);
            environmentVariables.Add("Radarr_Update_NewVersion", updateMessage.NewVersion.ToString());
            environmentVariables.Add("Radarr_Update_PreviousVersion", updateMessage.PreviousVersion.ToString());

            ExecuteScript(environmentVariables);
        }
Exemplo n.º 5
0
        public override void OnApplicationUpdate(ApplicationUpdateMessage updateMessage)
        {
            var payload = new WebhookApplicationUpdatePayload
            {
                EventType       = WebhookEventType.ApplicationUpdate,
                Message         = updateMessage.Message,
                PreviousVersion = updateMessage.PreviousVersion.ToString(),
                NewVersion      = updateMessage.NewVersion.ToString()
            };

            _proxy.SendWebhook(payload, Settings);
        }
Exemplo n.º 6
0
        public override void OnApplicationUpdate(ApplicationUpdateMessage updateMessage)
        {
            var attachments = new List <Attachment>
            {
                new Attachment
                {
                    Title = Environment.MachineName,
                    Text  = updateMessage.Message,
                    Color = "good"
                }
            };

            var payload = CreatePayload("Application Updated", attachments);

            _proxy.SendPayload(payload, Settings);
        }
Exemplo n.º 7
0
        public override void OnApplicationUpdate(ApplicationUpdateMessage updateMessage)
        {
            var body = $"{updateMessage.Message}";

            SendEmail(Settings, APPLICATION_UPDATE_TITLE_BRANDED, body);
        }
Exemplo n.º 8
0
 public override void OnApplicationUpdate(ApplicationUpdateMessage updateMessage)
 {
     TestLogger.Info("OnApplicationUpdate was called");
 }
Exemplo n.º 9
0
 public override void OnApplicationUpdate(ApplicationUpdateMessage updateMessage)
 {
     _proxy.SendNotification(APPLICATION_UPDATE_TITLE, updateMessage.Message, Settings);
 }
Exemplo n.º 10
0
 public override void OnApplicationUpdate(ApplicationUpdateMessage updateMessage)
 {
     _twitterService.SendNotification($"Application Updated: {updateMessage.Message}", Settings);
 }
Exemplo n.º 11
0
 public override void OnApplicationUpdate(ApplicationUpdateMessage updateMessage)
 {
     Notify(Settings, APPLICATION_UPDATE_TITLE_BRANDED, updateMessage.Message);
 }