public string getName(string userID) { Request<string> request = new Request<string>(); request.Item = userID; var response = Utility.ClientHelper(client, proxy => proxy.DoWork(request)); return response.Item; }
private string GetCheckoutRules() { var response = new Request().MakeGetRequest(DetailsLink); var rootElement = XElementParser.For(response); var vcsRoot = rootElement.Element("vcs-root"); var vcsRootEntry = vcsRoot.Element("vcs-root-entry"); var rule = vcsRootEntry.ElementValue("checkout-rules"); return rule.Substring(rule.IndexOf("+:")+2, (rule.Length-7)); }
private List<TcBuildType> LoadBuildTypes() { var response = new Request().MakeGetRequest(DetailsLink); return TcBuildType.Parse(response); }
public static List<TcProject> LoadAllProjects() { var response= new Request().MakeGetRequest(projectsUri); return Parse(response); }
private TcVCSRoot GetVCSRoot() { var response = new Request().MakeGetRequest(DetailsLink); var rootElement = XElementParser.For(response); var vcsRoot = rootElement.Element("vcs-root"); var vcsRootEntry = vcsRoot.Element("vcs-root-entry"); var uri= vcsRootEntry.Element("vcs-root"); return TcVCSRoot.Load(uri.AttributeValue("href")); }
public static TcVCSRoot Load(string uri) { if (null == uri) return null; var response = new Request().MakeGetRequest(uri.Replace("id:","")); return Parse(response); }