mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-07 05:31:13 -07:00
Changed the TV Request API. We now only require the TvDbId and the seasons and episodes that you want to request. This should make integration regarding TV a lot easier.
This commit is contained in:
parent
71157052b3
commit
d15e09d342
11 changed files with 146 additions and 44 deletions
25
src/Ombi.Core/Models/Requests/TvRequestViewModel.cs
Normal file
25
src/Ombi.Core/Models/Requests/TvRequestViewModel.cs
Normal file
|
@ -0,0 +1,25 @@
|
|||
using System.Collections.Generic;
|
||||
|
||||
namespace Ombi.Core.Models.Requests
|
||||
{
|
||||
public class TvRequestViewModel
|
||||
{
|
||||
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>();
|
||||
}
|
||||
|
||||
public class SeasonsViewModel
|
||||
{
|
||||
public int SeasonNumber { get; set; }
|
||||
public List<EpisodesViewModel> Episodes { get; set; } = new List<EpisodesViewModel>();
|
||||
}
|
||||
|
||||
public class EpisodesViewModel
|
||||
{
|
||||
public int EpisodeNumber { get; set; }
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue