public async Task <string> GamertagXuid(string gamertag) { XboxAPIRestResponse response = await xboxApiRestClient.GamertagXuid(gamertag); // Special case response where XUID is not found because it is returned in an inconsistent object format if (response.StatusCode == HttpStatusCode.NotFound) { // XUID not found return(null); } return(JsonConvert.DeserializeObject <GamertagXuid>(response.Content).xuid); }
public async Task <string> XuidGamertag(string xuid) { XboxAPIRestResponse response = await xboxApiRestClient.XuidGamertag(xuid); // Special case response where Gamertag is not found for given XUID because the API will just return an // empty response if (response.Content == string.Empty) { // Gamertag not found return(null); } return(JsonConvert.DeserializeObject <XuidGamertag>(response.Content).gamertag); }
public async Task <Xbox360GameAchievement[]> Xbox360GameAchievements(string xuid, string titleId) { XboxAPIRestResponse response = await xboxApiRestClient.XboxGameAchievements(xuid, titleId); return(JsonConvert.DeserializeObject <Xbox360GameAchievement[]>(response.Content)); }
public async Task <Profile> Profile(string xuid) { XboxAPIRestResponse response = await xboxApiRestClient.Profile(xuid); return(JsonConvert.DeserializeObject <Profile>(response.Content)); }
public async Task <GameStats> GameStats(string xuid, string titleId) { XboxAPIRestResponse response = await xboxApiRestClient.GameStats(xuid, titleId); return(JsonConvert.DeserializeObject <GameStats>(response.Content)); }
public async Task <Gamercard> Gamercard(string xuid) { XboxAPIRestResponse response = await xboxApiRestClient.Gamercard(xuid); return(JsonConvert.DeserializeObject <Gamercard>(response.Content)); }
public async Task <AccountXuid> AccountXuid() { XboxAPIRestResponse response = await xboxApiRestClient.AccountXuid(); return(JsonConvert.DeserializeObject <AccountXuid>(response.Content)); }
public async Task <XboxOneGames> XboxOneGames(string xuid) { XboxAPIRestResponse response = await xboxApiRestClient.XboxOneGames(xuid); return(JsonConvert.DeserializeObject <XboxOneGames>(response.Content)); }