Exemplo n.º 1
0
        /// <summary>
        /// Request a code for verification of a new device.
        /// Called by an already verified device.
        /// </summary>
        /// <returns>A verification code (String of 6 digits)</returns>
        /// <exception cref="IOException"></exception>
        public async Task <string> GetNewDeviceVerificationCodeAsync(CancellationToken?token = null)
        {
            if (token == null)
            {
                token = CancellationToken.None;
            }

            return(await pushServiceSocket.GetNewDeviceVerificationCodeAsync(token));
        }