Skip to content

Commit

Permalink
Add SetFavoritePokemon
Browse files Browse the repository at this point in the history
  • Loading branch information
FeroxRev committed Jul 25, 2016
1 parent 71a4519 commit a38ac4a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions PokemonGo.RocketAPI/Rpc/Inventory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -144,5 +144,16 @@ public async Task<NicknamePokemonResponse> NicknamePokemon(ulong pokemonId, stri

return await PostProtoPayload<Request, NicknamePokemonResponse>(RequestType.NicknamePokemon, message);
}

public async Task<SetFavoritePokemonResponse> SetFavoritePokemon(ulong pokemonId, bool isFavorite)
{
var message = new SetFavoritePokemonMessage()
{
PokemonId = pokemonId,
IsFavorite = isFavorite
};

return await PostProtoPayload<Request, SetFavoritePokemonResponse>(RequestType.SetFavoritePokemon, message);
}
}
}

0 comments on commit a38ac4a

Please sign in to comment.