Beispiel #1
0
 public void AddNewProjectAPI(AccountData account, ProjectData projectData)
 {
     MantisApi.MantisConnectPortTypeClient client = new MantisApi.MantisConnectPortTypeClient();
     MantisApi.ProjectData project = new MantisApi.ProjectData();
     project.name = projectData.Name;
     client.mc_project_add(account.Name, account.Password, project);
 }
Beispiel #2
0
 public void CreateNewIssue(AccountData account, ProjectData project, IssueData issueData)
 {
     MantisApi.MantisConnectPortTypeClient client = new MantisApi.MantisConnectPortTypeClient();
     MantisApi.IssueData issue = new MantisApi.IssueData();
     issue.summary     = issueData.Summary;
     issue.description = issueData.Description;
     issue.category    = issueData.Category;
     issue.project     = new MantisApi.ObjectRef();
     issue.project.id  = project.Id;
     client.mc_issue_add(account.Name, account.Password, issue);
 }
Beispiel #3
0
        public List <ProjectData> GetAllProjects(AccountData account)
        {
            MantisApi.MantisConnectPortTypeClient client = new MantisApi.MantisConnectPortTypeClient();
            MantisApi.ProjectData[] projectDatas         = client.mc_projects_get_user_accessible(account.Name, account.Password);
            List <ProjectData>      list = new List <ProjectData>();

            foreach (MantisApi.ProjectData projectData in projectDatas)
            {
                list.Add(new ProjectData
                {
                    Name = projectData.name,
                    Id   = projectData.id,
                });
            }
            return(list);
        }