public async Task <FortRecallPokemonResponse> FortRecallPokemon(string fortId, ulong pokemonId) { var message = new FortRecallPokemonMessage { PokemonId = pokemonId, FortId = fortId, PlayerLatitude = Client.CurrentLatitude, PlayerLongitude = Client.CurrentLongitude }; return(await PostProtoPayload <Request, FortRecallPokemonResponse>(RequestType.FortRecallPokemon, message)); }
/// <summary> /// /// </summary> /// <param name="fortId"></param> /// <param name="pokemonId"></param> /// <returns></returns> public bool QueueFortRecallPokemonRequest(string fortId, ulong pokemonId) { var message = new FortRecallPokemonMessage { PokemonId = pokemonId, FortId = fortId, PlayerLatitude = Client.CurrentPosition.Latitude, PlayerLongitude = Client.CurrentPosition.Longitude }; return(Client.QueueRequest(RequestType.FortRecallPokemon, message)); }
public FortRecallPokemonResponse FortRecallPokemon(string fortId, ulong pokemonId) { var message = new FortRecallPokemonMessage { PokemonId = pokemonId, FortId = fortId, PlayerLatitude = Client.CurrentLatitude, PlayerLongitude = Client.CurrentLongitude }; return(PostProtoPayloadCommonR <Request, FortRecallPokemonResponse>(RequestType.FortRecallPokemon, message).Result); }
public async Task<FortRecallPokemonResponse> FortRecallPokemon(string fortId, ulong pokemonId) { var message = new FortRecallPokemonMessage() { PokemonId = pokemonId, FortId = fortId, PlayerLatitude = _client.CurrentLatitude, PlayerLongitude = _client.CurrentLongitude }; return await _baseRpc.PostProtoPayload<Request, FortRecallPokemonResponse>(RequestType.FortRecallPokemon, message); }