コード例 #1
0
ファイル: Map.cs プロジェクト: C9Kamis/PoGo-UWP
        public async Task<GetIncensePokemonResponse> GetIncensePokemons()
        {
            var message = new GetIncensePokemonMessage()
            {
                PlayerLatitude = _client.CurrentLatitude,
                PlayerLongitude = _client.CurrentLongitude
            };

            return await PostProtoPayload<Request, GetIncensePokemonResponse>(RequestType.GetIncensePokemon, message);
        }
コード例 #2
0
ファイル: Map.cs プロジェクト: linyuhan/PokemonGo-Bot-1
        public GetIncensePokemonResponse GetIncensePokemons()
        {
            var message = new GetIncensePokemonMessage
            {
                PlayerLatitude  = Client.CurrentLatitude,
                PlayerLongitude = Client.CurrentLongitude
            };

            return(PostProtoPayloadCommonR <Request, GetIncensePokemonResponse>(RequestType.GetIncensePokemon, message).Result);
        }
コード例 #3
0
ファイル: Map.cs プロジェクト: riskyend/PokemonGo.RocketAPI
        public async Task <GetIncensePokemonResponse> GetIncensePokemons()
        {
            var message = new GetIncensePokemonMessage
            {
                PlayerLatitude  = Client.CurrentLatitude,
                PlayerLongitude = Client.CurrentLongitude
            };

            return(await PostProtoPayload <Request, GetIncensePokemonResponse>(RequestType.GetIncensePokemon, message));
        }
コード例 #4
0
ファイル: MapClient.cs プロジェクト: riskyend/PoGo
        /// <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));
        }