mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-14 02:26:55 -07:00
Fully finished #27 just need to test it!
This commit is contained in:
parent
db00326a9c
commit
e49b160500
11 changed files with 254 additions and 139 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue