Skip to content

Commit

Permalink
Add GetPlayerProfile
Browse files Browse the repository at this point in the history
  • Loading branch information
FeroxRev committed Jul 25, 2016
1 parent 838ce0c commit 5c8f08b
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion PokemonGo.RocketAPI/Rpc/Player.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,19 @@ internal void SetCoordinates(double lat, double lng, double altitude)
_client.CurrentAltitude = altitude;
}

public async Task<GetPlayerResponse> GetOwnProfile()
public async Task<GetPlayerResponse> GetPlayer()
{
return await PostProtoPayload<Request, GetPlayerResponse>(RequestType.GetPlayer, new GetPlayerMessage());
}

public async Task<GetPlayerProfileResponse> GetPlayerProfile(string playerName)
{
return await PostProtoPayload<Request, GetPlayerProfileResponse>(RequestType.GetPlayerProfile, new GetPlayerProfileMessage()
{
PlayerName = playerName
});
}

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

0 comments on commit 5c8f08b

Please sign in to comment.