-
Notifications
You must be signed in to change notification settings - Fork 462
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
374 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package org.gitlab4j.api.models; | ||
|
||
import org.gitlab4j.api.utils.JacksonJson; | ||
|
||
public class EpicInLink extends AbstractEpic<EpicInLink> { | ||
|
||
public String toString() { | ||
return (JacksonJson.toJsonString(this)); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
package org.gitlab4j.api.models; | ||
|
||
import java.util.Date; | ||
|
||
import org.gitlab4j.api.utils.JacksonJson; | ||
|
||
public class RelatedEpic extends AbstractEpic<RelatedEpic> { | ||
|
||
private Boolean startDateIsFixed; | ||
private Boolean dueDateIsFixed; | ||
private Date dueDateFromInheritedSource; | ||
private Long relatedEpicLinkId; | ||
private LinkType linkType; | ||
private Date linkCreatedAt; | ||
private Date linkUpdatedAt; | ||
|
||
public Boolean getStartDateIsFixed() { | ||
return startDateIsFixed; | ||
} | ||
|
||
public void setStartDateIsFixed(Boolean startDateIsFixed) { | ||
this.startDateIsFixed = startDateIsFixed; | ||
} | ||
|
||
public Boolean getDueDateIsFixed() { | ||
return dueDateIsFixed; | ||
} | ||
|
||
public void setDueDateIsFixed(Boolean dueDateIsFixed) { | ||
this.dueDateIsFixed = dueDateIsFixed; | ||
} | ||
|
||
public Date getDueDateFromInheritedSource() { | ||
return dueDateFromInheritedSource; | ||
} | ||
|
||
public void setDueDateFromInheritedSource(Date dueDateFromInheritedSource) { | ||
this.dueDateFromInheritedSource = dueDateFromInheritedSource; | ||
} | ||
|
||
public Long getRelatedEpicLinkId() { | ||
return relatedEpicLinkId; | ||
} | ||
|
||
public void setRelatedEpicLinkId(Long relatedEpicLinkId) { | ||
this.relatedEpicLinkId = relatedEpicLinkId; | ||
} | ||
|
||
public LinkType getLinkType() { | ||
return linkType; | ||
} | ||
|
||
public void setLinkType(LinkType linkType) { | ||
this.linkType = linkType; | ||
} | ||
|
||
public Date getLinkCreatedAt() { | ||
return linkCreatedAt; | ||
} | ||
|
||
public void setLinkCreatedAt(Date linkCreatedAt) { | ||
this.linkCreatedAt = linkCreatedAt; | ||
} | ||
|
||
public Date getLinkUpdatedAt() { | ||
return linkUpdatedAt; | ||
} | ||
|
||
public void setLinkUpdatedAt(Date linkUpdatedAt) { | ||
this.linkUpdatedAt = linkUpdatedAt; | ||
} | ||
|
||
public String toString() { | ||
return (JacksonJson.toJsonString(this)); | ||
} | ||
} |
67 changes: 67 additions & 0 deletions
67
src/main/java/org/gitlab4j/api/models/RelatedEpicLink.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
package org.gitlab4j.api.models; | ||
|
||
import java.util.Date; | ||
|
||
import org.gitlab4j.api.utils.JacksonJson; | ||
|
||
public class RelatedEpicLink { | ||
|
||
private Long id; | ||
private EpicInLink sourceEpic; | ||
private EpicInLink targetEpic; | ||
private LinkType linkType; | ||
private Date createdAt; | ||
private Date updatedAt; | ||
|
||
public Long getId() { | ||
return id; | ||
} | ||
|
||
public void setId(Long id) { | ||
this.id = id; | ||
} | ||
|
||
public EpicInLink getSourceEpic() { | ||
return sourceEpic; | ||
} | ||
|
||
public void setSourceEpic(EpicInLink sourceEpic) { | ||
this.sourceEpic = sourceEpic; | ||
} | ||
|
||
public EpicInLink getTargetEpic() { | ||
return targetEpic; | ||
} | ||
|
||
public void setTargetEpic(EpicInLink targetEpic) { | ||
this.targetEpic = targetEpic; | ||
} | ||
|
||
public LinkType getLinkType() { | ||
return linkType; | ||
} | ||
|
||
public void setLinkType(LinkType linkType) { | ||
this.linkType = linkType; | ||
} | ||
|
||
public Date getCreatedAt() { | ||
return createdAt; | ||
} | ||
|
||
public void setCreatedAt(Date createdAt) { | ||
this.createdAt = createdAt; | ||
} | ||
|
||
public Date getUpdatedAt() { | ||
return updatedAt; | ||
} | ||
|
||
public void setUpdatedAt(Date updatedAt) { | ||
this.updatedAt = updatedAt; | ||
} | ||
|
||
public String toString() { | ||
return (JacksonJson.toJsonString(this)); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
72 changes: 72 additions & 0 deletions
72
src/test/resources/org/gitlab4j/api/related-epic-link.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
{ | ||
"id": 1, | ||
"created_at": "2022-01-31T15:10:44.988Z", | ||
"updated_at": "2022-01-31T15:10:44.988Z", | ||
"link_type": "relates_to", | ||
"source_epic": { | ||
"id": 21, | ||
"iid": 1, | ||
"color": "#1068bf", | ||
"group_id": 26, | ||
"title": "Aspernatur recusandae distinctio omnis et qui est iste.", | ||
"description": "some description", | ||
"author": { | ||
"id": 15, | ||
"username": "trina", | ||
"name": "Theresia Robel", | ||
"state": "active", | ||
"avatar_url": "https://www.gravatar.com/avatar/085e28df717e16484cbf6ceca75e9a93?s=80&d=identicon", | ||
"web_url": "http://gitlab.example.com/trina" | ||
}, | ||
"state": "opened", | ||
"web_url": "http://gitlab.example.com/groups/flightjs/-/epics/1", | ||
"references": { | ||
"short": "&1", | ||
"relative": "&1", | ||
"full": "flightjs&1" | ||
}, | ||
"created_at": "2022-01-31T15:10:44.988Z", | ||
"updated_at": "2022-03-16T09:32:35.712Z", | ||
"labels": [], | ||
"upvotes": 0, | ||
"downvotes": 0, | ||
"_links": { | ||
"self": "http://gitlab.example.com/api/v4/groups/26/epics/1", | ||
"epic_issues": "http://gitlab.example.com/api/v4/groups/26/epics/1/issues", | ||
"group": "http://gitlab.example.com/api/v4/groups/26" | ||
} | ||
}, | ||
"target_epic": { | ||
"id": 25, | ||
"iid": 5, | ||
"color": "#1068bf", | ||
"group_id": 26, | ||
"title": "Aut assumenda id nihil distinctio fugiat vel numquam est.", | ||
"description": "some description", | ||
"author": { | ||
"id": 3, | ||
"username": "valerie", | ||
"name": "Erika Wolf", | ||
"state": "active", | ||
"avatar_url": "https://www.gravatar.com/avatar/9ef7666abb101418a4716a8ed4dded80?s=80&d=identicon", | ||
"web_url": "http://gitlab.example.com/valerie" | ||
}, | ||
"state": "opened", | ||
"web_url": "http://gitlab.example.com/groups/flightjs/-/epics/5", | ||
"references": { | ||
"short": "&5", | ||
"relative": "&5", | ||
"full": "flightjs&5" | ||
}, | ||
"created_at": "2022-01-31T15:10:45.080Z", | ||
"updated_at": "2022-03-16T09:32:35.842Z", | ||
"labels": [], | ||
"upvotes": 0, | ||
"downvotes": 0, | ||
"_links": { | ||
"self": "http://gitlab.example.com/api/v4/groups/26/epics/5", | ||
"epic_issues": "http://gitlab.example.com/api/v4/groups/26/epics/5/issues", | ||
"group": "http://gitlab.example.com/api/v4/groups/26" | ||
} | ||
} | ||
} |
Oops, something went wrong.