public static BuildLocator WithDimensions(BuildTypeLocator buildType = null, UserLocator user = null, string agentName = null, BuildStatus? status = null, bool? personal = null, bool? canceled = null, bool? running = null, bool? pinned = null, int? maxResults = null, int? startIndex = null, BuildLocator sinceBuild = null, DateTime? sinceDate = null, string[] tags = null, string branch = null ) { return new BuildLocator { BuildType = buildType, User = user, AgentName = agentName, Status = status, Personal = personal, Canceled = canceled, Running = running, Pinned = pinned, MaxResults = maxResults, StartIndex = startIndex, SinceBuild = sinceBuild, SinceDate = sinceDate, Tags = tags, Branch = branch }; }
public List<Build> ByBuildLocator(BuildLocator locator) { var buildWrapper = _caller.GetFormat<BuildWrapper>("/app/rest/builds?locator={0}", locator); if (int.Parse(buildWrapper.Count) > 0) { return buildWrapper.Build; } return new List<Build>(); }