-
Notifications
You must be signed in to change notification settings - Fork 486
gitlab4j#1023 Add Field Iteration to Issue. #1027
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
jmini marked this conversation as resolved.
Show resolved
Hide resolved
|
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,116 @@ | ||
| package org.gitlab4j.api.models; | ||
|
|
||
| import java.util.Date; | ||
|
|
||
| import org.gitlab4j.api.utils.JacksonJsonEnumHelper; | ||
|
|
||
| import com.fasterxml.jackson.annotation.JsonCreator; | ||
| import com.fasterxml.jackson.annotation.JsonValue; | ||
|
|
||
| public class Iteration { | ||
| public enum IterationState { | ||
| Opened, Upcomming, Current, Closed; | ||
|
|
||
| private static JacksonJsonEnumHelper<IterationState> enumHelper = new JacksonJsonEnumHelper<>(IterationState.class, true, true); | ||
|
|
||
| @JsonCreator | ||
| public static IterationState forValue(String value) { | ||
| return enumHelper.forValue(value); | ||
| } | ||
|
|
||
| @JsonValue | ||
| public String toValue() { | ||
| return (enumHelper.toString(this)); | ||
| } | ||
|
|
||
| @Override | ||
| public String toString() { | ||
| return (enumHelper.toString(this)); | ||
| } | ||
| } | ||
|
|
||
| private Long id; | ||
| private Long iid; | ||
| private Long sequence; | ||
| private Long groupId; | ||
| private String title; | ||
| private String descripion; | ||
|
||
| private IterationState state; | ||
|
||
| private Date createdAt; | ||
| private Date updatedAt; | ||
| private Date startDate; | ||
| private Date dueDate; | ||
| private String webUrl; | ||
| public Long getId() { | ||
| return id; | ||
| } | ||
| public void setId(Long id) { | ||
| this.id = id; | ||
| } | ||
| public Long getIid() { | ||
| return iid; | ||
| } | ||
| public void setIid(Long iid) { | ||
| this.iid = iid; | ||
| } | ||
| public Long getSequence() { | ||
| return sequence; | ||
| } | ||
| public void setSequence(Long sequence) { | ||
| this.sequence = sequence; | ||
| } | ||
| public Long getGroupId() { | ||
| return groupId; | ||
| } | ||
| public void setGroupId(Long groupId) { | ||
| this.groupId = groupId; | ||
| } | ||
| public String getTitle() { | ||
| return title; | ||
| } | ||
| public void setTitle(String title) { | ||
| this.title = title; | ||
| } | ||
| public String getDescripion() { | ||
| return descripion; | ||
| } | ||
| public void setDescripion(String descripion) { | ||
| this.descripion = descripion; | ||
| } | ||
| public IterationState getState() { | ||
| return state; | ||
| } | ||
| public void setState(IterationState state) { | ||
| this.state = state; | ||
| } | ||
| 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 Date getStartDate() { | ||
| return startDate; | ||
| } | ||
| public void setStartDate(Date startDate) { | ||
| this.startDate = startDate; | ||
| } | ||
| public Date getDueDate() { | ||
| return dueDate; | ||
| } | ||
| public void setDueDate(Date dueDate) { | ||
| this.dueDate = dueDate; | ||
| } | ||
| public String getWebUrl() { | ||
| return webUrl; | ||
| } | ||
| public void setWebUrl(String webUrl) { | ||
| this.webUrl = webUrl; | ||
| } | ||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.