8000 Added Page.getMIssion() by wltjr · Pull Request #108 · roundrop/facebook4j · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Added Page.getMIssion() #108

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

Merged
merged 2 commits into from
Mar 30, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions facebook4j-core/src/main/java/facebook4j/Page.java
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,5 @@ public interface Page {
Date getCreatedTime();
String getAbout();
String getUsername();
String getMission();
}
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
private Integer fanCount;
private String about;
private String username;
private String mission;

/*package*/PageJSONImpl(HttpResponse res, Configuration conf) throws FacebookException {
super(res);
Expand Down Expand Up @@ -107,6 +108,7 @@ private void init(JSONObject json) throws FacebookException {
fanCount = getInt("fan_count", json);
about = getRawString("about", json);
username = getRawString("username", json);
mission = getRawString("mission", json);

} catch (JSONException jsone) {
throw new FacebookException(jsone.getMessage(), jsone);
Expand Down Expand Up @@ -205,6 +207,10 @@ public String getUsername() {
return username;
}

public String getMission() {
return mission;
}

/*package*/
static ResponseList<Page> createPageList(HttpResponse res, Configuration conf) throws FacebookException {
try {
Expand Down Expand Up @@ -256,7 +262,8 @@ public String toString() {
+ isCommunityPage + ", wereHereCount=" + wereHereCount
+ ", fanCount=" + fanCount
+ ", id=" + id + ", name=" + name + ", category=" + category
+ ", createdTime=" + createdTime + ", about=" + about + ", username=" + username + "]";
+ ", createdTime=" + createdTime + ", about=" + about
+ ", username=" + username + ", mission=" + mission + "]";
}

}
0