blob: d8ff67e9b7eb3ec4e2ba12d77f17b2e8265fec5c (
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
|
package bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.bitbucket;
import org.codehaus.jackson.annotate.JsonIgnoreProperties;
import org.codehaus.jackson.annotate.JsonProperty;
@JsonIgnoreProperties(ignoreUnknown = true)
public class BitbucketPullRequestResponseValueRepositoryRepository {
private String fullName;
private String name;
@JsonProperty("full_name")
public String getFullName() {
return fullName;
}
@JsonProperty("full_name")
public void setFullName(String fullName) {
this.fullName = fullName;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getOwnerName() {
if (this.fullName != null) {
return this.fullName.split("/")[0];
}
return null;
}
public String getRepositoryName() {
if (this.fullName != null) {
return this.fullName.split("/")[1];
}
return null;
}
}
|