コード例 #1
0
 public PRPrivateProject(ProjectKey key, string name, bool accessAllowed, List <TDMemberProfile> admins)
 {
     Key             = key;
     Name            = name;
     IsAccessAllowed = accessAllowed;
     Admins          = admins;
 }
コード例 #2
0
 public PRProject(string id, ProjectKey key, string name, bool @private, bool archived, List <TDMemberProfile> adminProfiles, List <TDTeam> adminTeams, List <BoardRecord> boards, List <TDMemberProfile> collaboratorsProfiles, List <TDTeam> collaboratorsTeams, List <TDMemberProfile> memberProfiles, List <TDTeam> memberTeams, List <ProjectPackageRepository> packages, List <PRRepositoryInfo> repos, List <string> tags, List <ProjectIssueTrackerItem> trackers, ProjectTeamType type, string?description = null, string?icon = null, DateTime?latestRepositoryActivity = null, List <ProjectTeamMemberRecord>?members = null, TDTeam?team = null, List <TDTeam>?teams = null)
 {
     Id          = id;
     Key         = key;
     Name        = name;
     IsPrivate   = @private;
     Description = description;
     Icon        = icon;
     LatestRepositoryActivity = latestRepositoryActivity;
     IsArchived            = archived;
     AdminProfiles         = adminProfiles;
     AdminTeams            = adminTeams;
     Boards                = boards;
     CollaboratorsProfiles = collaboratorsProfiles;
     CollaboratorsTeams    = collaboratorsTeams;
     MemberProfiles        = memberProfiles;
     MemberTeams           = memberTeams;
     Members               = members;
     Packages              = packages;
     Repos    = repos;
     Tags     = tags;
     Team     = team;
     Teams    = teams;
     Trackers = trackers;
     Type     = type;
 }
コード例 #3
0
 public ProjectsPostRequest(ProjectKey key, string name, bool @private = false, List <string>?tags = null, string?description = null)
 {
     Key         = key;
     Name        = name;
     Description = description;
     IsPrivate   = @private;
     Tags        = (tags ?? new List <string>());
 }
コード例 #4
0
 public CodeDiscussionAnchor(ProjectKey project, string repository, string revision, string?filename = null, int?line = null, int?oldLine = null, InterpolatedLineState?interpolatedLineState = null)
 {
     Project               = project;
     Repository            = repository;
     Revision              = revision;
     Filename              = filename;
     Line                  = line;
     OldLine               = oldLine;
     InterpolatedLineState = interpolatedLineState;
 }
コード例 #5
0
 public CodeSnippetAnchor(ProjectKey projectKey, string repository, string revision, string filename, int?lineIndex = null, int?lineStart = null, int?lineEnd = null)
 {
     ProjectKey = projectKey;
     Repository = repository;
     Revision   = revision;
     Filename   = filename;
     LineIndex  = lineIndex;
     LineStart  = lineStart;
     LineEnd    = lineEnd;
 }
コード例 #6
0
 public CommitSetReviewRecord(ProjectKey project, string projectId, int number, string title, CodeReviewState state, long createdAt, bool?canBeReopened = null, TDMemberProfile?createdBy = null, bool?turnBased = null, M2ChannelRecord?feedChannel = null)
 {
     Project       = project;
     ProjectId     = projectId;
     Number        = number;
     Title         = title;
     State         = state;
     CanBeReopened = canBeReopened;
     CreatedAt     = createdAt;
     CreatedBy     = createdBy;
     IsTurnBased   = turnBased;
     FeedChannel   = feedChannel;
 }
 public M2TaskExecutionSucceedItemContent(string taskExecutionId, string taskExecutionName, string repoName, string branchName, string commit, string shortCommitMessage, ProjectKey project, long finishDateTime, string triggerInfo, string details)
 {
     TaskExecutionId    = taskExecutionId;
     TaskExecutionName  = taskExecutionName;
     RepoName           = repoName;
     BranchName         = branchName;
     Commit             = commit;
     ShortCommitMessage = shortCommitMessage;
     Project            = project;
     FinishDateTime     = finishDateTime;
     TriggerInfo        = triggerInfo;
     Details            = details;
 }
 public MergeRequestRecord(ProjectKey project, string projectId, int number, string title, CodeReviewState state, long createdAt, List <MergeRequestBranchPair> branchPairs, bool?canBeReopened = null, TDMemberProfile?createdBy = null, bool?turnBased = null, M2ChannelRecord?feedChannel = null)
 {
     Project       = project;
     ProjectId     = projectId;
     Number        = number;
     Title         = title;
     State         = state;
     CanBeReopened = canBeReopened;
     CreatedAt     = createdAt;
     CreatedBy     = createdBy;
     IsTurnBased   = turnBased;
     FeedChannel   = feedChannel;
     BranchPairs   = branchPairs;
 }
コード例 #9
0
 public static MergeRequestRecord MergeRequestRecord(ProjectKey project, string projectId, int number, string title, CodeReviewState state, long createdAt, List <MergeRequestBranchPair> branchPairs, bool?canBeReopened = null, TDMemberProfile?createdBy = null, bool?turnBased = null, M2ChannelRecord?feedChannel = null)
 => new MergeRequestRecord(project: project, projectId: projectId, number: number, title: title, state: state, createdAt: createdAt, branchPairs: branchPairs, canBeReopened: canBeReopened, createdBy: createdBy, turnBased: turnBased, feedChannel: feedChannel);
コード例 #10
0
 public static CommitSetReviewRecord CommitSetReviewRecord(ProjectKey project, string projectId, int number, string title, CodeReviewState state, long createdAt, bool?canBeReopened = null, TDMemberProfile?createdBy = null, bool?turnBased = null, M2ChannelRecord?feedChannel = null)
 => new CommitSetReviewRecord(project: project, projectId: projectId, number: number, title: title, state: state, createdAt: createdAt, canBeReopened: canBeReopened, createdBy: createdBy, turnBased: turnBased, feedChannel: feedChannel);