From f5310b786b43b3c00d392da977c2b3367a5e4e11 Mon Sep 17 00:00:00 2001 From: tidusjar Date: Tue, 21 Sep 2021 20:51:04 +0100 Subject: [PATCH] feat(request-limits): :tada: Started on the request limits, applied to the user model --- src/Ombi.Store/Entities/OmbiUser.cs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/Ombi.Store/Entities/OmbiUser.cs b/src/Ombi.Store/Entities/OmbiUser.cs index 46a49b1ae..fc18cf7e2 100644 --- a/src/Ombi.Store/Entities/OmbiUser.cs +++ b/src/Ombi.Store/Entities/OmbiUser.cs @@ -31,6 +31,13 @@ namespace Ombi.Store.Entities public int? EpisodeRequestLimit { get; set; } public int? MusicRequestLimit { get; set; } + public RequestLimitType? MovieRequestLimitType { get; set; } + public RequestLimitType? EpisodeRequestLimitType { get; set; } + public RequestLimitType? MusicRequestLimitType { get; set; } + public int? MovieRequestLimitAmount { get; set; } + public int? EpisodeRequestLimitAmount { get; set; } + public int? MusicRequestLimitAmount { get; set; } + public string UserAccessToken { get; set; } public List NotificationUserIds { get; set; } @@ -69,4 +76,11 @@ namespace Ombi.Store.Entities } } + + public enum RequestLimitType + { + Day = 0, + Week = 1, + Month = 2, + } } \ No newline at end of file