Closes #3927 (cherry picked from commit 3c45349404f59064d1c8db0549401189c456e4c0)pull/6566/head
parent
425772da1c
commit
94b481a66f
@ -1,7 +1,10 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace NzbDrone.Core.Notifications.Webhook
|
||||
{
|
||||
public class WebhookRenamePayload : WebhookPayload
|
||||
{
|
||||
public WebhookMovie Movie { get; set; }
|
||||
public List<WebhookRenamedMovieFile> RenamedMovieFiles { get; set; }
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,17 @@
|
||||
using NzbDrone.Core.MediaFiles;
|
||||
|
||||
namespace NzbDrone.Core.Notifications.Webhook
|
||||
{
|
||||
public class WebhookRenamedMovieFile : WebhookMovieFile
|
||||
{
|
||||
public WebhookRenamedMovieFile(RenamedMovieFile renamedMovie)
|
||||
: base(renamedMovie.MovieFile)
|
||||
{
|
||||
PreviousRelativePath = renamedMovie.PreviousRelativePath;
|
||||
PreviousPath = renamedMovie.PreviousPath;
|
||||
}
|
||||
|
||||
public string PreviousRelativePath { get; set; }
|
||||
public string PreviousPath { get; set; }
|
||||
}
|
||||
}
|
Loading…
Reference in new issue