/// <summary> /// Gets the movie list. /// </summary> async void GetMovieList() { try { uiFunctionsService.ShowLoading(Constants.MessageLoadingMoviesForTheFirstTime); var img = await imagesService.GetRemoteData(APIOperations.Configuration, ConfigureParameters(APIOperations.Configuration)); if (img != null) { settingsService.Set("IMGURL", img.BaseUrl); } await genresService.GetAllRemoteData(APIOperations.Genres, ConfigureParameters(APIOperations.Genres)); var ret = await resultsService.GetAllRemoteData(APIOperations.GetMovieListURLAddress, ConfigureParameters(APIOperations.GetMovieListURLAddress)); ret = AddImageLinkAndRemoveRepeated(ret); Movies = new ObservableCollection <Results>(ret); uiFunctionsService.HideLoading(); } catch (FetchRemoteDataException) { uiFunctionsService.HideLoading(); uiFunctionsService.ShowToast(Constants.GetOnlineDataErrorMessage, ToastType.Error, 8000); } catch (ConnectionException) { uiFunctionsService.HideLoading(); uiFunctionsService.ShowToast(Constants.OfflineMessage, ToastType.Info, 8000); GetLocalMovieList(); } catch { uiFunctionsService.HideLoading(); mobileCenterCrashesService.AskBeforeSendCrashReport(); uiFunctionsService.ShowToast(Constants.GeneralErrorMessage, ToastType.Error, 8000); } }