Пример #1
0
        public static void LoadConversation()
        {
            try
            {
                ValidateKey.GetValideKey();
                var get = new HttpRequestGet();
                var res = get.FindConversation(new List<Message>(), Singleton.Singleton.Instance().SecureKey,
                    Singleton.Singleton.Instance().CurrentUser.id.ToString());
                res.ContinueWith(delegate(Task<object> tmp2)
                {
                    var result = tmp2.Result as List<Message>;
                    if (result != null)
                    {
                        _conversation = new ObservableCollection<Message>(result);
                        CoreApplication.MainView.CoreWindow.Dispatcher.RunAsync(CoreDispatcherPriority.Normal,
                            CheckConversation);
                    }
                });
            }
            catch (Exception)
            {
            }

        }