public Case GetCase(CaseId id, string[] columns) { var response = executeFogBugzApiCommand("search", new { q = id.ToString(), cols = string.Join(",", columns) }); CaseParser.Parse(response); return(CaseParser.Cases.FirstOrDefault()); }
public override string ToString() { string caseIdStr; if (CaseId == null) { caseIdStr = ""; } else { caseIdStr = CaseId.ToString(); } if (CheckUId == null) { return("CaseId:" + caseIdStr + " / Stat:" + Stat + " / SiteUId:" + SiteUId + " / CaseType:" + CaseType + " / CaseUId:" + CaseUId + " / MicrotingUId:" + MicrotingUId + "."); } // if (CheckUId == "") return "CaseId:" + caseIdStr + " / Stat:" + Stat + " / SiteUId:" + SiteUId + " / CaseType:" + CaseType + " / CaseUId:" + CaseUId + " / MicrotingUId:" + MicrotingUId + "."; return("CaseId:" + caseIdStr + " / Stat:" + Stat + " / SiteUId:" + SiteUId + " / CaseType:" + CaseType + " / CaseUId:" + CaseUId + " / MicrotingUId:" + MicrotingUId + " / CheckId:" + CheckUId + "."); }