Exemple #1
0
        /// <summary>
        /// Deletes several contacts from the list.
        /// </summary>
        /// <param name="contacts"></param>
        /// <returns></returns>
        public async Task <bool> DeleteContactsAsync(List <Models.Contact> contacts)
        {
            await ConnectAsync();

            return(await _client.DeleteContacts(contacts.Select(contact => new InputUserContactConstructor(contact.Id)).Cast <InputUser>().ToList()));
        }