Esempio n. 1
0
        public async Task<GetIncensePokemonResponse> GetIncensePokemons()
        {
            var message = new GetIncensePokemonMessage()
            {
                PlayerLatitude = _client.CurrentLatitude,
                PlayerLongitude = _client.CurrentLongitude
            };

            return await PostProtoPayload<Request, GetIncensePokemonResponse>(RequestType.GetIncensePokemon, message);
        }
Esempio n. 2
0
        public GetIncensePokemonResponse GetIncensePokemons()
        {
            var message = new GetIncensePokemonMessage
            {
                PlayerLatitude  = Client.CurrentLatitude,
                PlayerLongitude = Client.CurrentLongitude
            };

            return(PostProtoPayloadCommonR <Request, GetIncensePokemonResponse>(RequestType.GetIncensePokemon, message).Result);
        }
Esempio n. 3
0
        public async Task <GetIncensePokemonResponse> GetIncensePokemons()
        {
            var message = new GetIncensePokemonMessage
            {
                PlayerLatitude  = Client.CurrentLatitude,
                PlayerLongitude = Client.CurrentLongitude
            };

            return(await PostProtoPayload <Request, GetIncensePokemonResponse>(RequestType.GetIncensePokemon, message));
        }
Esempio n. 4
0
        /// <summary>
        ///
        /// </summary>
        /// <returns></returns>
        public bool QueueIncensedPokemonRequest()
        {
            var message = new GetIncensePokemonMessage
            {
                PlayerLatitude  = Client.CurrentPosition.Latitude,
                PlayerLongitude = Client.CurrentPosition.Longitude
            };

            return(Client.QueueRequest(RequestType.GetIncensePokemon, message));
        }