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); }
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)); }
public GameViewModelWrapper() { Platform Platform = new Models.Platform(); Game Game = new Models.Game(); }