예제 #1
0
        public void GetRecentAllTest()
        {
            InitializeClient();
            var completion = new ManualResetEvent(false);

            client.GetRecentAll().Subscribe(a =>
            {
                var b = a.ToArray();
                completion.Set();
            });

            completion.WaitOne();
        }
예제 #2
0
        public IObservable <IEnumerable <RecentItem> > GetRecentAll()
        {
            isRecentLoaded = false;

            return(client.GetRecentAll().Select(items =>
            {
                if (items == null || items.Count() == 0)
                {
                    return items;
                }
                isRecentLoaded = true;
                recentItems.Clear();
                RefreshFeedItems(items);
                return SaveAndReturnItem(items);
            }));
        }