示例#1
0
        public async Task <UseItemEggIncubatorResponse> UseItemEggIncubator(string itemId, ulong pokemonId)
        {
            var message = new UseItemEggIncubatorMessage()
            {
                ItemId    = itemId,
                PokemonId = pokemonId
            };

            return(await PostProtoPayload <Request, UseItemEggIncubatorResponse>(RequestType.UseItemEggIncubator, message));
        }
示例#2
0
        public async Task<UseItemEggIncubatorResponse> UseItemEggIncubator(string itemId, ulong pokemonId)
        {
            var message = new UseItemEggIncubatorMessage()
            {
                ItemId = itemId,
                PokemonId = pokemonId
            };

            return await PostProtoPayload<Request, UseItemEggIncubatorResponse>(RequestType.UseItemEggIncubator, message);
        }
示例#3
0
        public UseItemEggIncubatorResponse UseItemEggIncubator(string itemId, ulong pokemonId)
        {
            var message = new UseItemEggIncubatorMessage()
            {
                ItemId    = itemId,
                PokemonId = pokemonId
            };

            return(PostProtoPayloadCommonR <Request, UseItemEggIncubatorResponse>(RequestType.UseItemEggIncubator, message).Result);
        }
示例#4
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="itemId"></param>
        /// <param name="pokemonId"></param>
        /// <returns></returns>
        public bool QueueUseItemEggIncubatorRequest(string itemId, ulong pokemonId)
        {
            var message = new UseItemEggIncubatorMessage
            {
                ItemId    = itemId,
                PokemonId = pokemonId
            };

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