Beispiel #1
0
        public async Task <List <User> > GetUsersInContacts()
        {
            if (_State == null)
            {
                return(null);
            }

            List <string> lNumbers = await _PhonebookService.GetPhoneNumbersAsync();

            if (lNumbers == null || !lNumbers.Any())
            {
                return(new List <User>());
            }

            try
            {
                using ApiClient lClient = new ApiClient(_State);
                return(await lClient.NumberSearch(lNumbers));
            }
            catch (Exception)
            {
                return(new List <User>());
            }
        }