-
Notifications
You must be signed in to change notification settings - Fork 252
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #664 from timveil-startree/jira-link
PR to add support for Jira Links API
- Loading branch information
Showing
2 changed files
with
110 additions
and
0 deletions.
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
105 changes: 105 additions & 0 deletions
105
src/main/java/org/zendesk/client/v2/model/JiraLink.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,105 @@ | ||
package org.zendesk.client.v2.model; | ||
|
||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import java.io.Serializable; | ||
import java.util.Date; | ||
|
||
@JsonIgnoreProperties(ignoreUnknown = true) | ||
public class JiraLink implements SearchResultEntity, Serializable { | ||
|
||
private static final long serialVersionUID = 1L; | ||
|
||
private Long id; | ||
private Date createdAt; | ||
private Date updatedAt; | ||
private String issueId; | ||
private String issueKey; | ||
private Long ticketId; | ||
private String url; | ||
|
||
public Long getId() { | ||
return id; | ||
} | ||
|
||
public void setId(Long id) { | ||
this.id = id; | ||
} | ||
|
||
@JsonProperty("created_at") | ||
public Date getCreatedAt() { | ||
return createdAt; | ||
} | ||
|
||
public void setCreatedAt(Date createdAt) { | ||
this.createdAt = createdAt; | ||
} | ||
|
||
@JsonProperty("updated_at") | ||
public Date getUpdatedAt() { | ||
return updatedAt; | ||
} | ||
|
||
public void setUpdatedAt(Date updatedAt) { | ||
this.updatedAt = updatedAt; | ||
} | ||
|
||
@JsonProperty("issue_id") | ||
public String getIssueId() { | ||
return issueId; | ||
} | ||
|
||
public void setIssueId(String issueId) { | ||
this.issueId = issueId; | ||
} | ||
|
||
@JsonProperty("issue_key") | ||
public String getIssueKey() { | ||
return issueKey; | ||
} | ||
|
||
public void setIssueKey(String issueKey) { | ||
this.issueKey = issueKey; | ||
} | ||
|
||
@JsonProperty("ticket_id") | ||
public Long getTicketId() { | ||
return ticketId; | ||
} | ||
|
||
public void setTicketId(Long ticketId) { | ||
this.ticketId = ticketId; | ||
} | ||
|
||
@JsonProperty("url") | ||
public String getUrl() { | ||
return url; | ||
} | ||
|
||
public void setUrl(String url) { | ||
this.url = url; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return "JiraLink{" | ||
+ "id=" | ||
+ id | ||
+ ", createdAt=" | ||
+ createdAt | ||
+ ", updatedAt=" | ||
+ updatedAt | ||
+ ", issueId='" | ||
+ issueId | ||
+ '\'' | ||
+ ", issueKey='" | ||
+ issueKey | ||
+ '\'' | ||
+ ", ticketId=" | ||
+ ticketId | ||
+ ", url='" | ||
+ url | ||
+ '\'' | ||
+ '}'; | ||
} | ||
} |