Example #1
0
 protected ACommand(PlexContext context, AppSettings setting)
 {
     Context      = context;
     this.setting = setting;
     PlexConfig.SetupConfig(setting);
     SetAllLibraries(LoadLibaries().GetAwaiter().GetResult());
 }
 public AllLibrariesService(PlexContext context) : base(context)
 {
     Libraries  = new List <Libraries.MediaContainer>();
     LibraryIds = new List <KeyValuePair <string, int> >();
 }
Example #3
0
 public MovieCommand(PlexContext context, AppSettings setting) : base(context, setting)
 {
     Name          = "Movies";
     MoviceService = new MoviesService(context);
 }
Example #4
0
 public MoviesService(PlexContext context) : base(context)
 {
     start     = 0;
     Libraries = new List <SqlModels.Movies>();
 }
Example #5
0
 public TvShowCommand(PlexContext context, AppSettings setting) : base(context, setting)
 {
     Name    = "TV Shows";
     Service = new TvShowService(Context);
 }
Example #6
0
 protected PlexBase(PlexContext context)
 {
     pageSize = 1;
     Context  = context;
 }
Example #7
0
 public PlexService(PlexContext context, AppSettings setting)
 {
     Runner  = new RunCommands();
     Setting = setting;
     Context = context;
 }
Example #8
0
 public TvShowService(PlexContext context) : base(context)
 {
     start     = 0;
     Libraries = new List <SqlModels.TvShow>();
 }
Example #9
0
 public AllLibrariesCommand(PlexContext context, AppSettings setting) : base(context, setting)
 {
     Name     = "AllLibraries";
     Services = new AllLibrariesService(Context);
 }
Example #10
0
 public SaveTvShowToDb()
 {
     context = new PlexContext();
 }