mirror of
https://github.com/Radarr/Radarr
synced 2025-03-03 18:36:41 +00:00
parent
8c4ac632ca
commit
6d87ce73b6
2 changed files with 9 additions and 4 deletions
|
@ -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 a new issue