Files
Readarr/src/NzbDrone.Core/Notifications/AuthorDeleteMessage.cs
T
2021-12-30 16:38:49 -06:00

28 lines
792 B
C#

using NzbDrone.Core.Books;
namespace NzbDrone.Core.Notifications
{
public class AuthorDeleteMessage
{
public string Message { get; set; }
public Author Author { get; set; }
public bool DeletedFiles { get; set; }
public string DeletedFilesMessage { get; set; }
public override string ToString()
{
return Message;
}
public AuthorDeleteMessage(Author author, bool deleteFiles)
{
Author = author;
DeletedFiles = deleteFiles;
DeletedFilesMessage = DeletedFiles ?
"Author removed and all files were deleted" :
"Author removed, files were not deleted";
Message = author.Name + " - " + DeletedFilesMessage;
}
}
}