1
0
Fork 0

Merge pull request #5 from chaplinkyle/bug-fix-2

Fix display name on user and fix issue link outward issue.
master
Kyle Chaplin 2013-09-19 18:05:39 -07:00
commit 8f9628cab5
2 changed files with 6 additions and 6 deletions

View File

@ -30,7 +30,7 @@ import net.sf.json.JSONObject;
public final class IssueLink extends Resource {
private LinkType type = null;
private Issue inwardIssue = null;
private Issue outwardIssue = null;
/**
* Creates a issue link from a JSON payload.
@ -51,7 +51,7 @@ public final class IssueLink extends Resource {
self = Field.getString(map.get("self"));
id = Field.getString(map.get("id"));
type = Field.getResource(LinkType.class, map.get("type"), restclient);
inwardIssue = Field.getResource(Issue.class, map.get("inwardIssue"), restclient);
outwardIssue = Field.getResource(Issue.class, map.get("outwardIssue"), restclient);
}
/**
@ -97,15 +97,15 @@ public final class IssueLink extends Resource {
@Override
public String toString() {
return String.format("%s %s", getType().getInward(), getInwardIssue());
return String.format("%s %s", getType().getInward(), getOutwardIssue());
}
public LinkType getType() {
return type;
}
public Issue getInwardIssue() {
return inwardIssue;
public Issue getOutwardIssue() {
return outwardIssue;
}
}

View File

@ -55,7 +55,7 @@ public final class User extends Resource {
id = Field.getString(map.get("id"));
active = Field.getBoolean(map.get("active"));
avatarUrls = Field.getMap(String.class, String.class, map.get("avatarUrls"));
displayName = Field.getString(map.get("displayname"));
displayName = Field.getString(map.get("displayName"));
email = Field.getString(map.get("email"));
name = Field.getString(map.get("name"));
}