示例#1
0
 public mantis.Mantis.ProjectData[] GetProjectList(AccountData account)
 {
     mantis.Mantis.MantisConnectPortTypeClient client = new mantis.Mantis.MantisConnectPortTypeClient();
     //mantis.Mantis.ProjectData project = new mantis.Mantis.ProjectData();
     mantis.Mantis.ProjectData[] list = client.mc_projects_get_user_accessible(account.Username, account.Password);
     return(list);
 }
示例#2
0
 public void CreateNewProject(AccountData account, ProjectData projectData)
 {
     mantis.Mantis.MantisConnectPortTypeClient client = new mantis.Mantis.MantisConnectPortTypeClient();
     mantis.Mantis.ProjectData project = new mantis.Mantis.ProjectData();
     project.name        = projectData.Name;
     project.description = projectData.Description;
     client.mc_project_add(account.Username, account.Password, project);
 }
示例#3
0
 public void CreateNewIssue(AccountData account, ProjectData project, IssueData issueData)
 {
     mantis.Mantis.MantisConnectPortTypeClient client = new mantis.Mantis.MantisConnectPortTypeClient();
     mantis.Mantis.IssueData issue = new mantis.Mantis.IssueData();
     issue.summary     = issueData.Summary;
     issue.description = issueData.Description;
     issue.category    = issueData.Category;
     issue.project     = new mantis.Mantis.ObjectRef();
     issue.project.id  = project.Id;
     client.mc_issue_add(account.Username, account.Password, issue);
 }