Add some hierarchy to classes, so generics can be used

This commit is contained in:
SenorSmartyPants 2021-12-13 14:47:02 -06:00
parent d5c864c1d2
commit ed52ab4c18
6 changed files with 23 additions and 25 deletions

View File

@ -1,13 +1,6 @@
namespace Trakt.Api.DataContracts.BaseModel
{
public class TraktEpisodeId : TraktId
public class TraktEpisodeId : TraktTVId
{
public string imdb { get; set; }
public int? tmdb { get; set; }
public int? tvdb { get; set; }
public int? tvrage { get; set; }
}
}

View File

@ -0,0 +1,9 @@
namespace Trakt.Api.DataContracts.BaseModel
{
public class TraktIMDBandTMDBId : TraktId
{
public string imdb { get; set; }
public int? tmdb { get; set; }
}
}

View File

@ -1,9 +1,6 @@
namespace Trakt.Api.DataContracts.BaseModel
{
public class TraktMovieId : TraktId
public class TraktMovieId : TraktIMDBandTMDBId
{
public string imdb { get; set; }
public int? tmdb { get; set; }
}
}

View File

@ -1,11 +1,7 @@
namespace Trakt.Api.DataContracts.BaseModel
{
public class TraktPersonId : TraktId
public class TraktPersonId : TraktIMDBandTMDBId
{
public string imdb { get; set; }
public int? tmdb { get; set; }
public int? tvrage { get; set; }
}
}

View File

@ -1,14 +1,7 @@

namespace Trakt.Api.DataContracts.BaseModel
{
public class TraktShowId : TraktId
public class TraktShowId : TraktTVId
{
public string imdb { get; set; }
public int? tmdb { get; set; }
public int? tvdb { get; set; }
public int? tvrage { get; set; }
}
}

View File

@ -0,0 +1,10 @@
namespace Trakt.Api.DataContracts.BaseModel
{
public class TraktTVId : TraktIMDBandTMDBId
{
public int? tvdb { get; set; }
public int? tvrage { get; set; }
}
}