Exemplo n.º 1
0
        public async Task Initialize()
        {
            await _movieDbApi.SetUpImageApi();

            _importSeriesIds  = new List <long>();
            _importPersonsIds = new List <long>();
            _importSeasonsIds = new List <SeasonWithSeries>();

            switch (_idSource)
            {
            case IdSource.Db:
                await InitializeFromDb();

                break;

            case IdSource.Config:
                InitializeFromConfig();
                break;

            case IdSource.Popular:
                await InitializePopular();

                break;
            }

            _isInitialized = true;
        }