Esempio n. 1
0
        public async Task Load(Tuple <string, string, Issue> tuple)
        {
            Issue    = tuple.Item3;
            Login    = tuple.Item1;
            RepoName = tuple.Item2;

            if (!GlobalHelper.IsInternet())
            {
                Messenger.Default.Send(new GlobalHelper.NoInternetMessageType()); //Sending NoInternet message to all viewModels
            }
            else
            {
                Messenger.Default.Send(new GlobalHelper.HasInternetMessageType()); //Sending Internet available message to all viewModels

                IsPull = Issue.PullRequest != null ? true : false;

                isLoading = true;
                Comments  = await RepositoryUtility.GetAllCommentsForIssue(Login, RepoName, Issue.Number);

                isLoading = false;
            }
        }