public async Task<Update> NextUpdate()
        {
            if (index >= updates.Length)
	        {
                do
                {
                    updates = await api.GetUpdates(offset);
                    await Task.Delay(1000);
                }
                while (updates.Length == 0);
		        index = 0;
	        }
            offset = updates[index].Id + 1;
            return updates[index++];
        }
Beispiel #2
0
        public override void ViewDidLoad()
        {
            this.updates = DataLoader.LoadSampleUpdates ();

            tableListView.WeakDelegate = this;
            tableListView.WeakDataSource = this;

            tableListView.BackgroundColor = UIColor.Clear;
            tableListView.SeparatorStyle = UITableViewCellSeparatorStyle.None;

            Xamarin.Themes.BizappTheme.Apply (View);

            Title = "Updates";

            base.ViewDidLoad ();
        }