public void GetProject(Action<Project, Exception> callback, string key) { Project result = null; if (string.Equals(key, "JIRAWIN8")) { result = new Project() { Id = "1001", Key = "JIRAWIN8", Name = "JIRA Windows 8 Client", Self = "https://localhost/projects/JIRAWIN8" }; } else if(string.Equals(key, "IRC")) { result = new Project() { Id = "1002", Key = "IRC", Name = "IRC Windows 8 Client", Self = "https://localhost/projects/IRC" }; } callback(result, null); }
public void Update(Project project) { if (project != null) { this.Description = project.Description; this.Lead = project.Lead; this.Url = project.Url; this.AssigneeType = project.AssigneeType; if (project.Versions != null) Versions = project.Versions; if (project.Components != null) Components = project.Components; if (project.Roles != null) Roles = project.Roles; } }