mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-20 05:13:18 -07:00
Added the API to add user notification preferences
This commit is contained in:
parent
2886f6e6fa
commit
de2e3abfe0
4 changed files with 63 additions and 7 deletions
|
@ -28,6 +28,7 @@ namespace Ombi.Store.Entities
|
|||
public string UserAccessToken { get; set; }
|
||||
|
||||
public List<NotificationUserId> NotificationUserIds { get; set; }
|
||||
public List<UserNotificationPreferences> UserNotificationPreferences { get; set; }
|
||||
|
||||
[NotMapped]
|
||||
public bool IsEmbyConnect => UserType == UserType.EmbyUser && EmbyConnectUserId.HasValue();
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Text;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using Newtonsoft.Json;
|
||||
using Ombi.Helpers;
|
||||
|
||||
namespace Ombi.Store.Entities
|
||||
|
@ -15,6 +13,7 @@ namespace Ombi.Store.Entities
|
|||
public string Value { get; set; }
|
||||
|
||||
[ForeignKey(nameof(UserId))]
|
||||
[JsonIgnore]
|
||||
public OmbiUser User { get; set; }
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue