Example #1
0
        /// <summary>
        /// Load contacts.
        /// </summary>
        public async void Load()
        {
            Contacts.Clear();

            Logger.Log.Info($"Getting contacts");

            var res = await contacts.GetAllAsync();

            if (res)
            {
                Logger.Log.Info($"{res.Result.Count()} contacts recevied");
                Contacts.AddRange(res.Result);
            }
            else
            {
                Logger.Log.Error($"Gettings contacts error: {res.Code}");
            }
        }