Exemplo n.º 1
0
        public async Task <NicknamePokemonResponse> NicknamePokemon(ulong pokemonId, string nickName)
        {
            var message = new NicknamePokemonMessage
            {
                PokemonId = pokemonId,
                Nickname  = nickName
            };

            return(await PostProtoPayload <Request, NicknamePokemonResponse>(RequestType.NicknamePokemon, message));
        }
Exemplo n.º 2
0
        public NicknamePokemonResponse NicknamePokemon(ulong pokemonId, string nickName)
        {
            var message = new NicknamePokemonMessage()
            {
                PokemonId = pokemonId,
                Nickname  = nickName
            };

            return(PostProtoPayload <Request, NicknamePokemonResponse>(RequestType.NicknamePokemon, message));
        }
Exemplo n.º 3
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="pokemonId"></param>
        /// <param name="nickName"></param>
        /// <returns></returns>
        public bool QueueNicknamePokemonRequest(ulong pokemonId, string nickName)
        {
            var message = new NicknamePokemonMessage
            {
                PokemonId = pokemonId,
                Nickname  = nickName
            };

            return(Client.QueueRequest(RequestType.NicknamePokemon, message));
        }
Exemplo n.º 4
0
        public async Task<NicknamePokemonResponse> NicknamePokemon(ulong pokemonId, string nickName)
        {
            var message = new NicknamePokemonMessage()
            {
                PokemonId = pokemonId,
                Nickname = nickName
            };

            return await PostProtoPayload<Request, NicknamePokemonResponse>(RequestType.NicknamePokemon, message);
        }