Skip to content

Commit

Permalink
Add newly awarded badges
Browse files Browse the repository at this point in the history
  • Loading branch information
FeroxRev committed Jul 25, 2016
1 parent f1b230f commit 1df628b
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions PokemonGo.RocketAPI/Rpc/Player.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public async Task<PlayerUpdateResponse> UpdatePlayerLocation(double latitude, do
RequestMessage = message.ToByteString()
});

return await _client.PokemonHttpClient.PostProtoPayload<Request, PlayerUpdateResponse>(ApiUrl, updatePlayerLocationRequestEnvelope);
return await PostProtoPayload<Request, PlayerUpdateResponse>(updatePlayerLocationRequestEnvelope);
}

internal void SetCoordinates(double lat, double lng, double altitude)
Expand All @@ -47,8 +47,12 @@ internal void SetCoordinates(double lat, double lng, double altitude)

public async Task<GetPlayerResponse> GetOwnProfile()
{
var request = RequestBuilder.GetRequestEnvelope(RequestType.GetPlayer, new GetPlayerMessage());
return await _client.PokemonHttpClient.PostProtoPayload<Request, GetPlayerResponse>(ApiUrl, request);
return await PostProtoPayload<Request, GetPlayerResponse>(RequestType.GetPlayer, new GetPlayerMessage());
}

public async Task<CheckAwardedBadgesResponse> GetNewlyAwardedBadges()
{
return await PostProtoPayload<Request, CheckAwardedBadgesResponse>(RequestType.CheckAwardedBadges, new CheckAwardedBadgesMessage());
}
}
}

0 comments on commit 1df628b

Please sign in to comment.