public void ToProject(Project project)
        {
            var intent = new Intent(CurrentActivity, typeof (BuildsActivity));

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

            CurrentActivity.StartActivity(intent);
        }
        public void ToProject(Project project)
        {
            var controller = (BuildsViewController) navigationController.Storyboard.InstantiateViewController("Builds");

            controller.SetProject(project);

            navigationController.PushViewController(controller, true);
        }
		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);
		}
		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 = ""
			});
		}
 public void ToProject(Project project)
 {
     navigation.For<BuildsViewModel>()
         .WithParam(v => v.ProjectId, project.Id)
         .Navigate();
 }
Example #6
0
 public ProjectViewModel(Project project)
 {
     Project = project;
 }
		public Task<IReadOnlyCollection<BuildDetail>> GetBuildsAsync(Project project)
		{
		    var builds = Enumerable.Range(1, 15).Select(i => GetBuild()).ToList();

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