예제 #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);
 }
예제 #3
0
        void ItemSelected()
        {
            if (SelectedItem == null)
            {
                return;
            }

            var navigationService = new Services.NavigationService();

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