Esempio n. 1
0
 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 IList<Investigation> InvestinationsByUser(UserLocator userLocator)
        {
            var investigationWrapper = _caller.GetFormat<InvestigationWrapper>("/app/rest/investigations?locator=assignee:({0})",
                userLocator);

            return investigationWrapper.Investigation ?? new List<Investigation>();
        }
Esempio n. 3
0
 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
                };
 }
Esempio n. 4
0
 public static ChangeLocator WithDimensions(string id,
                                            string project             = null,
                                            BuildTypeLocator buildType = null,
                                            BuildLocator build         = null,
                                            string vcsRoot             = null,
                                            string vcsRootInstance     = null,
                                            string userName            = null,
                                            UserLocator user           = null,
                                            string version             = null,
                                            string internalVersion     = null,
                                            string comment             = null,
                                            string file = null,
                                            ChangeLocator sinceChange = null,
                                            int?maxResults            = null,
                                            int?startIndex            = null
                                            )
 {
     return(new ChangeLocator
     {
         Build = build,
         BuildType = buildType,
         Comment = comment,
         File = file,
         Id = id,
         InternalVersion = internalVersion,
         MaxResults = maxResults,
         Project = project,
         SinceChange = sinceChange,
         StartIndex = startIndex,
         Version = version,
         VcsRoot = vcsRoot,
         VcsRootInstance = vcsRootInstance,
         User = user,
         UserName = userName
     });
 }
Esempio n. 5
0
 public BuildQuery BuildQuery(BuildTypeLocator buildType = null,
     UserLocator user = null,
     string agentName = null,
     BuildStatus? status = null,
     bool? personal = null,
     bool? canceled = null,
     bool? running = null,
     bool? pinned = null,
     BuildLocator sinceBuild = null,
     DateTime? sinceDate = null,
     string[] tags = null
     )
 {
     return new BuildQuery(_caller)
     {
         Locator = BuildLocator.WithDimensions(
             buildType: buildType,
             user: user,
             agentName: agentName,
             status: status,
             personal: personal,
             canceled: canceled,
             running: running,
             pinned: pinned,
             sinceBuild: sinceBuild,
             sinceDate: sinceDate,
             tags: tags)
     };
 }