From a38ac4a97449a8673c947188df683f62e39eb693 Mon Sep 17 00:00:00 2001 From: FeroxRev Date: Mon, 25 Jul 2016 17:43:05 +0200 Subject: [PATCH] Add SetFavoritePokemon --- PokemonGo.RocketAPI/Rpc/Inventory.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/PokemonGo.RocketAPI/Rpc/Inventory.cs b/PokemonGo.RocketAPI/Rpc/Inventory.cs index d01d96b..ffe964b 100644 --- a/PokemonGo.RocketAPI/Rpc/Inventory.cs +++ b/PokemonGo.RocketAPI/Rpc/Inventory.cs @@ -144,5 +144,16 @@ public async Task NicknamePokemon(ulong pokemonId, stri return await PostProtoPayload(RequestType.NicknamePokemon, message); } + + public async Task SetFavoritePokemon(ulong pokemonId, bool isFavorite) + { + var message = new SetFavoritePokemonMessage() + { + PokemonId = pokemonId, + IsFavorite = isFavorite + }; + + return await PostProtoPayload(RequestType.SetFavoritePokemon, message); + } } } \ No newline at end of file