mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-16 02:02:55 -07:00
Got most of it working!
This commit is contained in:
parent
be50b1eff1
commit
3aa07aa7a6
32 changed files with 577 additions and 75 deletions
|
@ -3,17 +3,9 @@ using Newtonsoft.Json;
|
|||
|
||||
namespace Ombi.Core.Models.Requests
|
||||
{
|
||||
public class TvRequestViewModel
|
||||
public class TvRequestViewModel : TvRequestViewModelBase
|
||||
{
|
||||
public bool RequestAll { get; set; }
|
||||
public bool LatestSeason { get; set; }
|
||||
public bool FirstSeason { get; set; }
|
||||
public int TvDbId { get; set; }
|
||||
public List<SeasonsViewModel> Seasons { get; set; } = new List<SeasonsViewModel>();
|
||||
[JsonIgnore]
|
||||
public string RequestedByAlias { get; set; }
|
||||
|
||||
public string RequestOnBehalf { get; set; }
|
||||
}
|
||||
|
||||
public class SeasonsViewModel
|
||||
|
@ -27,4 +19,16 @@ namespace Ombi.Core.Models.Requests
|
|||
public int EpisodeNumber { get; set; }
|
||||
}
|
||||
|
||||
|
||||
public class TvRequestViewModelBase
|
||||
{
|
||||
public bool RequestAll { get; set; }
|
||||
public bool LatestSeason { get; set; }
|
||||
public bool FirstSeason { get; set; }
|
||||
public List<SeasonsViewModel> Seasons { get; set; } = new List<SeasonsViewModel>();
|
||||
[JsonIgnore]
|
||||
public string RequestedByAlias { get; set; }
|
||||
|
||||
public string RequestOnBehalf { get; set; }
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue