Fully finished #27 just need to test it!

This commit is contained in:
tidusjar 2016-05-20 17:20:17 +01:00
commit e49b160500
11 changed files with 254 additions and 139 deletions

View file

@ -40,7 +40,6 @@ namespace PlexRequests.Store
public List<string> RequestedUsers { get; set; }
public string ArtistName { get; set; }
public string ArtistId { get; set; }
public List<string> UsersToNotify { get; private set; }
[JsonIgnore]
public List<string> AllUsers
@ -68,21 +67,6 @@ namespace PlexRequests.Store
{
return AllUsers.Any(x => x.Equals(username, StringComparison.OrdinalIgnoreCase));
}
public void AddUserToNotification(string username)
{
if (UsersToNotify == null)
{
UsersToNotify = new List<string>();
}
if (UsersToNotify.FirstOrDefault(x => x == username) != null)
{
// User already exists in the notification list
return;
}
UsersToNotify.Add(username);
}
}
public enum RequestType