Exemple #1
0
        protected override Task Load(bool forceCacheInvalidation)
        {
            var pullRequest = this.GetApplication().Client.Users[Username].Repositories[Repository].PullRequests[Id].Get();
            var t1          = this.RequestModel(pullRequest, forceCacheInvalidation, response => PullRequest = response.Data);

            Events.SimpleCollectionLoad(this.GetApplication().Client.Users[Username].Repositories[Repository].Issues[Id].GetEvents(), forceCacheInvalidation).FireAndForget();
            Comments.SimpleCollectionLoad(this.GetApplication().Client.Users[Username].Repositories[Repository].Issues[Id].GetComments(), forceCacheInvalidation).FireAndForget();
            this.RequestModel(this.GetApplication().Client.Users[Username].Repositories[Repository].Issues[Id].Get(), forceCacheInvalidation, response => Issue = response.Data).FireAndForget();
            return(t1);
        }
Exemple #2
0
        public async override void ViewDidLoad()
        {
            base.ViewDidLoad();

            try
            {
                MonoTouch.Utilities.PushNetworkActive();
                var app = Cirrious.CrossCore.Mvx.Resolve <CodeHub.Core.Services.IApplicationService>();
                await _milestones.SimpleCollectionLoad(app.Client.Users[_username].Repositories[_repository].Milestones.GetAll(), false);
            }
            catch {
            }
            finally
            {
                MonoTouch.Utilities.PopNetworkActive();
            }
        }
Exemple #3
0
        public async override void ViewDidLoad()
        {
            base.ViewDidLoad();

            try
            {
                NetworkActivity.PushNetworkActive();
                var app = MvvmCross.Platform.Mvx.Resolve <CodeHub.Core.Services.IApplicationService>();
                await _milestones.SimpleCollectionLoad(app.Client.Users[_username].Repositories[_repository].Milestones.GetAll());
            }
            catch {
            }
            finally
            {
                NetworkActivity.PopNetworkActive();
            }
        }
 public Task Load(bool forceDataRefresh)
 {
     return(_users.SimpleCollectionLoad(Application.Client.Users[Name].GetFollowing(), forceDataRefresh));
 }