コード例 #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
     });
 }
コード例 #2
0
        public IList<Investigation> InvestinationsByUser(UserLocator userLocator)
        {
            var investigationWrapper = _caller.GetFormat<InvestigationWrapper>("/app/rest/investigations?locator=assignee:({0})",
                userLocator);

            return investigationWrapper.Investigation ?? new List<Investigation>();
        }
コード例 #3
0
ファイル: BuildLocator.cs プロジェクト: byran/TeamCitySharp
 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
                };
 }
コード例 #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
     });
 }
コード例 #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)
     };
 }