* Stylecop Rules and Fixes
This commit is contained in:
Qstick 2020-01-03 07:49:24 -05:00
parent a602611a5f
commit a4b78b44ce
1307 changed files with 8702 additions and 7403 deletions

View file

@ -1,8 +1,8 @@
using System.Collections.Generic;
using System.Linq;
using FluentValidation.Results;
using NzbDrone.Core.Music;
using NzbDrone.Common.Extensions;
using NzbDrone.Core.Music;
using NzbDrone.Core.Validation;
namespace NzbDrone.Core.Notifications.Webhook
@ -24,7 +24,6 @@ namespace NzbDrone.Core.Notifications.Webhook
var quality = message.Quality;
var payload = new WebhookGrabPayload
{
EventType = "Grab",
Artist = new WebhookArtist(message.Artist),
@ -46,7 +45,6 @@ namespace NzbDrone.Core.Notifications.Webhook
var trackFiles = message.TrackFiles;
var payload = new WebhookImportPayload
{
EventType = "Download",
Artist = new WebhookArtist(message.Artist),
@ -102,23 +100,24 @@ namespace NzbDrone.Core.Notifications.Webhook
try
{
var payload = new WebhookGrabPayload
{
EventType = "Test",
Artist = new WebhookArtist()
{
Id = 1,
Name = "Test Name",
Path = "C:\\testpath",
MBId = "aaaaa-aaa-aaaa-aaaaaa"
},
Albums = new List<WebhookAlbum>()
{
EventType = "Test",
Artist = new WebhookArtist()
{
Id = 1,
Name = "Test Name",
Path = "C:\\testpath",
MBId = "aaaaa-aaa-aaaa-aaaaaa"
},
Albums = new List<WebhookAlbum>() {
new WebhookAlbum()
{
Id = 123,
Title = "Test title"
}
}
};
}
};
_proxy.SendWebhook(payload, Settings);
}