blob: 2e1e18eebad9027dfb6f7a649c59ad99edcca094 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
|
package bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.bitbucket;
import org.codehaus.jackson.annotate.JsonIgnoreProperties;
import org.codehaus.jackson.annotate.JsonProperty;
import java.util.Comparator;
/**
* Created by nishio
*/
@JsonIgnoreProperties(ignoreUnknown = true)
public class BitbucketPullRequestComment implements Comparable<BitbucketPullRequestComment> {
private Boolean isEntityAuthor;
private Integer pullRequestId;
private String contentRendered;
private Boolean deleted;
private String UtcLastUpdated;
private Integer commentId;
private String content;
private String UtcCreatedOn;
private Boolean isSpam;
@JsonProperty("is_entity_author")
public Boolean getIsEntityAuthor() {
return isEntityAuthor;
}
@JsonProperty("is_entity_author")
public void setIsEntityAuthor(Boolean isEntityAuthor) {
this.isEntityAuthor = isEntityAuthor;
}
@JsonProperty("pull_request_id")
public Integer getPullRequestId() {
return pullRequestId;
}
@JsonProperty("pull_request_id")
public void setPullRequestId(Integer pullRequestId) {
this.pullRequestId = pullRequestId;
}
@JsonProperty("content_rendered")
public String getContentRendered() {
return contentRendered;
}
@JsonProperty("content_rendered")
public void setContentRendered(String contentRendered) {
this.contentRendered = contentRendered;
}
public Boolean getDeleted() {
return deleted;
}
public void setDeleted(Boolean deleted) {
this.deleted = deleted;
}
@JsonProperty("utc_last_updated")
public String getUtcLastUpdated() {
return UtcLastUpdated;
}
@JsonProperty("utc_last_updated")
public void setUtcLastUpdated(String utcLastUpdated) {
UtcLastUpdated = utcLastUpdated;
}
@JsonProperty("comment_id")
public Integer getCommentId() {
return commentId;
}
@JsonProperty("comment_id")
public void setCommentId(Integer commentId) {
this.commentId = commentId;
}
public String getContent() {
return content;
}
public void setContent(String content) {
this.content = content;
}
@JsonProperty("utc_created_on")
public String getUtcCreatedOn() {
return UtcCreatedOn;
}
@JsonProperty("utc_created_on")
public void setUtcCreatedOn(String utcCreatedOn) {
UtcCreatedOn = utcCreatedOn;
}
@JsonProperty("is_spam")
public Boolean getIsSpam() {
return isSpam;
}
@JsonProperty("is_spam")
public void setIsSpam(Boolean isSpam) {
this.isSpam = isSpam;
}
public int compareTo(BitbucketPullRequestComment target) {
if (this.getCommentId() > target.getCommentId()) {
return 1;
} else if (this.getCommentId().equals(target.getCommentId())) {
return 0;
} else {
return -1;
}
}
}
|