Ejemplo n.º 1
0
        /// <summary>
        ///
        /// </summary>
        /// <returns>The server's count of currently available (eg. unused) prekeys for this user.</returns>
        /// <exception cref="IOException"></exception>
        public async Task <int> GetPreKeysCountAsync(CancellationToken?token = null)
        {
            if (token == null)
            {
                token = CancellationToken.None;
            }

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