You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
792 B
28 lines
792 B
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;
|
|
}
|
|
}
|
|
}
|