RocketBot
RocketBot copied to clipboard
[REQUEST] Favorite selected pokemon in PokeUi
Hello, First of all, great job!
Would be great to add a "Favorite selected pokemon" button from PokeUi. I don't know if it's possible with the current API.
message Pokemon { int32 id = 1; ...... int32 favorite = 29; ....... }
I made some digging and will fix this one :-) Work in progress..
It seems more complicated than expected.
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);
}