private Models.Task[] GetTasks(string urlPath, TasksQuery query) { if (query != null) { urlPath = query.PopulateRequestQueryString(urlPath); } Models.Task[] nameAndIdOnly = ObjectConversions.ToTasks(ExecuteRequest(urlPath)); if (nameAndIdOnly == null) { return(null); } if (query == null || query.ReturnCompleteTaskRecords == false) { return(nameAndIdOnly); } Models.Task[] ret = new Models.Task[nameAndIdOnly.Length]; Parallel.For(0, nameAndIdOnly.Length, i => { ret[i] = GetTask(nameAndIdOnly[i].Id); }); return(ret); }
public Models.Task GetTask(long taskId) { return(ObjectConversions.ToTask(ExecuteRequest("/tasks/" + taskId.ToString()))); }
private Workspace[] GetWorkspaces(string urlPath) { return(ObjectConversions.ToWorkspaces(ExecuteRequest(urlPath))); }
private Story[] GetStories(string urlPath, OptionalFields[] returnedFields = null) { return(ObjectConversions.ToStories( ExecuteRequest(urlPath, returnedFields, ",created_at,id,text,source,type,created_by,created_by.name,target.completed") )); }
private User[] GetUsers(string urlPath, OptionalFields[] returnedFields) { return(ObjectConversions.ToUsers(ExecuteRequest(urlPath, returnedFields, ",name,id"))); }
private User GetUser(string userId) { return(ObjectConversions.ToUser(ExecuteRequest("/users/" + userId))); }
private Project GetProject(string urlPath, OptionalFields[] returnedFields) { dynamic dProject = MakeRequest(urlPath, returnedFields); return(ObjectConversions.ToProject(dProject)); }