mirror of
https://github.com/Radarr/Radarr.git
synced 2024-09-11 12:02:35 +02:00
parent
8c4ac632ca
commit
6d87ce73b6
@ -10,8 +10,13 @@ public GotifyException(string message)
|
||||
{
|
||||
}
|
||||
|
||||
public GotifyException(string message, Exception innerException, params object[] args)
|
||||
: base(message, innerException, args)
|
||||
public GotifyException(string message, params object[] args)
|
||||
: base(message, args)
|
||||
{
|
||||
}
|
||||
|
||||
public GotifyException(string message, Exception innerException)
|
||||
: base(message, innerException)
|
||||
{
|
||||
}
|
||||
}
|
||||
|
@ -22,13 +22,13 @@ public void SendNotification(string title, string message, GotifySettings settin
|
||||
try
|
||||
{
|
||||
var request = new HttpRequestBuilder(settings.Server).Post()
|
||||
.AddFormParameter("token", settings.AppToken)
|
||||
.AddQueryParam("token", settings.AppToken)
|
||||
.AddFormParameter("title", title)
|
||||
.AddFormParameter("message", message)
|
||||
.AddFormParameter("priority", settings.Priority)
|
||||
.Build();
|
||||
|
||||
_httpClient.Post(request);
|
||||
_httpClient.Execute(request);
|
||||
}
|
||||
catch (HttpException ex)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user