Beispiel #1
0
        public async Task <Models.Platform> AddPlatformAsync(Models.Platform platform)
        {
            string uri = AppSettings.PlatformsEndpoint;

            var token = await _loginService.GetOAuthToken();

            return(await _requestService.PostAsync <Models.Platform, Models.Platform>(uri, platform, token));
        }
 public async void GoToPlatformGames(Models.Platform platform)
 {
     var platformInfo = new Pages.PlatformGameList()
     {
         PassedPlatform = platform
     };
     var tabPage = (TabbedPage)((NavigationPage)Application.Current.MainPage).CurrentPage;
     var tabNav  = tabPage.CurrentPage.Navigation;
     await tabNav.PushAsync(platformInfo);
 }
Beispiel #3
0
        void ItemSelected()
        {
            if (SelectedItem == null)
            {
                return;
            }

            var navigationService = new Services.NavigationService();

            navigationService.GoToPlatform(SelectedItem.Id);
            SelectedItem = null;
        }
 public Task <Models.Platform> AddPlatformAsync(Models.Platform platform)
 {
     return(Task.FromResult(platform));
 }
Beispiel #5
0
 public GameViewModelWrapper()
 {
     Platform Platform = new Models.Platform();
     Game     Game     = new Models.Game();
 }