public ReceiverHub(CastService castService, LanguageService languageService, JellyfinService jellyfinService, LoggingService <ReceiverHub> loggingService) { _castService = castService; _languageService = languageService; _jellyfinService = jellyfinService; _loggingService = loggingService; }
public JellyController(JellyfinService jellyfinService, LanguageService languageService, CastService castService, LoggingService <JellyController> loggingService, IConfiguration configuration) { _jellyfinService = jellyfinService; _languageService = languageService; _castService = castService; _loggingService = loggingService; _configuration = configuration; }
static void Main(string[] args) { using (var db = new MovieShopDbContext()) { //var genres = db.Genres.ToList(); //var movies = db.Movies.Where(m => m.Title.StartsWith("a")).ToList(); //var movies = db.Movies.ToList().Where(m => m.Title.StartsWith("A")).ToList(); var movieService = new MovieService(); var movie = movieService.GetMovieDetails(2); Console.WriteLine(movie.Id + " " + movie.Title); var movies = movieService.GetMoviesByGenre(4); Console.WriteLine(movies.Count()); movies = movieService.GetMoviesByTitle("abc", 1); Console.WriteLine(movies.Count()); movies = movieService.GetTopRatedMovies(); Console.WriteLine(movies.Count()); movies = movieService.GetTopGrossingMovies(); Console.WriteLine(movies.Count()); var genreService = new GenreService(); var genres = genreService.GetAllGenres(); Console.WriteLine(genres.Count()); var castService = new CastService(); var cast = castService.GetCastDetails(3); Console.WriteLine(cast.Name + " " + cast.MovieCasts.Count()); var crewService = new CrewService(); var crew = crewService.GetCrewDetails(3); Console.WriteLine(crew.Name + " " + crew.MovieCrews.Count()); Console.ReadKey(); } }
public ManageCast() { castService = new CastService(); }
static void Main(string[] args) { Console.Clear(); Movie movie = new Movie { Title = "Hack & Slash", Cast = MovieData.StartingCast, Crew = MovieData.StartingCrew, FilmingLocations = MovieData.StartingLocations, Shoots = MovieData.StartingScheduleItems }; PrintWelcome(movie); while (true) { string[] mainMenuOptions = { "Manage Cast", "Manage Crew", "Manage Locations", "Schedule", "Add Producer", "Show Producers", "Expense Report", "Exit" }; int selectionIndex = MenuHelper.GetMenuSelection(mainMenuOptions); switch (selectionIndex) { case 0: Console.Clear(); CastService.ShowCastMenu(movie); break; case 1: Console.Clear(); CrewService.ShowCrewMenu(movie); break; case 2: Console.Clear(); LocationService.ShowLocationMenu(movie); break; case 3: Console.Clear(); ScheduleService.ShowScheduleMenu(movie); break; case 4: Console.Clear(); ProducerService.AddProducer(movie); break; case 5: Console.Clear(); ProducerService.ShowProducer(movie); break; case 6: Console.Clear(); ReportService.ShowReport(movie); break; case 7: return; default: break; } } }
public LanguageService(IConfiguration configuration, CastService castService, LoggingService <LanguageService> loggingService) { _configuration = configuration; _castService = castService; _loggingService = loggingService; }