コード例 #1
0
        public void ToProject(Project project)
        {
            var intent = new Intent(CurrentActivity, typeof (BuildsActivity));

            intent.PutExtra("ProjectId", project.Id);

            CurrentActivity.StartActivity(intent);
        }
コード例 #2
0
        public void ToProject(Project project)
        {
            var controller = (BuildsViewController) navigationController.Storyboard.InstantiateViewController("Builds");

            controller.SetProject(project);

            navigationController.PushViewController(controller, true);
        }
コード例 #3
0
		public Task<IReadOnlyCollection<Definition>> GetDefinitionsAsync(Project project)
		{
		    var definitions = definitionNames.Select((n, i) => new Definition
		    {
		        Id = i,
		        Name = n
		    }).ToList();

			return Task.FromResult<IReadOnlyCollection<Definition>>(definitions);
		}
コード例 #4
0
		public Task<BuildDetail> QueueBuildAsync(Project project, BuildRequest buildRequest)
		{
			return Task.FromResult(new BuildDetail
			{
				Id = 1,
				Definition = buildRequest.Definition,
				QueueTime = DateTimeOffset.UtcNow,
				StartTime = DateTimeOffset.UtcNow,
				FinishTime = DateTimeOffset.UtcNow,
				Result = "unknown",
				Status = ""
			});
		}
コード例 #5
0
 public void ToProject(Project project)
 {
     navigation.For<BuildsViewModel>()
         .WithParam(v => v.ProjectId, project.Id)
         .Navigate();
 }
コード例 #6
0
 public ProjectViewModel(Project project)
 {
     Project = project;
 }
コード例 #7
0
		public Task<IReadOnlyCollection<BuildDetail>> GetBuildsAsync(Project project)
		{
		    var builds = Enumerable.Range(1, 15).Select(i => GetBuild()).ToList();

			return Task.FromResult<IReadOnlyCollection<BuildDetail>>(builds);
		}