예제 #1
0
        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));
        }
예제 #2
0
        /// <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));
        }
예제 #3
0
        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);
        }
예제 #4
0
        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);
        }