Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.facebook.ads.sdk.PagePost Maven / Gradle / Ivy
/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
* All rights reserved.
*
* This source code is licensed under the license found in the
* LICENSE file in the root directory of this source tree.
*/
package com.facebook.ads.sdk;
import java.io.File;
import java.lang.reflect.Modifier;
import java.lang.reflect.Type;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import com.google.common.base.Function;
import com.google.common.util.concurrent.Futures;
import com.google.common.util.concurrent.ListenableFuture;
import com.google.common.util.concurrent.MoreExecutors;
import com.google.common.util.concurrent.SettableFuture;
import com.google.gson.JsonObject;
import com.google.gson.JsonArray;
import com.google.gson.annotations.SerializedName;
import com.google.gson.reflect.TypeToken;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.google.gson.JsonElement;
import com.google.gson.JsonParser;
import com.facebook.ads.sdk.APIException.MalformedResponseException;
/**
* This class is auto-generated.
*
* For any issues or feature requests related to this class, please let us know
* on github and we'll fix in our codegen framework. We'll not be able to accept
* pull request for this class.
*
*/
public class PagePost extends APINode {
@SerializedName("actions")
private JsonArray mActions = null;
@SerializedName("admin_creator")
private Object mAdminCreator = null;
@SerializedName("allowed_advertising_objectives")
private List mAllowedAdvertisingObjectives = null;
@SerializedName("application")
private Application mApplication = null;
@SerializedName("backdated_time")
private String mBackdatedTime = null;
@SerializedName("call_to_action")
private Object mCallToAction = null;
@SerializedName("can_reply_privately")
private Boolean mCanReplyPrivately = null;
@SerializedName("child_attachments")
private JsonArray mChildAttachments = null;
@SerializedName("comments_mirroring_domain")
private String mCommentsMirroringDomain = null;
@SerializedName("coordinates")
private Object mCoordinates = null;
@SerializedName("created_time")
private String mCreatedTime = null;
@SerializedName("event")
private Event mEvent = null;
@SerializedName("expanded_height")
private Long mExpandedHeight = null;
@SerializedName("expanded_width")
private Long mExpandedWidth = null;
@SerializedName("feed_targeting")
private Object mFeedTargeting = null;
@SerializedName("from")
private Object mFrom = null;
@SerializedName("full_picture")
private String mFullPicture = null;
@SerializedName("height")
private Long mHeight = null;
@SerializedName("icon")
private String mIcon = null;
@SerializedName("id")
private String mId = null;
@SerializedName("instagram_eligibility")
private String mInstagramEligibility = null;
@SerializedName("is_app_share")
private Boolean mIsAppShare = null;
@SerializedName("is_eligible_for_promotion")
private Boolean mIsEligibleForPromotion = null;
@SerializedName("is_expired")
private Boolean mIsExpired = null;
@SerializedName("is_hidden")
private Boolean mIsHidden = null;
@SerializedName("is_inline_created")
private Boolean mIsInlineCreated = null;
@SerializedName("is_instagram_eligible")
private Boolean mIsInstagramEligible = null;
@SerializedName("is_popular")
private Boolean mIsPopular = null;
@SerializedName("is_published")
private Boolean mIsPublished = null;
@SerializedName("is_spherical")
private Boolean mIsSpherical = null;
@SerializedName("message")
private String mMessage = null;
@SerializedName("message_tags")
private JsonArray mMessageTags = null;
@SerializedName("multi_share_end_card")
private Boolean mMultiShareEndCard = null;
@SerializedName("multi_share_optimized")
private Boolean mMultiShareOptimized = null;
@SerializedName("parent_id")
private String mParentId = null;
@SerializedName("permalink_url")
private String mPermalinkUrl = null;
@SerializedName("picture")
private String mPicture = null;
@SerializedName("place")
private Place mPlace = null;
@SerializedName("privacy")
private Privacy mPrivacy = null;
@SerializedName("promotable_id")
private String mPromotableId = null;
@SerializedName("promotion_status")
private String mPromotionStatus = null;
@SerializedName("properties")
private JsonArray mProperties = null;
@SerializedName("scheduled_publish_time")
private Double mScheduledPublishTime = null;
@SerializedName("shares")
private Object mShares = null;
@SerializedName("status_type")
private String mStatusType = null;
@SerializedName("story")
private String mStory = null;
@SerializedName("story_tags")
private JsonArray mStoryTags = null;
@SerializedName("subscribed")
private Boolean mSubscribed = null;
@SerializedName("target")
private Profile mTarget = null;
@SerializedName("targeting")
private Object mTargeting = null;
@SerializedName("timeline_visibility")
private String mTimelineVisibility = null;
@SerializedName("updated_time")
private String mUpdatedTime = null;
@SerializedName("via")
private Object mVia = null;
@SerializedName("video_buying_eligibility")
private List mVideoBuyingEligibility = null;
@SerializedName("width")
private Long mWidth = null;
protected static Gson gson = null;
PagePost() {
}
public PagePost(Long id, APIContext context) {
this(id.toString(), context);
}
public PagePost(String id, APIContext context) {
this.mId = id;
this.context = context;
}
public PagePost fetch() throws APIException{
PagePost newInstance = fetchById(this.getPrefixedId().toString(), this.context);
this.copyFrom(newInstance);
return this;
}
public static PagePost fetchById(Long id, APIContext context) throws APIException {
return fetchById(id.toString(), context);
}
public static ListenableFuture fetchByIdAsync(Long id, APIContext context) throws APIException {
return fetchByIdAsync(id.toString(), context);
}
public static PagePost fetchById(String id, APIContext context) throws APIException {
return
new APIRequestGet(id, context)
.requestAllFields()
.execute();
}
public static ListenableFuture fetchByIdAsync(String id, APIContext context) throws APIException {
return
new APIRequestGet(id, context)
.requestAllFields()
.executeAsync();
}
public static APINodeList fetchByIds(List ids, List fields, APIContext context) throws APIException {
return (APINodeList)(
new APIRequest(context, "", "/", "GET", PagePost.getParser())
.setParam("ids", APIRequest.joinStringList(ids))
.requestFields(fields)
.execute()
);
}
public static ListenableFuture> fetchByIdsAsync(List ids, List fields, APIContext context) throws APIException {
return
new APIRequest(context, "", "/", "GET", PagePost.getParser())
.setParam("ids", APIRequest.joinStringList(ids))
.requestFields(fields)
.executeAsyncBase();
}
private String getPrefixedId() {
return getId();
}
public String getId() {
return getFieldId().toString();
}
public static PagePost loadJSON(String json, APIContext context, String header) {
PagePost pagePost = getGson().fromJson(json, PagePost.class);
if (context.isDebug()) {
JsonParser parser = new JsonParser();
JsonElement o1 = parser.parse(json);
JsonElement o2 = parser.parse(pagePost.toString());
if (o1.getAsJsonObject().get("__fb_trace_id__") != null) {
o2.getAsJsonObject().add("__fb_trace_id__", o1.getAsJsonObject().get("__fb_trace_id__"));
}
if (!o1.equals(o2)) {
context.log("[Warning] When parsing response, object is not consistent with JSON:");
context.log("[JSON]" + o1);
context.log("[Object]" + o2);
}
}
pagePost.context = context;
pagePost.rawValue = json;
pagePost.header = header;
return pagePost;
}
public static APINodeList parseResponse(String json, APIContext context, APIRequest request, String header) throws MalformedResponseException {
APINodeList pagePosts = new APINodeList(request, json, header);
JsonArray arr;
JsonObject obj;
JsonParser parser = new JsonParser();
Exception exception = null;
try{
JsonElement result = parser.parse(json);
if (result.isJsonArray()) {
// First, check if it's a pure JSON Array
arr = result.getAsJsonArray();
for (int i = 0; i < arr.size(); i++) {
pagePosts.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header));
};
return pagePosts;
} else if (result.isJsonObject()) {
obj = result.getAsJsonObject();
if (obj.has("data")) {
if (obj.has("paging")) {
JsonObject paging = obj.get("paging").getAsJsonObject();
if (paging.has("cursors")) {
JsonObject cursors = paging.get("cursors").getAsJsonObject();
String before = cursors.has("before") ? cursors.get("before").getAsString() : null;
String after = cursors.has("after") ? cursors.get("after").getAsString() : null;
pagePosts.setCursors(before, after);
}
String previous = paging.has("previous") ? paging.get("previous").getAsString() : null;
String next = paging.has("next") ? paging.get("next").getAsString() : null;
pagePosts.setPaging(previous, next);
if (context.hasAppSecret()) {
pagePosts.setAppSecret(context.getAppSecretProof());
}
}
if (obj.get("data").isJsonArray()) {
// Second, check if it's a JSON array with "data"
arr = obj.get("data").getAsJsonArray();
for (int i = 0; i < arr.size(); i++) {
pagePosts.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header));
};
} else if (obj.get("data").isJsonObject()) {
// Third, check if it's a JSON object with "data"
obj = obj.get("data").getAsJsonObject();
boolean isRedownload = false;
for (String s : new String[]{"campaigns", "adsets", "ads"}) {
if (obj.has(s)) {
isRedownload = true;
obj = obj.getAsJsonObject(s);
for (Map.Entry entry : obj.entrySet()) {
pagePosts.add(loadJSON(entry.getValue().toString(), context, header));
}
break;
}
}
if (!isRedownload) {
pagePosts.add(loadJSON(obj.toString(), context, header));
}
}
return pagePosts;
} else if (obj.has("images")) {
// Fourth, check if it's a map of image objects
obj = obj.get("images").getAsJsonObject();
for (Map.Entry entry : obj.entrySet()) {
pagePosts.add(loadJSON(entry.getValue().toString(), context, header));
}
return pagePosts;
} else {
// Fifth, check if it's an array of objects indexed by id
boolean isIdIndexedArray = true;
for (Map.Entry entry : obj.entrySet()) {
String key = (String) entry.getKey();
if (key.equals("__fb_trace_id__")) {
continue;
}
JsonElement value = (JsonElement) entry.getValue();
if (
value != null &&
value.isJsonObject() &&
value.getAsJsonObject().has("id") &&
value.getAsJsonObject().get("id") != null &&
value.getAsJsonObject().get("id").getAsString().equals(key)
) {
pagePosts.add(loadJSON(value.toString(), context, header));
} else {
isIdIndexedArray = false;
break;
}
}
if (isIdIndexedArray) {
return pagePosts;
}
// Sixth, check if it's pure JsonObject
pagePosts.clear();
pagePosts.add(loadJSON(json, context, header));
return pagePosts;
}
}
} catch (Exception e) {
exception = e;
}
throw new MalformedResponseException(
"Invalid response string: " + json,
exception
);
}
@Override
public APIContext getContext() {
return context;
}
@Override
public void setContext(APIContext context) {
this.context = context;
}
@Override
public String toString() {
return getGson().toJson(this);
}
public APIRequestGetAttachments getAttachments() {
return new APIRequestGetAttachments(this.getPrefixedId().toString(), context);
}
public APIRequestGetComments getComments() {
return new APIRequestGetComments(this.getPrefixedId().toString(), context);
}
public APIRequestCreateComment createComment() {
return new APIRequestCreateComment(this.getPrefixedId().toString(), context);
}
public APIRequestGetDynamicPosts getDynamicPosts() {
return new APIRequestGetDynamicPosts(this.getPrefixedId().toString(), context);
}
public APIRequestGetInsights getInsights() {
return new APIRequestGetInsights(this.getPrefixedId().toString(), context);
}
public APIRequestDeleteLikes deleteLikes() {
return new APIRequestDeleteLikes(this.getPrefixedId().toString(), context);
}
public APIRequestGetLikes getLikes() {
return new APIRequestGetLikes(this.getPrefixedId().toString(), context);
}
public APIRequestCreateLike createLike() {
return new APIRequestCreateLike(this.getPrefixedId().toString(), context);
}
public APIRequestGetReactions getReactions() {
return new APIRequestGetReactions(this.getPrefixedId().toString(), context);
}
public APIRequestGetSharedPosts getSharedPosts() {
return new APIRequestGetSharedPosts(this.getPrefixedId().toString(), context);
}
public APIRequestGetSponsorTags getSponsorTags() {
return new APIRequestGetSponsorTags(this.getPrefixedId().toString(), context);
}
public APIRequestGetTo getTo() {
return new APIRequestGetTo(this.getPrefixedId().toString(), context);
}
public APIRequestDelete delete() {
return new APIRequestDelete(this.getPrefixedId().toString(), context);
}
public APIRequestGet get() {
return new APIRequestGet(this.getPrefixedId().toString(), context);
}
public APIRequestUpdate update() {
return new APIRequestUpdate(this.getPrefixedId().toString(), context);
}
public JsonArray getFieldActions() {
return mActions;
}
public Object getFieldAdminCreator() {
return mAdminCreator;
}
public List getFieldAllowedAdvertisingObjectives() {
return mAllowedAdvertisingObjectives;
}
public Application getFieldApplication() {
if (mApplication != null) {
mApplication.context = getContext();
}
return mApplication;
}
public String getFieldBackdatedTime() {
return mBackdatedTime;
}
public Object getFieldCallToAction() {
return mCallToAction;
}
public Boolean getFieldCanReplyPrivately() {
return mCanReplyPrivately;
}
public JsonArray getFieldChildAttachments() {
return mChildAttachments;
}
public String getFieldCommentsMirroringDomain() {
return mCommentsMirroringDomain;
}
public Object getFieldCoordinates() {
return mCoordinates;
}
public String getFieldCreatedTime() {
return mCreatedTime;
}
public Event getFieldEvent() {
if (mEvent != null) {
mEvent.context = getContext();
}
return mEvent;
}
public Long getFieldExpandedHeight() {
return mExpandedHeight;
}
public Long getFieldExpandedWidth() {
return mExpandedWidth;
}
public Object getFieldFeedTargeting() {
return mFeedTargeting;
}
public Object getFieldFrom() {
return mFrom;
}
public String getFieldFullPicture() {
return mFullPicture;
}
public Long getFieldHeight() {
return mHeight;
}
public String getFieldIcon() {
return mIcon;
}
public String getFieldId() {
return mId;
}
public String getFieldInstagramEligibility() {
return mInstagramEligibility;
}
public Boolean getFieldIsAppShare() {
return mIsAppShare;
}
public Boolean getFieldIsEligibleForPromotion() {
return mIsEligibleForPromotion;
}
public Boolean getFieldIsExpired() {
return mIsExpired;
}
public Boolean getFieldIsHidden() {
return mIsHidden;
}
public Boolean getFieldIsInlineCreated() {
return mIsInlineCreated;
}
public Boolean getFieldIsInstagramEligible() {
return mIsInstagramEligible;
}
public Boolean getFieldIsPopular() {
return mIsPopular;
}
public Boolean getFieldIsPublished() {
return mIsPublished;
}
public Boolean getFieldIsSpherical() {
return mIsSpherical;
}
public String getFieldMessage() {
return mMessage;
}
public JsonArray getFieldMessageTags() {
return mMessageTags;
}
public Boolean getFieldMultiShareEndCard() {
return mMultiShareEndCard;
}
public Boolean getFieldMultiShareOptimized() {
return mMultiShareOptimized;
}
public String getFieldParentId() {
return mParentId;
}
public String getFieldPermalinkUrl() {
return mPermalinkUrl;
}
public String getFieldPicture() {
return mPicture;
}
public Place getFieldPlace() {
if (mPlace != null) {
mPlace.context = getContext();
}
return mPlace;
}
public Privacy getFieldPrivacy() {
return mPrivacy;
}
public String getFieldPromotableId() {
return mPromotableId;
}
public String getFieldPromotionStatus() {
return mPromotionStatus;
}
public JsonArray getFieldProperties() {
return mProperties;
}
public Double getFieldScheduledPublishTime() {
return mScheduledPublishTime;
}
public Object getFieldShares() {
return mShares;
}
public String getFieldStatusType() {
return mStatusType;
}
public String getFieldStory() {
return mStory;
}
public JsonArray getFieldStoryTags() {
return mStoryTags;
}
public Boolean getFieldSubscribed() {
return mSubscribed;
}
public Profile getFieldTarget() {
if (mTarget != null) {
mTarget.context = getContext();
}
return mTarget;
}
public Object getFieldTargeting() {
return mTargeting;
}
public String getFieldTimelineVisibility() {
return mTimelineVisibility;
}
public String getFieldUpdatedTime() {
return mUpdatedTime;
}
public Object getFieldVia() {
return mVia;
}
public List getFieldVideoBuyingEligibility() {
return mVideoBuyingEligibility;
}
public Long getFieldWidth() {
return mWidth;
}
public static class APIRequestGetAttachments extends APIRequest {
APINodeList lastResponse = null;
@Override
public APINodeList getLastResponse() {
return lastResponse;
}
public static final String[] PARAMS = {
};
public static final String[] FIELDS = {
};
@Override
public APINodeList parseResponse(String response, String header) throws APIException {
return APINode.parseResponse(response, getContext(), this, header);
}
@Override
public APINodeList execute() throws APIException {
return execute(new HashMap());
}
@Override
public APINodeList execute(Map extraParams) throws APIException {
ResponseWrapper rw = executeInternal(extraParams);
lastResponse = parseResponse(rw.getBody(),rw.getHeader());
return lastResponse;
}
public ListenableFuture> executeAsync() throws APIException {
return executeAsync(new HashMap());
};
public ListenableFuture> executeAsync(Map extraParams) throws APIException {
return Futures.transform(
executeAsyncInternal(extraParams),
new Function>() {
public APINodeList apply(ResponseWrapper result) {
try {
return APIRequestGetAttachments.this.parseResponse(result.getBody(), result.getHeader());
} catch (Exception e) {
throw new RuntimeException(e);
}
}
},
MoreExecutors.directExecutor()
);
};
public APIRequestGetAttachments(String nodeId, APIContext context) {
super(context, nodeId, "/attachments", "GET", Arrays.asList(PARAMS));
}
@Override
public APIRequestGetAttachments setParam(String param, Object value) {
setParamInternal(param, value);
return this;
}
@Override
public APIRequestGetAttachments setParams(Map params) {
setParamsInternal(params);
return this;
}
public APIRequestGetAttachments requestAllFields () {
return this.requestAllFields(true);
}
public APIRequestGetAttachments requestAllFields (boolean value) {
for (String field : FIELDS) {
this.requestField(field, value);
}
return this;
}
@Override
public APIRequestGetAttachments requestFields (List fields) {
return this.requestFields(fields, true);
}
@Override
public APIRequestGetAttachments requestFields (List fields, boolean value) {
for (String field : fields) {
this.requestField(field, value);
}
return this;
}
@Override
public APIRequestGetAttachments requestField (String field) {
this.requestField(field, true);
return this;
}
@Override
public APIRequestGetAttachments requestField (String field, boolean value) {
this.requestFieldInternal(field, value);
return this;
}
}
public static class APIRequestGetComments extends APIRequest {
APINodeList lastResponse = null;
@Override
public APINodeList getLastResponse() {
return lastResponse;
}
public static final String[] PARAMS = {
"filter",
"live_filter",
"order",
"since",
};
public static final String[] FIELDS = {
"admin_creator",
"application",
"attachment",
"can_comment",
"can_hide",
"can_like",
"can_remove",
"can_reply_privately",
"comment_count",
"created_time",
"from",
"id",
"is_hidden",
"is_private",
"like_count",
"live_broadcast_timestamp",
"message",
"message_tags",
"object",
"parent",
"permalink_url",
"private_reply_conversation",
"user_likes",
};
@Override
public APINodeList parseResponse(String response, String header) throws APIException {
return Comment.parseResponse(response, getContext(), this, header);
}
@Override
public APINodeList execute() throws APIException {
return execute(new HashMap());
}
@Override
public APINodeList execute(Map extraParams) throws APIException {
ResponseWrapper rw = executeInternal(extraParams);
lastResponse = parseResponse(rw.getBody(),rw.getHeader());
return lastResponse;
}
public ListenableFuture> executeAsync() throws APIException {
return executeAsync(new HashMap());
};
public ListenableFuture> executeAsync(Map extraParams) throws APIException {
return Futures.transform(
executeAsyncInternal(extraParams),
new Function>() {
public APINodeList apply(ResponseWrapper result) {
try {
return APIRequestGetComments.this.parseResponse(result.getBody(), result.getHeader());
} catch (Exception e) {
throw new RuntimeException(e);
}
}
},
MoreExecutors.directExecutor()
);
};
public APIRequestGetComments(String nodeId, APIContext context) {
super(context, nodeId, "/comments", "GET", Arrays.asList(PARAMS));
}
@Override
public APIRequestGetComments setParam(String param, Object value) {
setParamInternal(param, value);
return this;
}
@Override
public APIRequestGetComments setParams(Map params) {
setParamsInternal(params);
return this;
}
public APIRequestGetComments setFilter (Comment.EnumFilter filter) {
this.setParam("filter", filter);
return this;
}
public APIRequestGetComments setFilter (String filter) {
this.setParam("filter", filter);
return this;
}
public APIRequestGetComments setLiveFilter (Comment.EnumLiveFilter liveFilter) {
this.setParam("live_filter", liveFilter);
return this;
}
public APIRequestGetComments setLiveFilter (String liveFilter) {
this.setParam("live_filter", liveFilter);
return this;
}
public APIRequestGetComments setOrder (Comment.EnumOrder order) {
this.setParam("order", order);
return this;
}
public APIRequestGetComments setOrder (String order) {
this.setParam("order", order);
return this;
}
public APIRequestGetComments setSince (String since) {
this.setParam("since", since);
return this;
}
public APIRequestGetComments requestAllFields () {
return this.requestAllFields(true);
}
public APIRequestGetComments requestAllFields (boolean value) {
for (String field : FIELDS) {
this.requestField(field, value);
}
return this;
}
@Override
public APIRequestGetComments requestFields (List fields) {
return this.requestFields(fields, true);
}
@Override
public APIRequestGetComments requestFields (List fields, boolean value) {
for (String field : fields) {
this.requestField(field, value);
}
return this;
}
@Override
public APIRequestGetComments requestField (String field) {
this.requestField(field, true);
return this;
}
@Override
public APIRequestGetComments requestField (String field, boolean value) {
this.requestFieldInternal(field, value);
return this;
}
public APIRequestGetComments requestAdminCreatorField () {
return this.requestAdminCreatorField(true);
}
public APIRequestGetComments requestAdminCreatorField (boolean value) {
this.requestField("admin_creator", value);
return this;
}
public APIRequestGetComments requestApplicationField () {
return this.requestApplicationField(true);
}
public APIRequestGetComments requestApplicationField (boolean value) {
this.requestField("application", value);
return this;
}
public APIRequestGetComments requestAttachmentField () {
return this.requestAttachmentField(true);
}
public APIRequestGetComments requestAttachmentField (boolean value) {
this.requestField("attachment", value);
return this;
}
public APIRequestGetComments requestCanCommentField () {
return this.requestCanCommentField(true);
}
public APIRequestGetComments requestCanCommentField (boolean value) {
this.requestField("can_comment", value);
return this;
}
public APIRequestGetComments requestCanHideField () {
return this.requestCanHideField(true);
}
public APIRequestGetComments requestCanHideField (boolean value) {
this.requestField("can_hide", value);
return this;
}
public APIRequestGetComments requestCanLikeField () {
return this.requestCanLikeField(true);
}
public APIRequestGetComments requestCanLikeField (boolean value) {
this.requestField("can_like", value);
return this;
}
public APIRequestGetComments requestCanRemoveField () {
return this.requestCanRemoveField(true);
}
public APIRequestGetComments requestCanRemoveField (boolean value) {
this.requestField("can_remove", value);
return this;
}
public APIRequestGetComments requestCanReplyPrivatelyField () {
return this.requestCanReplyPrivatelyField(true);
}
public APIRequestGetComments requestCanReplyPrivatelyField (boolean value) {
this.requestField("can_reply_privately", value);
return this;
}
public APIRequestGetComments requestCommentCountField () {
return this.requestCommentCountField(true);
}
public APIRequestGetComments requestCommentCountField (boolean value) {
this.requestField("comment_count", value);
return this;
}
public APIRequestGetComments requestCreatedTimeField () {
return this.requestCreatedTimeField(true);
}
public APIRequestGetComments requestCreatedTimeField (boolean value) {
this.requestField("created_time", value);
return this;
}
public APIRequestGetComments requestFromField () {
return this.requestFromField(true);
}
public APIRequestGetComments requestFromField (boolean value) {
this.requestField("from", value);
return this;
}
public APIRequestGetComments requestIdField () {
return this.requestIdField(true);
}
public APIRequestGetComments requestIdField (boolean value) {
this.requestField("id", value);
return this;
}
public APIRequestGetComments requestIsHiddenField () {
return this.requestIsHiddenField(true);
}
public APIRequestGetComments requestIsHiddenField (boolean value) {
this.requestField("is_hidden", value);
return this;
}
public APIRequestGetComments requestIsPrivateField () {
return this.requestIsPrivateField(true);
}
public APIRequestGetComments requestIsPrivateField (boolean value) {
this.requestField("is_private", value);
return this;
}
public APIRequestGetComments requestLikeCountField () {
return this.requestLikeCountField(true);
}
public APIRequestGetComments requestLikeCountField (boolean value) {
this.requestField("like_count", value);
return this;
}
public APIRequestGetComments requestLiveBroadcastTimestampField () {
return this.requestLiveBroadcastTimestampField(true);
}
public APIRequestGetComments requestLiveBroadcastTimestampField (boolean value) {
this.requestField("live_broadcast_timestamp", value);
return this;
}
public APIRequestGetComments requestMessageField () {
return this.requestMessageField(true);
}
public APIRequestGetComments requestMessageField (boolean value) {
this.requestField("message", value);
return this;
}
public APIRequestGetComments requestMessageTagsField () {
return this.requestMessageTagsField(true);
}
public APIRequestGetComments requestMessageTagsField (boolean value) {
this.requestField("message_tags", value);
return this;
}
public APIRequestGetComments requestObjectField () {
return this.requestObjectField(true);
}
public APIRequestGetComments requestObjectField (boolean value) {
this.requestField("object", value);
return this;
}
public APIRequestGetComments requestParentField () {
return this.requestParentField(true);
}
public APIRequestGetComments requestParentField (boolean value) {
this.requestField("parent", value);
return this;
}
public APIRequestGetComments requestPermalinkUrlField () {
return this.requestPermalinkUrlField(true);
}
public APIRequestGetComments requestPermalinkUrlField (boolean value) {
this.requestField("permalink_url", value);
return this;
}
public APIRequestGetComments requestPrivateReplyConversationField () {
return this.requestPrivateReplyConversationField(true);
}
public APIRequestGetComments requestPrivateReplyConversationField (boolean value) {
this.requestField("private_reply_conversation", value);
return this;
}
public APIRequestGetComments requestUserLikesField () {
return this.requestUserLikesField(true);
}
public APIRequestGetComments requestUserLikesField (boolean value) {
this.requestField("user_likes", value);
return this;
}
}
public static class APIRequestCreateComment extends APIRequest {
Comment lastResponse = null;
@Override
public Comment getLastResponse() {
return lastResponse;
}
public static final String[] PARAMS = {
"attachment_id",
"attachment_share_url",
"attachment_url",
"comment",
"comment_privacy_value",
"feedback_source",
"message",
"nectar_module",
"parent_comment_id",
"post_id",
"tracking",
};
public static final String[] FIELDS = {
};
@Override
public Comment parseResponse(String response, String header) throws APIException {
return Comment.parseResponse(response, getContext(), this, header).head();
}
@Override
public Comment execute() throws APIException {
return execute(new HashMap());
}
@Override
public Comment execute(Map extraParams) throws APIException {
ResponseWrapper rw = executeInternal(extraParams);
lastResponse = parseResponse(rw.getBody(), rw.getHeader());
return lastResponse;
}
public ListenableFuture executeAsync() throws APIException {
return executeAsync(new HashMap());
};
public ListenableFuture executeAsync(Map extraParams) throws APIException {
return Futures.transform(
executeAsyncInternal(extraParams),
new Function() {
public Comment apply(ResponseWrapper result) {
try {
return APIRequestCreateComment.this.parseResponse(result.getBody(), result.getHeader());
} catch (Exception e) {
throw new RuntimeException(e);
}
}
},
MoreExecutors.directExecutor()
);
};
public APIRequestCreateComment(String nodeId, APIContext context) {
super(context, nodeId, "/comments", "POST", Arrays.asList(PARAMS));
}
@Override
public APIRequestCreateComment setParam(String param, Object value) {
setParamInternal(param, value);
return this;
}
@Override
public APIRequestCreateComment setParams(Map params) {
setParamsInternal(params);
return this;
}
public APIRequestCreateComment setAttachmentId (String attachmentId) {
this.setParam("attachment_id", attachmentId);
return this;
}
public APIRequestCreateComment setAttachmentShareUrl (String attachmentShareUrl) {
this.setParam("attachment_share_url", attachmentShareUrl);
return this;
}
public APIRequestCreateComment setAttachmentUrl (String attachmentUrl) {
this.setParam("attachment_url", attachmentUrl);
return this;
}
public APIRequestCreateComment setComment (String comment) {
this.setParam("comment", comment);
return this;
}
public APIRequestCreateComment setCommentPrivacyValue (Comment.EnumCommentPrivacyValue commentPrivacyValue) {
this.setParam("comment_privacy_value", commentPrivacyValue);
return this;
}
public APIRequestCreateComment setCommentPrivacyValue (String commentPrivacyValue) {
this.setParam("comment_privacy_value", commentPrivacyValue);
return this;
}
public APIRequestCreateComment setFeedbackSource (String feedbackSource) {
this.setParam("feedback_source", feedbackSource);
return this;
}
public APIRequestCreateComment setMessage (String message) {
this.setParam("message", message);
return this;
}
public APIRequestCreateComment setNectarModule (String nectarModule) {
this.setParam("nectar_module", nectarModule);
return this;
}
public APIRequestCreateComment setParentCommentId (Object parentCommentId) {
this.setParam("parent_comment_id", parentCommentId);
return this;
}
public APIRequestCreateComment setParentCommentId (String parentCommentId) {
this.setParam("parent_comment_id", parentCommentId);
return this;
}
public APIRequestCreateComment setPostId (String postId) {
this.setParam("post_id", postId);
return this;
}
public APIRequestCreateComment setTracking (String tracking) {
this.setParam("tracking", tracking);
return this;
}
public APIRequestCreateComment requestAllFields () {
return this.requestAllFields(true);
}
public APIRequestCreateComment requestAllFields (boolean value) {
for (String field : FIELDS) {
this.requestField(field, value);
}
return this;
}
@Override
public APIRequestCreateComment requestFields (List fields) {
return this.requestFields(fields, true);
}
@Override
public APIRequestCreateComment requestFields (List fields, boolean value) {
for (String field : fields) {
this.requestField(field, value);
}
return this;
}
@Override
public APIRequestCreateComment requestField (String field) {
this.requestField(field, true);
return this;
}
@Override
public APIRequestCreateComment requestField (String field, boolean value) {
this.requestFieldInternal(field, value);
return this;
}
}
public static class APIRequestGetDynamicPosts extends APIRequest {
APINodeList lastResponse = null;
@Override
public APINodeList getLastResponse() {
return lastResponse;
}
public static final String[] PARAMS = {
};
public static final String[] FIELDS = {
"child_attachments",
"created",
"description",
"id",
"image_url",
"link",
"message",
"owner_id",
"place_id",
"product_id",
"title",
};
@Override
public APINodeList parseResponse(String response, String header) throws APIException {
return RTBDynamicPost.parseResponse(response, getContext(), this, header);
}
@Override
public APINodeList execute() throws APIException {
return execute(new HashMap());
}
@Override
public APINodeList execute(Map extraParams) throws APIException {
ResponseWrapper rw = executeInternal(extraParams);
lastResponse = parseResponse(rw.getBody(),rw.getHeader());
return lastResponse;
}
public ListenableFuture> executeAsync() throws APIException {
return executeAsync(new HashMap());
};
public ListenableFuture> executeAsync(Map extraParams) throws APIException {
return Futures.transform(
executeAsyncInternal(extraParams),
new Function>() {
public APINodeList apply(ResponseWrapper result) {
try {
return APIRequestGetDynamicPosts.this.parseResponse(result.getBody(), result.getHeader());
} catch (Exception e) {
throw new RuntimeException(e);
}
}
},
MoreExecutors.directExecutor()
);
};
public APIRequestGetDynamicPosts(String nodeId, APIContext context) {
super(context, nodeId, "/dynamic_posts", "GET", Arrays.asList(PARAMS));
}
@Override
public APIRequestGetDynamicPosts setParam(String param, Object value) {
setParamInternal(param, value);
return this;
}
@Override
public APIRequestGetDynamicPosts setParams(Map params) {
setParamsInternal(params);
return this;
}
public APIRequestGetDynamicPosts requestAllFields () {
return this.requestAllFields(true);
}
public APIRequestGetDynamicPosts requestAllFields (boolean value) {
for (String field : FIELDS) {
this.requestField(field, value);
}
return this;
}
@Override
public APIRequestGetDynamicPosts requestFields (List fields) {
return this.requestFields(fields, true);
}
@Override
public APIRequestGetDynamicPosts requestFields (List fields, boolean value) {
for (String field : fields) {
this.requestField(field, value);
}
return this;
}
@Override
public APIRequestGetDynamicPosts requestField (String field) {
this.requestField(field, true);
return this;
}
@Override
public APIRequestGetDynamicPosts requestField (String field, boolean value) {
this.requestFieldInternal(field, value);
return this;
}
public APIRequestGetDynamicPosts requestChildAttachmentsField () {
return this.requestChildAttachmentsField(true);
}
public APIRequestGetDynamicPosts requestChildAttachmentsField (boolean value) {
this.requestField("child_attachments", value);
return this;
}
public APIRequestGetDynamicPosts requestCreatedField () {
return this.requestCreatedField(true);
}
public APIRequestGetDynamicPosts requestCreatedField (boolean value) {
this.requestField("created", value);
return this;
}
public APIRequestGetDynamicPosts requestDescriptionField () {
return this.requestDescriptionField(true);
}
public APIRequestGetDynamicPosts requestDescriptionField (boolean value) {
this.requestField("description", value);
return this;
}
public APIRequestGetDynamicPosts requestIdField () {
return this.requestIdField(true);
}
public APIRequestGetDynamicPosts requestIdField (boolean value) {
this.requestField("id", value);
return this;
}
public APIRequestGetDynamicPosts requestImageUrlField () {
return this.requestImageUrlField(true);
}
public APIRequestGetDynamicPosts requestImageUrlField (boolean value) {
this.requestField("image_url", value);
return this;
}
public APIRequestGetDynamicPosts requestLinkField () {
return this.requestLinkField(true);
}
public APIRequestGetDynamicPosts requestLinkField (boolean value) {
this.requestField("link", value);
return this;
}
public APIRequestGetDynamicPosts requestMessageField () {
return this.requestMessageField(true);
}
public APIRequestGetDynamicPosts requestMessageField (boolean value) {
this.requestField("message", value);
return this;
}
public APIRequestGetDynamicPosts requestOwnerIdField () {
return this.requestOwnerIdField(true);
}
public APIRequestGetDynamicPosts requestOwnerIdField (boolean value) {
this.requestField("owner_id", value);
return this;
}
public APIRequestGetDynamicPosts requestPlaceIdField () {
return this.requestPlaceIdField(true);
}
public APIRequestGetDynamicPosts requestPlaceIdField (boolean value) {
this.requestField("place_id", value);
return this;
}
public APIRequestGetDynamicPosts requestProductIdField () {
return this.requestProductIdField(true);
}
public APIRequestGetDynamicPosts requestProductIdField (boolean value) {
this.requestField("product_id", value);
return this;
}
public APIRequestGetDynamicPosts requestTitleField () {
return this.requestTitleField(true);
}
public APIRequestGetDynamicPosts requestTitleField (boolean value) {
this.requestField("title", value);
return this;
}
}
public static class APIRequestGetInsights extends APIRequest {
APINodeList lastResponse = null;
@Override
public APINodeList getLastResponse() {
return lastResponse;
}
public static final String[] PARAMS = {
"date_preset",
"metric",
"period",
"since",
"until",
};
public static final String[] FIELDS = {
"description",
"description_from_api_doc",
"id",
"name",
"period",
"title",
"values",
};
@Override
public APINodeList parseResponse(String response, String header) throws APIException {
return InsightsResult.parseResponse(response, getContext(), this, header);
}
@Override
public APINodeList execute() throws APIException {
return execute(new HashMap());
}
@Override
public APINodeList execute(Map extraParams) throws APIException {
ResponseWrapper rw = executeInternal(extraParams);
lastResponse = parseResponse(rw.getBody(),rw.getHeader());
return lastResponse;
}
public ListenableFuture> executeAsync() throws APIException {
return executeAsync(new HashMap());
};
public ListenableFuture> executeAsync(Map extraParams) throws APIException {
return Futures.transform(
executeAsyncInternal(extraParams),
new Function>() {
public APINodeList apply(ResponseWrapper result) {
try {
return APIRequestGetInsights.this.parseResponse(result.getBody(), result.getHeader());
} catch (Exception e) {
throw new RuntimeException(e);
}
}
},
MoreExecutors.directExecutor()
);
};
public APIRequestGetInsights(String nodeId, APIContext context) {
super(context, nodeId, "/insights", "GET", Arrays.asList(PARAMS));
}
@Override
public APIRequestGetInsights setParam(String param, Object value) {
setParamInternal(param, value);
return this;
}
@Override
public APIRequestGetInsights setParams(Map params) {
setParamsInternal(params);
return this;
}
public APIRequestGetInsights setDatePreset (InsightsResult.EnumDatePreset datePreset) {
this.setParam("date_preset", datePreset);
return this;
}
public APIRequestGetInsights setDatePreset (String datePreset) {
this.setParam("date_preset", datePreset);
return this;
}
public APIRequestGetInsights setMetric (List metric) {
this.setParam("metric", metric);
return this;
}
public APIRequestGetInsights setMetric (String metric) {
this.setParam("metric", metric);
return this;
}
public APIRequestGetInsights setPeriod (InsightsResult.EnumPeriod period) {
this.setParam("period", period);
return this;
}
public APIRequestGetInsights setPeriod (String period) {
this.setParam("period", period);
return this;
}
public APIRequestGetInsights setSince (String since) {
this.setParam("since", since);
return this;
}
public APIRequestGetInsights setUntil (String until) {
this.setParam("until", until);
return this;
}
public APIRequestGetInsights requestAllFields () {
return this.requestAllFields(true);
}
public APIRequestGetInsights requestAllFields (boolean value) {
for (String field : FIELDS) {
this.requestField(field, value);
}
return this;
}
@Override
public APIRequestGetInsights requestFields (List fields) {
return this.requestFields(fields, true);
}
@Override
public APIRequestGetInsights requestFields (List fields, boolean value) {
for (String field : fields) {
this.requestField(field, value);
}
return this;
}
@Override
public APIRequestGetInsights requestField (String field) {
this.requestField(field, true);
return this;
}
@Override
public APIRequestGetInsights requestField (String field, boolean value) {
this.requestFieldInternal(field, value);
return this;
}
public APIRequestGetInsights requestDescriptionField () {
return this.requestDescriptionField(true);
}
public APIRequestGetInsights requestDescriptionField (boolean value) {
this.requestField("description", value);
return this;
}
public APIRequestGetInsights requestDescriptionFromApiDocField () {
return this.requestDescriptionFromApiDocField(true);
}
public APIRequestGetInsights requestDescriptionFromApiDocField (boolean value) {
this.requestField("description_from_api_doc", value);
return this;
}
public APIRequestGetInsights requestIdField () {
return this.requestIdField(true);
}
public APIRequestGetInsights requestIdField (boolean value) {
this.requestField("id", value);
return this;
}
public APIRequestGetInsights requestNameField () {
return this.requestNameField(true);
}
public APIRequestGetInsights requestNameField (boolean value) {
this.requestField("name", value);
return this;
}
public APIRequestGetInsights requestPeriodField () {
return this.requestPeriodField(true);
}
public APIRequestGetInsights requestPeriodField (boolean value) {
this.requestField("period", value);
return this;
}
public APIRequestGetInsights requestTitleField () {
return this.requestTitleField(true);
}
public APIRequestGetInsights requestTitleField (boolean value) {
this.requestField("title", value);
return this;
}
public APIRequestGetInsights requestValuesField () {
return this.requestValuesField(true);
}
public APIRequestGetInsights requestValuesField (boolean value) {
this.requestField("values", value);
return this;
}
}
public static class APIRequestDeleteLikes extends APIRequest {
APINodeList lastResponse = null;
@Override
public APINodeList getLastResponse() {
return lastResponse;
}
public static final String[] PARAMS = {
"nectar_module",
"tracking",
};
public static final String[] FIELDS = {
};
@Override
public APINodeList parseResponse(String response, String header) throws APIException {
return APINode.parseResponse(response, getContext(), this, header);
}
@Override
public APINodeList execute() throws APIException {
return execute(new HashMap());
}
@Override
public APINodeList execute(Map extraParams) throws APIException {
ResponseWrapper rw = executeInternal(extraParams);
lastResponse = parseResponse(rw.getBody(),rw.getHeader());
return lastResponse;
}
public ListenableFuture> executeAsync() throws APIException {
return executeAsync(new HashMap());
};
public ListenableFuture> executeAsync(Map extraParams) throws APIException {
return Futures.transform(
executeAsyncInternal(extraParams),
new Function>() {
public APINodeList apply(ResponseWrapper result) {
try {
return APIRequestDeleteLikes.this.parseResponse(result.getBody(), result.getHeader());
} catch (Exception e) {
throw new RuntimeException(e);
}
}
},
MoreExecutors.directExecutor()
);
};
public APIRequestDeleteLikes(String nodeId, APIContext context) {
super(context, nodeId, "/likes", "DELETE", Arrays.asList(PARAMS));
}
@Override
public APIRequestDeleteLikes setParam(String param, Object value) {
setParamInternal(param, value);
return this;
}
@Override
public APIRequestDeleteLikes setParams(Map params) {
setParamsInternal(params);
return this;
}
public APIRequestDeleteLikes setNectarModule (String nectarModule) {
this.setParam("nectar_module", nectarModule);
return this;
}
public APIRequestDeleteLikes setTracking (String tracking) {
this.setParam("tracking", tracking);
return this;
}
public APIRequestDeleteLikes requestAllFields () {
return this.requestAllFields(true);
}
public APIRequestDeleteLikes requestAllFields (boolean value) {
for (String field : FIELDS) {
this.requestField(field, value);
}
return this;
}
@Override
public APIRequestDeleteLikes requestFields (List fields) {
return this.requestFields(fields, true);
}
@Override
public APIRequestDeleteLikes requestFields (List fields, boolean value) {
for (String field : fields) {
this.requestField(field, value);
}
return this;
}
@Override
public APIRequestDeleteLikes requestField (String field) {
this.requestField(field, true);
return this;
}
@Override
public APIRequestDeleteLikes requestField (String field, boolean value) {
this.requestFieldInternal(field, value);
return this;
}
}
public static class APIRequestGetLikes extends APIRequest {
APINodeList lastResponse = null;
@Override
public APINodeList getLastResponse() {
return lastResponse;
}
public static final String[] PARAMS = {
};
public static final String[] FIELDS = {
"can_post",
"id",
"link",
"name",
"pic",
"pic_crop",
"pic_large",
"pic_small",
"pic_square",
"profile_type",
"username",
};
@Override
public APINodeList parseResponse(String response, String header) throws APIException {
return Profile.parseResponse(response, getContext(), this, header);
}
@Override
public APINodeList execute() throws APIException {
return execute(new HashMap());
}
@Override
public APINodeList execute(Map extraParams) throws APIException {
ResponseWrapper rw = executeInternal(extraParams);
lastResponse = parseResponse(rw.getBody(),rw.getHeader());
return lastResponse;
}
public ListenableFuture> executeAsync() throws APIException {
return executeAsync(new HashMap());
};
public ListenableFuture> executeAsync(Map extraParams) throws APIException {
return Futures.transform(
executeAsyncInternal(extraParams),
new Function>() {
public APINodeList apply(ResponseWrapper result) {
try {
return APIRequestGetLikes.this.parseResponse(result.getBody(), result.getHeader());
} catch (Exception e) {
throw new RuntimeException(e);
}
}
},
MoreExecutors.directExecutor()
);
};
public APIRequestGetLikes(String nodeId, APIContext context) {
super(context, nodeId, "/likes", "GET", Arrays.asList(PARAMS));
}
@Override
public APIRequestGetLikes setParam(String param, Object value) {
setParamInternal(param, value);
return this;
}
@Override
public APIRequestGetLikes setParams(Map params) {
setParamsInternal(params);
return this;
}
public APIRequestGetLikes requestAllFields () {
return this.requestAllFields(true);
}
public APIRequestGetLikes requestAllFields (boolean value) {
for (String field : FIELDS) {
this.requestField(field, value);
}
return this;
}
@Override
public APIRequestGetLikes requestFields (List fields) {
return this.requestFields(fields, true);
}
@Override
public APIRequestGetLikes requestFields (List fields, boolean value) {
for (String field : fields) {
this.requestField(field, value);
}
return this;
}
@Override
public APIRequestGetLikes requestField (String field) {
this.requestField(field, true);
return this;
}
@Override
public APIRequestGetLikes requestField (String field, boolean value) {
this.requestFieldInternal(field, value);
return this;
}
public APIRequestGetLikes requestCanPostField () {
return this.requestCanPostField(true);
}
public APIRequestGetLikes requestCanPostField (boolean value) {
this.requestField("can_post", value);
return this;
}
public APIRequestGetLikes requestIdField () {
return this.requestIdField(true);
}
public APIRequestGetLikes requestIdField (boolean value) {
this.requestField("id", value);
return this;
}
public APIRequestGetLikes requestLinkField () {
return this.requestLinkField(true);
}
public APIRequestGetLikes requestLinkField (boolean value) {
this.requestField("link", value);
return this;
}
public APIRequestGetLikes requestNameField () {
return this.requestNameField(true);
}
public APIRequestGetLikes requestNameField (boolean value) {
this.requestField("name", value);
return this;
}
public APIRequestGetLikes requestPicField () {
return this.requestPicField(true);
}
public APIRequestGetLikes requestPicField (boolean value) {
this.requestField("pic", value);
return this;
}
public APIRequestGetLikes requestPicCropField () {
return this.requestPicCropField(true);
}
public APIRequestGetLikes requestPicCropField (boolean value) {
this.requestField("pic_crop", value);
return this;
}
public APIRequestGetLikes requestPicLargeField () {
return this.requestPicLargeField(true);
}
public APIRequestGetLikes requestPicLargeField (boolean value) {
this.requestField("pic_large", value);
return this;
}
public APIRequestGetLikes requestPicSmallField () {
return this.requestPicSmallField(true);
}
public APIRequestGetLikes requestPicSmallField (boolean value) {
this.requestField("pic_small", value);
return this;
}
public APIRequestGetLikes requestPicSquareField () {
return this.requestPicSquareField(true);
}
public APIRequestGetLikes requestPicSquareField (boolean value) {
this.requestField("pic_square", value);
return this;
}
public APIRequestGetLikes requestProfileTypeField () {
return this.requestProfileTypeField(true);
}
public APIRequestGetLikes requestProfileTypeField (boolean value) {
this.requestField("profile_type", value);
return this;
}
public APIRequestGetLikes requestUsernameField () {
return this.requestUsernameField(true);
}
public APIRequestGetLikes requestUsernameField (boolean value) {
this.requestField("username", value);
return this;
}
}
public static class APIRequestCreateLike extends APIRequest {
PagePost lastResponse = null;
@Override
public PagePost getLastResponse() {
return lastResponse;
}
public static final String[] PARAMS = {
"feedback_source",
"nectar_module",
"tracking",
};
public static final String[] FIELDS = {
};
@Override
public PagePost parseResponse(String response, String header) throws APIException {
return PagePost.parseResponse(response, getContext(), this, header).head();
}
@Override
public PagePost execute() throws APIException {
return execute(new HashMap());
}
@Override
public PagePost execute(Map extraParams) throws APIException {
ResponseWrapper rw = executeInternal(extraParams);
lastResponse = parseResponse(rw.getBody(), rw.getHeader());
return lastResponse;
}
public ListenableFuture executeAsync() throws APIException {
return executeAsync(new HashMap());
};
public ListenableFuture executeAsync(Map extraParams) throws APIException {
return Futures.transform(
executeAsyncInternal(extraParams),
new Function() {
public PagePost apply(ResponseWrapper result) {
try {
return APIRequestCreateLike.this.parseResponse(result.getBody(), result.getHeader());
} catch (Exception e) {
throw new RuntimeException(e);
}
}
},
MoreExecutors.directExecutor()
);
};
public APIRequestCreateLike(String nodeId, APIContext context) {
super(context, nodeId, "/likes", "POST", Arrays.asList(PARAMS));
}
@Override
public APIRequestCreateLike setParam(String param, Object value) {
setParamInternal(param, value);
return this;
}
@Override
public APIRequestCreateLike setParams(Map params) {
setParamsInternal(params);
return this;
}
public APIRequestCreateLike setFeedbackSource (String feedbackSource) {
this.setParam("feedback_source", feedbackSource);
return this;
}
public APIRequestCreateLike setNectarModule (String nectarModule) {
this.setParam("nectar_module", nectarModule);
return this;
}
public APIRequestCreateLike setTracking (String tracking) {
this.setParam("tracking", tracking);
return this;
}
public APIRequestCreateLike requestAllFields () {
return this.requestAllFields(true);
}
public APIRequestCreateLike requestAllFields (boolean value) {
for (String field : FIELDS) {
this.requestField(field, value);
}
return this;
}
@Override
public APIRequestCreateLike requestFields (List fields) {
return this.requestFields(fields, true);
}
@Override
public APIRequestCreateLike requestFields (List fields, boolean value) {
for (String field : fields) {
this.requestField(field, value);
}
return this;
}
@Override
public APIRequestCreateLike requestField (String field) {
this.requestField(field, true);
return this;
}
@Override
public APIRequestCreateLike requestField (String field, boolean value) {
this.requestFieldInternal(field, value);
return this;
}
}
public static class APIRequestGetReactions extends APIRequest {
APINodeList lastResponse = null;
@Override
public APINodeList getLastResponse() {
return lastResponse;
}
public static final String[] PARAMS = {
"type",
};
public static final String[] FIELDS = {
"can_post",
"id",
"link",
"name",
"pic",
"pic_crop",
"pic_large",
"pic_small",
"pic_square",
"profile_type",
"username",
};
@Override
public APINodeList parseResponse(String response, String header) throws APIException {
return Profile.parseResponse(response, getContext(), this, header);
}
@Override
public APINodeList execute() throws APIException {
return execute(new HashMap());
}
@Override
public APINodeList execute(Map extraParams) throws APIException {
ResponseWrapper rw = executeInternal(extraParams);
lastResponse = parseResponse(rw.getBody(),rw.getHeader());
return lastResponse;
}
public ListenableFuture> executeAsync() throws APIException {
return executeAsync(new HashMap());
};
public ListenableFuture> executeAsync(Map extraParams) throws APIException {
return Futures.transform(
executeAsyncInternal(extraParams),
new Function>() {
public APINodeList apply(ResponseWrapper result) {
try {
return APIRequestGetReactions.this.parseResponse(result.getBody(), result.getHeader());
} catch (Exception e) {
throw new RuntimeException(e);
}
}
},
MoreExecutors.directExecutor()
);
};
public APIRequestGetReactions(String nodeId, APIContext context) {
super(context, nodeId, "/reactions", "GET", Arrays.asList(PARAMS));
}
@Override
public APIRequestGetReactions setParam(String param, Object value) {
setParamInternal(param, value);
return this;
}
@Override
public APIRequestGetReactions setParams(Map params) {
setParamsInternal(params);
return this;
}
public APIRequestGetReactions setType (Profile.EnumType type) {
this.setParam("type", type);
return this;
}
public APIRequestGetReactions setType (String type) {
this.setParam("type", type);
return this;
}
public APIRequestGetReactions requestAllFields () {
return this.requestAllFields(true);
}
public APIRequestGetReactions requestAllFields (boolean value) {
for (String field : FIELDS) {
this.requestField(field, value);
}
return this;
}
@Override
public APIRequestGetReactions requestFields (List fields) {
return this.requestFields(fields, true);
}
@Override
public APIRequestGetReactions requestFields (List fields, boolean value) {
for (String field : fields) {
this.requestField(field, value);
}
return this;
}
@Override
public APIRequestGetReactions requestField (String field) {
this.requestField(field, true);
return this;
}
@Override
public APIRequestGetReactions requestField (String field, boolean value) {
this.requestFieldInternal(field, value);
return this;
}
public APIRequestGetReactions requestCanPostField () {
return this.requestCanPostField(true);
}
public APIRequestGetReactions requestCanPostField (boolean value) {
this.requestField("can_post", value);
return this;
}
public APIRequestGetReactions requestIdField () {
return this.requestIdField(true);
}
public APIRequestGetReactions requestIdField (boolean value) {
this.requestField("id", value);
return this;
}
public APIRequestGetReactions requestLinkField () {
return this.requestLinkField(true);
}
public APIRequestGetReactions requestLinkField (boolean value) {
this.requestField("link", value);
return this;
}
public APIRequestGetReactions requestNameField () {
return this.requestNameField(true);
}
public APIRequestGetReactions requestNameField (boolean value) {
this.requestField("name", value);
return this;
}
public APIRequestGetReactions requestPicField () {
return this.requestPicField(true);
}
public APIRequestGetReactions requestPicField (boolean value) {
this.requestField("pic", value);
return this;
}
public APIRequestGetReactions requestPicCropField () {
return this.requestPicCropField(true);
}
public APIRequestGetReactions requestPicCropField (boolean value) {
this.requestField("pic_crop", value);
return this;
}
public APIRequestGetReactions requestPicLargeField () {
return this.requestPicLargeField(true);
}
public APIRequestGetReactions requestPicLargeField (boolean value) {
this.requestField("pic_large", value);
return this;
}
public APIRequestGetReactions requestPicSmallField () {
return this.requestPicSmallField(true);
}
public APIRequestGetReactions requestPicSmallField (boolean value) {
this.requestField("pic_small", value);
return this;
}
public APIRequestGetReactions requestPicSquareField () {
return this.requestPicSquareField(true);
}
public APIRequestGetReactions requestPicSquareField (boolean value) {
this.requestField("pic_square", value);
return this;
}
public APIRequestGetReactions requestProfileTypeField () {
return this.requestProfileTypeField(true);
}
public APIRequestGetReactions requestProfileTypeField (boolean value) {
this.requestField("profile_type", value);
return this;
}
public APIRequestGetReactions requestUsernameField () {
return this.requestUsernameField(true);
}
public APIRequestGetReactions requestUsernameField (boolean value) {
this.requestField("username", value);
return this;
}
}
public static class APIRequestGetSharedPosts extends APIRequest {
APINodeList lastResponse = null;
@Override
public APINodeList getLastResponse() {
return lastResponse;
}
public static final String[] PARAMS = {
};
public static final String[] FIELDS = {
"actions",
"admin_creator",
"allowed_advertising_objectives",
"application",
"backdated_time",
"call_to_action",
"can_reply_privately",
"caption",
"child_attachments",
"comments_mirroring_domain",
"coordinates",
"created_time",
"description",
"event",
"expanded_height",
"expanded_width",
"feed_targeting",
"from",
"full_picture",
"height",
"icon",
"id",
"instagram_eligibility",
"is_app_share",
"is_eligible_for_promotion",
"is_expired",
"is_hidden",
"is_inline_created",
"is_instagram_eligible",
"is_popular",
"is_published",
"is_spherical",
"link",
"message",
"message_tags",
"multi_share_end_card",
"multi_share_optimized",
"name",
"object_id",
"parent_id",
"permalink_url",
"picture",
"place",
"privacy",
"promotable_id",
"promotion_status",
"properties",
"scheduled_publish_time",
"shares",
"source",
"status_type",
"story",
"story_tags",
"subscribed",
"target",
"targeting",
"timeline_visibility",
"type",
"updated_time",
"via",
"video_buying_eligibility",
"width",
};
@Override
public APINodeList parseResponse(String response, String header) throws APIException {
return Post.parseResponse(response, getContext(), this, header);
}
@Override
public APINodeList execute() throws APIException {
return execute(new HashMap());
}
@Override
public APINodeList execute(Map extraParams) throws APIException {
ResponseWrapper rw = executeInternal(extraParams);
lastResponse = parseResponse(rw.getBody(),rw.getHeader());
return lastResponse;
}
public ListenableFuture> executeAsync() throws APIException {
return executeAsync(new HashMap());
};
public ListenableFuture> executeAsync(Map extraParams) throws APIException {
return Futures.transform(
executeAsyncInternal(extraParams),
new Function>() {
public APINodeList apply(ResponseWrapper result) {
try {
return APIRequestGetSharedPosts.this.parseResponse(result.getBody(), result.getHeader());
} catch (Exception e) {
throw new RuntimeException(e);
}
}
},
MoreExecutors.directExecutor()
);
};
public APIRequestGetSharedPosts(String nodeId, APIContext context) {
super(context, nodeId, "/sharedposts", "GET", Arrays.asList(PARAMS));
}
@Override
public APIRequestGetSharedPosts setParam(String param, Object value) {
setParamInternal(param, value);
return this;
}
@Override
public APIRequestGetSharedPosts setParams(Map params) {
setParamsInternal(params);
return this;
}
public APIRequestGetSharedPosts requestAllFields () {
return this.requestAllFields(true);
}
public APIRequestGetSharedPosts requestAllFields (boolean value) {
for (String field : FIELDS) {
this.requestField(field, value);
}
return this;
}
@Override
public APIRequestGetSharedPosts requestFields (List fields) {
return this.requestFields(fields, true);
}
@Override
public APIRequestGetSharedPosts requestFields (List fields, boolean value) {
for (String field : fields) {
this.requestField(field, value);
}
return this;
}
@Override
public APIRequestGetSharedPosts requestField (String field) {
this.requestField(field, true);
return this;
}
@Override
public APIRequestGetSharedPosts requestField (String field, boolean value) {
this.requestFieldInternal(field, value);
return this;
}
public APIRequestGetSharedPosts requestActionsField () {
return this.requestActionsField(true);
}
public APIRequestGetSharedPosts requestActionsField (boolean value) {
this.requestField("actions", value);
return this;
}
public APIRequestGetSharedPosts requestAdminCreatorField () {
return this.requestAdminCreatorField(true);
}
public APIRequestGetSharedPosts requestAdminCreatorField (boolean value) {
this.requestField("admin_creator", value);
return this;
}
public APIRequestGetSharedPosts requestAllowedAdvertisingObjectivesField () {
return this.requestAllowedAdvertisingObjectivesField(true);
}
public APIRequestGetSharedPosts requestAllowedAdvertisingObjectivesField (boolean value) {
this.requestField("allowed_advertising_objectives", value);
return this;
}
public APIRequestGetSharedPosts requestApplicationField () {
return this.requestApplicationField(true);
}
public APIRequestGetSharedPosts requestApplicationField (boolean value) {
this.requestField("application", value);
return this;
}
public APIRequestGetSharedPosts requestBackdatedTimeField () {
return this.requestBackdatedTimeField(true);
}
public APIRequestGetSharedPosts requestBackdatedTimeField (boolean value) {
this.requestField("backdated_time", value);
return this;
}
public APIRequestGetSharedPosts requestCallToActionField () {
return this.requestCallToActionField(true);
}
public APIRequestGetSharedPosts requestCallToActionField (boolean value) {
this.requestField("call_to_action", value);
return this;
}
public APIRequestGetSharedPosts requestCanReplyPrivatelyField () {
return this.requestCanReplyPrivatelyField(true);
}
public APIRequestGetSharedPosts requestCanReplyPrivatelyField (boolean value) {
this.requestField("can_reply_privately", value);
return this;
}
public APIRequestGetSharedPosts requestCaptionField () {
return this.requestCaptionField(true);
}
public APIRequestGetSharedPosts requestCaptionField (boolean value) {
this.requestField("caption", value);
return this;
}
public APIRequestGetSharedPosts requestChildAttachmentsField () {
return this.requestChildAttachmentsField(true);
}
public APIRequestGetSharedPosts requestChildAttachmentsField (boolean value) {
this.requestField("child_attachments", value);
return this;
}
public APIRequestGetSharedPosts requestCommentsMirroringDomainField () {
return this.requestCommentsMirroringDomainField(true);
}
public APIRequestGetSharedPosts requestCommentsMirroringDomainField (boolean value) {
this.requestField("comments_mirroring_domain", value);
return this;
}
public APIRequestGetSharedPosts requestCoordinatesField () {
return this.requestCoordinatesField(true);
}
public APIRequestGetSharedPosts requestCoordinatesField (boolean value) {
this.requestField("coordinates", value);
return this;
}
public APIRequestGetSharedPosts requestCreatedTimeField () {
return this.requestCreatedTimeField(true);
}
public APIRequestGetSharedPosts requestCreatedTimeField (boolean value) {
this.requestField("created_time", value);
return this;
}
public APIRequestGetSharedPosts requestDescriptionField () {
return this.requestDescriptionField(true);
}
public APIRequestGetSharedPosts requestDescriptionField (boolean value) {
this.requestField("description", value);
return this;
}
public APIRequestGetSharedPosts requestEventField () {
return this.requestEventField(true);
}
public APIRequestGetSharedPosts requestEventField (boolean value) {
this.requestField("event", value);
return this;
}
public APIRequestGetSharedPosts requestExpandedHeightField () {
return this.requestExpandedHeightField(true);
}
public APIRequestGetSharedPosts requestExpandedHeightField (boolean value) {
this.requestField("expanded_height", value);
return this;
}
public APIRequestGetSharedPosts requestExpandedWidthField () {
return this.requestExpandedWidthField(true);
}
public APIRequestGetSharedPosts requestExpandedWidthField (boolean value) {
this.requestField("expanded_width", value);
return this;
}
public APIRequestGetSharedPosts requestFeedTargetingField () {
return this.requestFeedTargetingField(true);
}
public APIRequestGetSharedPosts requestFeedTargetingField (boolean value) {
this.requestField("feed_targeting", value);
return this;
}
public APIRequestGetSharedPosts requestFromField () {
return this.requestFromField(true);
}
public APIRequestGetSharedPosts requestFromField (boolean value) {
this.requestField("from", value);
return this;
}
public APIRequestGetSharedPosts requestFullPictureField () {
return this.requestFullPictureField(true);
}
public APIRequestGetSharedPosts requestFullPictureField (boolean value) {
this.requestField("full_picture", value);
return this;
}
public APIRequestGetSharedPosts requestHeightField () {
return this.requestHeightField(true);
}
public APIRequestGetSharedPosts requestHeightField (boolean value) {
this.requestField("height", value);
return this;
}
public APIRequestGetSharedPosts requestIconField () {
return this.requestIconField(true);
}
public APIRequestGetSharedPosts requestIconField (boolean value) {
this.requestField("icon", value);
return this;
}
public APIRequestGetSharedPosts requestIdField () {
return this.requestIdField(true);
}
public APIRequestGetSharedPosts requestIdField (boolean value) {
this.requestField("id", value);
return this;
}
public APIRequestGetSharedPosts requestInstagramEligibilityField () {
return this.requestInstagramEligibilityField(true);
}
public APIRequestGetSharedPosts requestInstagramEligibilityField (boolean value) {
this.requestField("instagram_eligibility", value);
return this;
}
public APIRequestGetSharedPosts requestIsAppShareField () {
return this.requestIsAppShareField(true);
}
public APIRequestGetSharedPosts requestIsAppShareField (boolean value) {
this.requestField("is_app_share", value);
return this;
}
public APIRequestGetSharedPosts requestIsEligibleForPromotionField () {
return this.requestIsEligibleForPromotionField(true);
}
public APIRequestGetSharedPosts requestIsEligibleForPromotionField (boolean value) {
this.requestField("is_eligible_for_promotion", value);
return this;
}
public APIRequestGetSharedPosts requestIsExpiredField () {
return this.requestIsExpiredField(true);
}
public APIRequestGetSharedPosts requestIsExpiredField (boolean value) {
this.requestField("is_expired", value);
return this;
}
public APIRequestGetSharedPosts requestIsHiddenField () {
return this.requestIsHiddenField(true);
}
public APIRequestGetSharedPosts requestIsHiddenField (boolean value) {
this.requestField("is_hidden", value);
return this;
}
public APIRequestGetSharedPosts requestIsInlineCreatedField () {
return this.requestIsInlineCreatedField(true);
}
public APIRequestGetSharedPosts requestIsInlineCreatedField (boolean value) {
this.requestField("is_inline_created", value);
return this;
}
public APIRequestGetSharedPosts requestIsInstagramEligibleField () {
return this.requestIsInstagramEligibleField(true);
}
public APIRequestGetSharedPosts requestIsInstagramEligibleField (boolean value) {
this.requestField("is_instagram_eligible", value);
return this;
}
public APIRequestGetSharedPosts requestIsPopularField () {
return this.requestIsPopularField(true);
}
public APIRequestGetSharedPosts requestIsPopularField (boolean value) {
this.requestField("is_popular", value);
return this;
}
public APIRequestGetSharedPosts requestIsPublishedField () {
return this.requestIsPublishedField(true);
}
public APIRequestGetSharedPosts requestIsPublishedField (boolean value) {
this.requestField("is_published", value);
return this;
}
public APIRequestGetSharedPosts requestIsSphericalField () {
return this.requestIsSphericalField(true);
}
public APIRequestGetSharedPosts requestIsSphericalField (boolean value) {
this.requestField("is_spherical", value);
return this;
}
public APIRequestGetSharedPosts requestLinkField () {
return this.requestLinkField(true);
}
public APIRequestGetSharedPosts requestLinkField (boolean value) {
this.requestField("link", value);
return this;
}
public APIRequestGetSharedPosts requestMessageField () {
return this.requestMessageField(true);
}
public APIRequestGetSharedPosts requestMessageField (boolean value) {
this.requestField("message", value);
return this;
}
public APIRequestGetSharedPosts requestMessageTagsField () {
return this.requestMessageTagsField(true);
}
public APIRequestGetSharedPosts requestMessageTagsField (boolean value) {
this.requestField("message_tags", value);
return this;
}
public APIRequestGetSharedPosts requestMultiShareEndCardField () {
return this.requestMultiShareEndCardField(true);
}
public APIRequestGetSharedPosts requestMultiShareEndCardField (boolean value) {
this.requestField("multi_share_end_card", value);
return this;
}
public APIRequestGetSharedPosts requestMultiShareOptimizedField () {
return this.requestMultiShareOptimizedField(true);
}
public APIRequestGetSharedPosts requestMultiShareOptimizedField (boolean value) {
this.requestField("multi_share_optimized", value);
return this;
}
public APIRequestGetSharedPosts requestNameField () {
return this.requestNameField(true);
}
public APIRequestGetSharedPosts requestNameField (boolean value) {
this.requestField("name", value);
return this;
}
public APIRequestGetSharedPosts requestObjectIdField () {
return this.requestObjectIdField(true);
}
public APIRequestGetSharedPosts requestObjectIdField (boolean value) {
this.requestField("object_id", value);
return this;
}
public APIRequestGetSharedPosts requestParentIdField () {
return this.requestParentIdField(true);
}
public APIRequestGetSharedPosts requestParentIdField (boolean value) {
this.requestField("parent_id", value);
return this;
}
public APIRequestGetSharedPosts requestPermalinkUrlField () {
return this.requestPermalinkUrlField(true);
}
public APIRequestGetSharedPosts requestPermalinkUrlField (boolean value) {
this.requestField("permalink_url", value);
return this;
}
public APIRequestGetSharedPosts requestPictureField () {
return this.requestPictureField(true);
}
public APIRequestGetSharedPosts requestPictureField (boolean value) {
this.requestField("picture", value);
return this;
}
public APIRequestGetSharedPosts requestPlaceField () {
return this.requestPlaceField(true);
}
public APIRequestGetSharedPosts requestPlaceField (boolean value) {
this.requestField("place", value);
return this;
}
public APIRequestGetSharedPosts requestPrivacyField () {
return this.requestPrivacyField(true);
}
public APIRequestGetSharedPosts requestPrivacyField (boolean value) {
this.requestField("privacy", value);
return this;
}
public APIRequestGetSharedPosts requestPromotableIdField () {
return this.requestPromotableIdField(true);
}
public APIRequestGetSharedPosts requestPromotableIdField (boolean value) {
this.requestField("promotable_id", value);
return this;
}
public APIRequestGetSharedPosts requestPromotionStatusField () {
return this.requestPromotionStatusField(true);
}
public APIRequestGetSharedPosts requestPromotionStatusField (boolean value) {
this.requestField("promotion_status", value);
return this;
}
public APIRequestGetSharedPosts requestPropertiesField () {
return this.requestPropertiesField(true);
}
public APIRequestGetSharedPosts requestPropertiesField (boolean value) {
this.requestField("properties", value);
return this;
}
public APIRequestGetSharedPosts requestScheduledPublishTimeField () {
return this.requestScheduledPublishTimeField(true);
}
public APIRequestGetSharedPosts requestScheduledPublishTimeField (boolean value) {
this.requestField("scheduled_publish_time", value);
return this;
}
public APIRequestGetSharedPosts requestSharesField () {
return this.requestSharesField(true);
}
public APIRequestGetSharedPosts requestSharesField (boolean value) {
this.requestField("shares", value);
return this;
}
public APIRequestGetSharedPosts requestSourceField () {
return this.requestSourceField(true);
}
public APIRequestGetSharedPosts requestSourceField (boolean value) {
this.requestField("source", value);
return this;
}
public APIRequestGetSharedPosts requestStatusTypeField () {
return this.requestStatusTypeField(true);
}
public APIRequestGetSharedPosts requestStatusTypeField (boolean value) {
this.requestField("status_type", value);
return this;
}
public APIRequestGetSharedPosts requestStoryField () {
return this.requestStoryField(true);
}
public APIRequestGetSharedPosts requestStoryField (boolean value) {
this.requestField("story", value);
return this;
}
public APIRequestGetSharedPosts requestStoryTagsField () {
return this.requestStoryTagsField(true);
}
public APIRequestGetSharedPosts requestStoryTagsField (boolean value) {
this.requestField("story_tags", value);
return this;
}
public APIRequestGetSharedPosts requestSubscribedField () {
return this.requestSubscribedField(true);
}
public APIRequestGetSharedPosts requestSubscribedField (boolean value) {
this.requestField("subscribed", value);
return this;
}
public APIRequestGetSharedPosts requestTargetField () {
return this.requestTargetField(true);
}
public APIRequestGetSharedPosts requestTargetField (boolean value) {
this.requestField("target", value);
return this;
}
public APIRequestGetSharedPosts requestTargetingField () {
return this.requestTargetingField(true);
}
public APIRequestGetSharedPosts requestTargetingField (boolean value) {
this.requestField("targeting", value);
return this;
}
public APIRequestGetSharedPosts requestTimelineVisibilityField () {
return this.requestTimelineVisibilityField(true);
}
public APIRequestGetSharedPosts requestTimelineVisibilityField (boolean value) {
this.requestField("timeline_visibility", value);
return this;
}
public APIRequestGetSharedPosts requestTypeField () {
return this.requestTypeField(true);
}
public APIRequestGetSharedPosts requestTypeField (boolean value) {
this.requestField("type", value);
return this;
}
public APIRequestGetSharedPosts requestUpdatedTimeField () {
return this.requestUpdatedTimeField(true);
}
public APIRequestGetSharedPosts requestUpdatedTimeField (boolean value) {
this.requestField("updated_time", value);
return this;
}
public APIRequestGetSharedPosts requestViaField () {
return this.requestViaField(true);
}
public APIRequestGetSharedPosts requestViaField (boolean value) {
this.requestField("via", value);
return this;
}
public APIRequestGetSharedPosts requestVideoBuyingEligibilityField () {
return this.requestVideoBuyingEligibilityField(true);
}
public APIRequestGetSharedPosts requestVideoBuyingEligibilityField (boolean value) {
this.requestField("video_buying_eligibility", value);
return this;
}
public APIRequestGetSharedPosts requestWidthField () {
return this.requestWidthField(true);
}
public APIRequestGetSharedPosts requestWidthField (boolean value) {
this.requestField("width", value);
return this;
}
}
public static class APIRequestGetSponsorTags extends APIRequest {
APINodeList lastResponse = null;
@Override
public APINodeList getLastResponse() {
return lastResponse;
}
public static final String[] PARAMS = {
};
public static final String[] FIELDS = {
"about",
"access_token",
"ad_campaign",
"affiliation",
"app_id",
"artists_we_like",
"attire",
"available_promo_offer_ids",
"awards",
"band_interests",
"band_members",
"best_page",
"bio",
"birthday",
"booking_agent",
"breaking_news_usage",
"built",
"business",
"can_checkin",
"can_post",
"category",
"category_list",
"checkins",
"company_overview",
"connected_instagram_account",
"connected_page_backed_instagram_account",
"contact_address",
"copyright_whitelisted_ig_partners",
"country_page_likes",
"cover",
"culinary_team",
"current_location",
"delivery_and_pickup_option_info",
"description",
"description_html",
"differently_open_offerings",
"directed_by",
"display_subtext",
"displayed_message_response_time",
"does_viewer_have_page_permission_link_ig",
"emails",
"engagement",
"fan_count",
"featured_video",
"features",
"followers_count",
"food_styles",
"founded",
"general_info",
"general_manager",
"genre",
"global_brand_page_name",
"global_brand_root_id",
"has_added_app",
"has_lead_access",
"has_transitioned_to_new_page_experience",
"has_whatsapp_business_number",
"has_whatsapp_number",
"hometown",
"hours",
"id",
"impressum",
"influences",
"instagram_business_account",
"is_always_open",
"is_calling_eligible",
"is_chain",
"is_community_page",
"is_eligible_for_branded_content",
"is_eligible_for_disable_connect_ig_btn_for_non_page_admin_am_web",
"is_messenger_bot_get_started_enabled",
"is_messenger_platform_bot",
"is_owned",
"is_permanently_closed",
"is_published",
"is_unclaimed",
"is_verified",
"is_webhooks_subscribed",
"keywords",
"leadgen_tos_acceptance_time",
"leadgen_tos_accepted",
"leadgen_tos_accepting_user",
"link",
"location",
"members",
"merchant_id",
"merchant_review_status",
"messaging_feature_status",
"messenger_ads_default_icebreakers",
"messenger_ads_default_quick_replies",
"messenger_ads_quick_replies_type",
"mini_shop_storefront",
"mission",
"mpg",
"name",
"name_with_location_descriptor",
"network",
"new_like_count",
"offer_eligible",
"overall_star_rating",
"owner_business",
"page_token",
"parent_page",
"parking",
"payment_options",
"personal_info",
"personal_interests",
"pharma_safety_info",
"phone",
"pickup_options",
"place_type",
"plot_outline",
"preferred_audience",
"press_contact",
"price_range",
"privacy_info_url",
"produced_by",
"products",
"promotion_eligible",
"promotion_ineligible_reason",
"public_transit",
"rating_count",
"recipient",
"record_label",
"release_date",
"restaurant_services",
"restaurant_specialties",
"schedule",
"screenplay_by",
"season",
"single_line_address",
"starring",
"start_info",
"store_code",
"store_location_descriptor",
"store_number",
"studio",
"supports_donate_button_in_live_video",
"talking_about_count",
"temporary_status",
"unread_message_count",
"unread_notif_count",
"unseen_message_count",
"user_access_expire_time",
"username",
"verification_status",
"voip_info",
"website",
"were_here_count",
"whatsapp_number",
"written_by",
};
@Override
public APINodeList parseResponse(String response, String header) throws APIException {
return Page.parseResponse(response, getContext(), this, header);
}
@Override
public APINodeList execute() throws APIException {
return execute(new HashMap());
}
@Override
public APINodeList execute(Map extraParams) throws APIException {
ResponseWrapper rw = executeInternal(extraParams);
lastResponse = parseResponse(rw.getBody(),rw.getHeader());
return lastResponse;
}
public ListenableFuture> executeAsync() throws APIException {
return executeAsync(new HashMap());
};
public ListenableFuture> executeAsync(Map extraParams) throws APIException {
return Futures.transform(
executeAsyncInternal(extraParams),
new Function>() {
public APINodeList apply(ResponseWrapper result) {
try {
return APIRequestGetSponsorTags.this.parseResponse(result.getBody(), result.getHeader());
} catch (Exception e) {
throw new RuntimeException(e);
}
}
},
MoreExecutors.directExecutor()
);
};
public APIRequestGetSponsorTags(String nodeId, APIContext context) {
super(context, nodeId, "/sponsor_tags", "GET", Arrays.asList(PARAMS));
}
@Override
public APIRequestGetSponsorTags setParam(String param, Object value) {
setParamInternal(param, value);
return this;
}
@Override
public APIRequestGetSponsorTags setParams(Map params) {
setParamsInternal(params);
return this;
}
public APIRequestGetSponsorTags requestAllFields () {
return this.requestAllFields(true);
}
public APIRequestGetSponsorTags requestAllFields (boolean value) {
for (String field : FIELDS) {
this.requestField(field, value);
}
return this;
}
@Override
public APIRequestGetSponsorTags requestFields (List fields) {
return this.requestFields(fields, true);
}
@Override
public APIRequestGetSponsorTags requestFields (List fields, boolean value) {
for (String field : fields) {
this.requestField(field, value);
}
return this;
}
@Override
public APIRequestGetSponsorTags requestField (String field) {
this.requestField(field, true);
return this;
}
@Override
public APIRequestGetSponsorTags requestField (String field, boolean value) {
this.requestFieldInternal(field, value);
return this;
}
public APIRequestGetSponsorTags requestAboutField () {
return this.requestAboutField(true);
}
public APIRequestGetSponsorTags requestAboutField (boolean value) {
this.requestField("about", value);
return this;
}
public APIRequestGetSponsorTags requestAccessTokenField () {
return this.requestAccessTokenField(true);
}
public APIRequestGetSponsorTags requestAccessTokenField (boolean value) {
this.requestField("access_token", value);
return this;
}
public APIRequestGetSponsorTags requestAdCampaignField () {
return this.requestAdCampaignField(true);
}
public APIRequestGetSponsorTags requestAdCampaignField (boolean value) {
this.requestField("ad_campaign", value);
return this;
}
public APIRequestGetSponsorTags requestAffiliationField () {
return this.requestAffiliationField(true);
}
public APIRequestGetSponsorTags requestAffiliationField (boolean value) {
this.requestField("affiliation", value);
return this;
}
public APIRequestGetSponsorTags requestAppIdField () {
return this.requestAppIdField(true);
}
public APIRequestGetSponsorTags requestAppIdField (boolean value) {
this.requestField("app_id", value);
return this;
}
public APIRequestGetSponsorTags requestArtistsWeLikeField () {
return this.requestArtistsWeLikeField(true);
}
public APIRequestGetSponsorTags requestArtistsWeLikeField (boolean value) {
this.requestField("artists_we_like", value);
return this;
}
public APIRequestGetSponsorTags requestAttireField () {
return this.requestAttireField(true);
}
public APIRequestGetSponsorTags requestAttireField (boolean value) {
this.requestField("attire", value);
return this;
}
public APIRequestGetSponsorTags requestAvailablePromoOfferIdsField () {
return this.requestAvailablePromoOfferIdsField(true);
}
public APIRequestGetSponsorTags requestAvailablePromoOfferIdsField (boolean value) {
this.requestField("available_promo_offer_ids", value);
return this;
}
public APIRequestGetSponsorTags requestAwardsField () {
return this.requestAwardsField(true);
}
public APIRequestGetSponsorTags requestAwardsField (boolean value) {
this.requestField("awards", value);
return this;
}
public APIRequestGetSponsorTags requestBandInterestsField () {
return this.requestBandInterestsField(true);
}
public APIRequestGetSponsorTags requestBandInterestsField (boolean value) {
this.requestField("band_interests", value);
return this;
}
public APIRequestGetSponsorTags requestBandMembersField () {
return this.requestBandMembersField(true);
}
public APIRequestGetSponsorTags requestBandMembersField (boolean value) {
this.requestField("band_members", value);
return this;
}
public APIRequestGetSponsorTags requestBestPageField () {
return this.requestBestPageField(true);
}
public APIRequestGetSponsorTags requestBestPageField (boolean value) {
this.requestField("best_page", value);
return this;
}
public APIRequestGetSponsorTags requestBioField () {
return this.requestBioField(true);
}
public APIRequestGetSponsorTags requestBioField (boolean value) {
this.requestField("bio", value);
return this;
}
public APIRequestGetSponsorTags requestBirthdayField () {
return this.requestBirthdayField(true);
}
public APIRequestGetSponsorTags requestBirthdayField (boolean value) {
this.requestField("birthday", value);
return this;
}
public APIRequestGetSponsorTags requestBookingAgentField () {
return this.requestBookingAgentField(true);
}
public APIRequestGetSponsorTags requestBookingAgentField (boolean value) {
this.requestField("booking_agent", value);
return this;
}
public APIRequestGetSponsorTags requestBreakingNewsUsageField () {
return this.requestBreakingNewsUsageField(true);
}
public APIRequestGetSponsorTags requestBreakingNewsUsageField (boolean value) {
this.requestField("breaking_news_usage", value);
return this;
}
public APIRequestGetSponsorTags requestBuiltField () {
return this.requestBuiltField(true);
}
public APIRequestGetSponsorTags requestBuiltField (boolean value) {
this.requestField("built", value);
return this;
}
public APIRequestGetSponsorTags requestBusinessField () {
return this.requestBusinessField(true);
}
public APIRequestGetSponsorTags requestBusinessField (boolean value) {
this.requestField("business", value);
return this;
}
public APIRequestGetSponsorTags requestCanCheckinField () {
return this.requestCanCheckinField(true);
}
public APIRequestGetSponsorTags requestCanCheckinField (boolean value) {
this.requestField("can_checkin", value);
return this;
}
public APIRequestGetSponsorTags requestCanPostField () {
return this.requestCanPostField(true);
}
public APIRequestGetSponsorTags requestCanPostField (boolean value) {
this.requestField("can_post", value);
return this;
}
public APIRequestGetSponsorTags requestCategoryField () {
return this.requestCategoryField(true);
}
public APIRequestGetSponsorTags requestCategoryField (boolean value) {
this.requestField("category", value);
return this;
}
public APIRequestGetSponsorTags requestCategoryListField () {
return this.requestCategoryListField(true);
}
public APIRequestGetSponsorTags requestCategoryListField (boolean value) {
this.requestField("category_list", value);
return this;
}
public APIRequestGetSponsorTags requestCheckinsField () {
return this.requestCheckinsField(true);
}
public APIRequestGetSponsorTags requestCheckinsField (boolean value) {
this.requestField("checkins", value);
return this;
}
public APIRequestGetSponsorTags requestCompanyOverviewField () {
return this.requestCompanyOverviewField(true);
}
public APIRequestGetSponsorTags requestCompanyOverviewField (boolean value) {
this.requestField("company_overview", value);
return this;
}
public APIRequestGetSponsorTags requestConnectedInstagramAccountField () {
return this.requestConnectedInstagramAccountField(true);
}
public APIRequestGetSponsorTags requestConnectedInstagramAccountField (boolean value) {
this.requestField("connected_instagram_account", value);
return this;
}
public APIRequestGetSponsorTags requestConnectedPageBackedInstagramAccountField () {
return this.requestConnectedPageBackedInstagramAccountField(true);
}
public APIRequestGetSponsorTags requestConnectedPageBackedInstagramAccountField (boolean value) {
this.requestField("connected_page_backed_instagram_account", value);
return this;
}
public APIRequestGetSponsorTags requestContactAddressField () {
return this.requestContactAddressField(true);
}
public APIRequestGetSponsorTags requestContactAddressField (boolean value) {
this.requestField("contact_address", value);
return this;
}
public APIRequestGetSponsorTags requestCopyrightWhitelistedIgPartnersField () {
return this.requestCopyrightWhitelistedIgPartnersField(true);
}
public APIRequestGetSponsorTags requestCopyrightWhitelistedIgPartnersField (boolean value) {
this.requestField("copyright_whitelisted_ig_partners", value);
return this;
}
public APIRequestGetSponsorTags requestCountryPageLikesField () {
return this.requestCountryPageLikesField(true);
}
public APIRequestGetSponsorTags requestCountryPageLikesField (boolean value) {
this.requestField("country_page_likes", value);
return this;
}
public APIRequestGetSponsorTags requestCoverField () {
return this.requestCoverField(true);
}
public APIRequestGetSponsorTags requestCoverField (boolean value) {
this.requestField("cover", value);
return this;
}
public APIRequestGetSponsorTags requestCulinaryTeamField () {
return this.requestCulinaryTeamField(true);
}
public APIRequestGetSponsorTags requestCulinaryTeamField (boolean value) {
this.requestField("culinary_team", value);
return this;
}
public APIRequestGetSponsorTags requestCurrentLocationField () {
return this.requestCurrentLocationField(true);
}
public APIRequestGetSponsorTags requestCurrentLocationField (boolean value) {
this.requestField("current_location", value);
return this;
}
public APIRequestGetSponsorTags requestDeliveryAndPickupOptionInfoField () {
return this.requestDeliveryAndPickupOptionInfoField(true);
}
public APIRequestGetSponsorTags requestDeliveryAndPickupOptionInfoField (boolean value) {
this.requestField("delivery_and_pickup_option_info", value);
return this;
}
public APIRequestGetSponsorTags requestDescriptionField () {
return this.requestDescriptionField(true);
}
public APIRequestGetSponsorTags requestDescriptionField (boolean value) {
this.requestField("description", value);
return this;
}
public APIRequestGetSponsorTags requestDescriptionHtmlField () {
return this.requestDescriptionHtmlField(true);
}
public APIRequestGetSponsorTags requestDescriptionHtmlField (boolean value) {
this.requestField("description_html", value);
return this;
}
public APIRequestGetSponsorTags requestDifferentlyOpenOfferingsField () {
return this.requestDifferentlyOpenOfferingsField(true);
}
public APIRequestGetSponsorTags requestDifferentlyOpenOfferingsField (boolean value) {
this.requestField("differently_open_offerings", value);
return this;
}
public APIRequestGetSponsorTags requestDirectedByField () {
return this.requestDirectedByField(true);
}
public APIRequestGetSponsorTags requestDirectedByField (boolean value) {
this.requestField("directed_by", value);
return this;
}
public APIRequestGetSponsorTags requestDisplaySubtextField () {
return this.requestDisplaySubtextField(true);
}
public APIRequestGetSponsorTags requestDisplaySubtextField (boolean value) {
this.requestField("display_subtext", value);
return this;
}
public APIRequestGetSponsorTags requestDisplayedMessageResponseTimeField () {
return this.requestDisplayedMessageResponseTimeField(true);
}
public APIRequestGetSponsorTags requestDisplayedMessageResponseTimeField (boolean value) {
this.requestField("displayed_message_response_time", value);
return this;
}
public APIRequestGetSponsorTags requestDoesViewerHavePagePermissionLinkIgField () {
return this.requestDoesViewerHavePagePermissionLinkIgField(true);
}
public APIRequestGetSponsorTags requestDoesViewerHavePagePermissionLinkIgField (boolean value) {
this.requestField("does_viewer_have_page_permission_link_ig", value);
return this;
}
public APIRequestGetSponsorTags requestEmailsField () {
return this.requestEmailsField(true);
}
public APIRequestGetSponsorTags requestEmailsField (boolean value) {
this.requestField("emails", value);
return this;
}
public APIRequestGetSponsorTags requestEngagementField () {
return this.requestEngagementField(true);
}
public APIRequestGetSponsorTags requestEngagementField (boolean value) {
this.requestField("engagement", value);
return this;
}
public APIRequestGetSponsorTags requestFanCountField () {
return this.requestFanCountField(true);
}
public APIRequestGetSponsorTags requestFanCountField (boolean value) {
this.requestField("fan_count", value);
return this;
}
public APIRequestGetSponsorTags requestFeaturedVideoField () {
return this.requestFeaturedVideoField(true);
}
public APIRequestGetSponsorTags requestFeaturedVideoField (boolean value) {
this.requestField("featured_video", value);
return this;
}
public APIRequestGetSponsorTags requestFeaturesField () {
return this.requestFeaturesField(true);
}
public APIRequestGetSponsorTags requestFeaturesField (boolean value) {
this.requestField("features", value);
return this;
}
public APIRequestGetSponsorTags requestFollowersCountField () {
return this.requestFollowersCountField(true);
}
public APIRequestGetSponsorTags requestFollowersCountField (boolean value) {
this.requestField("followers_count", value);
return this;
}
public APIRequestGetSponsorTags requestFoodStylesField () {
return this.requestFoodStylesField(true);
}
public APIRequestGetSponsorTags requestFoodStylesField (boolean value) {
this.requestField("food_styles", value);
return this;
}
public APIRequestGetSponsorTags requestFoundedField () {
return this.requestFoundedField(true);
}
public APIRequestGetSponsorTags requestFoundedField (boolean value) {
this.requestField("founded", value);
return this;
}
public APIRequestGetSponsorTags requestGeneralInfoField () {
return this.requestGeneralInfoField(true);
}
public APIRequestGetSponsorTags requestGeneralInfoField (boolean value) {
this.requestField("general_info", value);
return this;
}
public APIRequestGetSponsorTags requestGeneralManagerField () {
return this.requestGeneralManagerField(true);
}
public APIRequestGetSponsorTags requestGeneralManagerField (boolean value) {
this.requestField("general_manager", value);
return this;
}
public APIRequestGetSponsorTags requestGenreField () {
return this.requestGenreField(true);
}
public APIRequestGetSponsorTags requestGenreField (boolean value) {
this.requestField("genre", value);
return this;
}
public APIRequestGetSponsorTags requestGlobalBrandPageNameField () {
return this.requestGlobalBrandPageNameField(true);
}
public APIRequestGetSponsorTags requestGlobalBrandPageNameField (boolean value) {
this.requestField("global_brand_page_name", value);
return this;
}
public APIRequestGetSponsorTags requestGlobalBrandRootIdField () {
return this.requestGlobalBrandRootIdField(true);
}
public APIRequestGetSponsorTags requestGlobalBrandRootIdField (boolean value) {
this.requestField("global_brand_root_id", value);
return this;
}
public APIRequestGetSponsorTags requestHasAddedAppField () {
return this.requestHasAddedAppField(true);
}
public APIRequestGetSponsorTags requestHasAddedAppField (boolean value) {
this.requestField("has_added_app", value);
return this;
}
public APIRequestGetSponsorTags requestHasLeadAccessField () {
return this.requestHasLeadAccessField(true);
}
public APIRequestGetSponsorTags requestHasLeadAccessField (boolean value) {
this.requestField("has_lead_access", value);
return this;
}
public APIRequestGetSponsorTags requestHasTransitionedToNewPageExperienceField () {
return this.requestHasTransitionedToNewPageExperienceField(true);
}
public APIRequestGetSponsorTags requestHasTransitionedToNewPageExperienceField (boolean value) {
this.requestField("has_transitioned_to_new_page_experience", value);
return this;
}
public APIRequestGetSponsorTags requestHasWhatsappBusinessNumberField () {
return this.requestHasWhatsappBusinessNumberField(true);
}
public APIRequestGetSponsorTags requestHasWhatsappBusinessNumberField (boolean value) {
this.requestField("has_whatsapp_business_number", value);
return this;
}
public APIRequestGetSponsorTags requestHasWhatsappNumberField () {
return this.requestHasWhatsappNumberField(true);
}
public APIRequestGetSponsorTags requestHasWhatsappNumberField (boolean value) {
this.requestField("has_whatsapp_number", value);
return this;
}
public APIRequestGetSponsorTags requestHometownField () {
return this.requestHometownField(true);
}
public APIRequestGetSponsorTags requestHometownField (boolean value) {
this.requestField("hometown", value);
return this;
}
public APIRequestGetSponsorTags requestHoursField () {
return this.requestHoursField(true);
}
public APIRequestGetSponsorTags requestHoursField (boolean value) {
this.requestField("hours", value);
return this;
}
public APIRequestGetSponsorTags requestIdField () {
return this.requestIdField(true);
}
public APIRequestGetSponsorTags requestIdField (boolean value) {
this.requestField("id", value);
return this;
}
public APIRequestGetSponsorTags requestImpressumField () {
return this.requestImpressumField(true);
}
public APIRequestGetSponsorTags requestImpressumField (boolean value) {
this.requestField("impressum", value);
return this;
}
public APIRequestGetSponsorTags requestInfluencesField () {
return this.requestInfluencesField(true);
}
public APIRequestGetSponsorTags requestInfluencesField (boolean value) {
this.requestField("influences", value);
return this;
}
public APIRequestGetSponsorTags requestInstagramBusinessAccountField () {
return this.requestInstagramBusinessAccountField(true);
}
public APIRequestGetSponsorTags requestInstagramBusinessAccountField (boolean value) {
this.requestField("instagram_business_account", value);
return this;
}
public APIRequestGetSponsorTags requestIsAlwaysOpenField () {
return this.requestIsAlwaysOpenField(true);
}
public APIRequestGetSponsorTags requestIsAlwaysOpenField (boolean value) {
this.requestField("is_always_open", value);
return this;
}
public APIRequestGetSponsorTags requestIsCallingEligibleField () {
return this.requestIsCallingEligibleField(true);
}
public APIRequestGetSponsorTags requestIsCallingEligibleField (boolean value) {
this.requestField("is_calling_eligible", value);
return this;
}
public APIRequestGetSponsorTags requestIsChainField () {
return this.requestIsChainField(true);
}
public APIRequestGetSponsorTags requestIsChainField (boolean value) {
this.requestField("is_chain", value);
return this;
}
public APIRequestGetSponsorTags requestIsCommunityPageField () {
return this.requestIsCommunityPageField(true);
}
public APIRequestGetSponsorTags requestIsCommunityPageField (boolean value) {
this.requestField("is_community_page", value);
return this;
}
public APIRequestGetSponsorTags requestIsEligibleForBrandedContentField () {
return this.requestIsEligibleForBrandedContentField(true);
}
public APIRequestGetSponsorTags requestIsEligibleForBrandedContentField (boolean value) {
this.requestField("is_eligible_for_branded_content", value);
return this;
}
public APIRequestGetSponsorTags requestIsEligibleForDisableConnectIgBtnForNonPageAdminAmWebField () {
return this.requestIsEligibleForDisableConnectIgBtnForNonPageAdminAmWebField(true);
}
public APIRequestGetSponsorTags requestIsEligibleForDisableConnectIgBtnForNonPageAdminAmWebField (boolean value) {
this.requestField("is_eligible_for_disable_connect_ig_btn_for_non_page_admin_am_web", value);
return this;
}
public APIRequestGetSponsorTags requestIsMessengerBotGetStartedEnabledField () {
return this.requestIsMessengerBotGetStartedEnabledField(true);
}
public APIRequestGetSponsorTags requestIsMessengerBotGetStartedEnabledField (boolean value) {
this.requestField("is_messenger_bot_get_started_enabled", value);
return this;
}
public APIRequestGetSponsorTags requestIsMessengerPlatformBotField () {
return this.requestIsMessengerPlatformBotField(true);
}
public APIRequestGetSponsorTags requestIsMessengerPlatformBotField (boolean value) {
this.requestField("is_messenger_platform_bot", value);
return this;
}
public APIRequestGetSponsorTags requestIsOwnedField () {
return this.requestIsOwnedField(true);
}
public APIRequestGetSponsorTags requestIsOwnedField (boolean value) {
this.requestField("is_owned", value);
return this;
}
public APIRequestGetSponsorTags requestIsPermanentlyClosedField () {
return this.requestIsPermanentlyClosedField(true);
}
public APIRequestGetSponsorTags requestIsPermanentlyClosedField (boolean value) {
this.requestField("is_permanently_closed", value);
return this;
}
public APIRequestGetSponsorTags requestIsPublishedField () {
return this.requestIsPublishedField(true);
}
public APIRequestGetSponsorTags requestIsPublishedField (boolean value) {
this.requestField("is_published", value);
return this;
}
public APIRequestGetSponsorTags requestIsUnclaimedField () {
return this.requestIsUnclaimedField(true);
}
public APIRequestGetSponsorTags requestIsUnclaimedField (boolean value) {
this.requestField("is_unclaimed", value);
return this;
}
public APIRequestGetSponsorTags requestIsVerifiedField () {
return this.requestIsVerifiedField(true);
}
public APIRequestGetSponsorTags requestIsVerifiedField (boolean value) {
this.requestField("is_verified", value);
return this;
}
public APIRequestGetSponsorTags requestIsWebhooksSubscribedField () {
return this.requestIsWebhooksSubscribedField(true);
}
public APIRequestGetSponsorTags requestIsWebhooksSubscribedField (boolean value) {
this.requestField("is_webhooks_subscribed", value);
return this;
}
public APIRequestGetSponsorTags requestKeywordsField () {
return this.requestKeywordsField(true);
}
public APIRequestGetSponsorTags requestKeywordsField (boolean value) {
this.requestField("keywords", value);
return this;
}
public APIRequestGetSponsorTags requestLeadgenTosAcceptanceTimeField () {
return this.requestLeadgenTosAcceptanceTimeField(true);
}
public APIRequestGetSponsorTags requestLeadgenTosAcceptanceTimeField (boolean value) {
this.requestField("leadgen_tos_acceptance_time", value);
return this;
}
public APIRequestGetSponsorTags requestLeadgenTosAcceptedField () {
return this.requestLeadgenTosAcceptedField(true);
}
public APIRequestGetSponsorTags requestLeadgenTosAcceptedField (boolean value) {
this.requestField("leadgen_tos_accepted", value);
return this;
}
public APIRequestGetSponsorTags requestLeadgenTosAcceptingUserField () {
return this.requestLeadgenTosAcceptingUserField(true);
}
public APIRequestGetSponsorTags requestLeadgenTosAcceptingUserField (boolean value) {
this.requestField("leadgen_tos_accepting_user", value);
return this;
}
public APIRequestGetSponsorTags requestLinkField () {
return this.requestLinkField(true);
}
public APIRequestGetSponsorTags requestLinkField (boolean value) {
this.requestField("link", value);
return this;
}
public APIRequestGetSponsorTags requestLocationField () {
return this.requestLocationField(true);
}
public APIRequestGetSponsorTags requestLocationField (boolean value) {
this.requestField("location", value);
return this;
}
public APIRequestGetSponsorTags requestMembersField () {
return this.requestMembersField(true);
}
public APIRequestGetSponsorTags requestMembersField (boolean value) {
this.requestField("members", value);
return this;
}
public APIRequestGetSponsorTags requestMerchantIdField () {
return this.requestMerchantIdField(true);
}
public APIRequestGetSponsorTags requestMerchantIdField (boolean value) {
this.requestField("merchant_id", value);
return this;
}
public APIRequestGetSponsorTags requestMerchantReviewStatusField () {
return this.requestMerchantReviewStatusField(true);
}
public APIRequestGetSponsorTags requestMerchantReviewStatusField (boolean value) {
this.requestField("merchant_review_status", value);
return this;
}
public APIRequestGetSponsorTags requestMessagingFeatureStatusField () {
return this.requestMessagingFeatureStatusField(true);
}
public APIRequestGetSponsorTags requestMessagingFeatureStatusField (boolean value) {
this.requestField("messaging_feature_status", value);
return this;
}
public APIRequestGetSponsorTags requestMessengerAdsDefaultIcebreakersField () {
return this.requestMessengerAdsDefaultIcebreakersField(true);
}
public APIRequestGetSponsorTags requestMessengerAdsDefaultIcebreakersField (boolean value) {
this.requestField("messenger_ads_default_icebreakers", value);
return this;
}
public APIRequestGetSponsorTags requestMessengerAdsDefaultQuickRepliesField () {
return this.requestMessengerAdsDefaultQuickRepliesField(true);
}
public APIRequestGetSponsorTags requestMessengerAdsDefaultQuickRepliesField (boolean value) {
this.requestField("messenger_ads_default_quick_replies", value);
return this;
}
public APIRequestGetSponsorTags requestMessengerAdsQuickRepliesTypeField () {
return this.requestMessengerAdsQuickRepliesTypeField(true);
}
public APIRequestGetSponsorTags requestMessengerAdsQuickRepliesTypeField (boolean value) {
this.requestField("messenger_ads_quick_replies_type", value);
return this;
}
public APIRequestGetSponsorTags requestMiniShopStorefrontField () {
return this.requestMiniShopStorefrontField(true);
}
public APIRequestGetSponsorTags requestMiniShopStorefrontField (boolean value) {
this.requestField("mini_shop_storefront", value);
return this;
}
public APIRequestGetSponsorTags requestMissionField () {
return this.requestMissionField(true);
}
public APIRequestGetSponsorTags requestMissionField (boolean value) {
this.requestField("mission", value);
return this;
}
public APIRequestGetSponsorTags requestMpgField () {
return this.requestMpgField(true);
}
public APIRequestGetSponsorTags requestMpgField (boolean value) {
this.requestField("mpg", value);
return this;
}
public APIRequestGetSponsorTags requestNameField () {
return this.requestNameField(true);
}
public APIRequestGetSponsorTags requestNameField (boolean value) {
this.requestField("name", value);
return this;
}
public APIRequestGetSponsorTags requestNameWithLocationDescriptorField () {
return this.requestNameWithLocationDescriptorField(true);
}
public APIRequestGetSponsorTags requestNameWithLocationDescriptorField (boolean value) {
this.requestField("name_with_location_descriptor", value);
return this;
}
public APIRequestGetSponsorTags requestNetworkField () {
return this.requestNetworkField(true);
}
public APIRequestGetSponsorTags requestNetworkField (boolean value) {
this.requestField("network", value);
return this;
}
public APIRequestGetSponsorTags requestNewLikeCountField () {
return this.requestNewLikeCountField(true);
}
public APIRequestGetSponsorTags requestNewLikeCountField (boolean value) {
this.requestField("new_like_count", value);
return this;
}
public APIRequestGetSponsorTags requestOfferEligibleField () {
return this.requestOfferEligibleField(true);
}
public APIRequestGetSponsorTags requestOfferEligibleField (boolean value) {
this.requestField("offer_eligible", value);
return this;
}
public APIRequestGetSponsorTags requestOverallStarRatingField () {
return this.requestOverallStarRatingField(true);
}
public APIRequestGetSponsorTags requestOverallStarRatingField (boolean value) {
this.requestField("overall_star_rating", value);
return this;
}
public APIRequestGetSponsorTags requestOwnerBusinessField () {
return this.requestOwnerBusinessField(true);
}
public APIRequestGetSponsorTags requestOwnerBusinessField (boolean value) {
this.requestField("owner_business", value);
return this;
}
public APIRequestGetSponsorTags requestPageTokenField () {
return this.requestPageTokenField(true);
}
public APIRequestGetSponsorTags requestPageTokenField (boolean value) {
this.requestField("page_token", value);
return this;
}
public APIRequestGetSponsorTags requestParentPageField () {
return this.requestParentPageField(true);
}
public APIRequestGetSponsorTags requestParentPageField (boolean value) {
this.requestField("parent_page", value);
return this;
}
public APIRequestGetSponsorTags requestParkingField () {
return this.requestParkingField(true);
}
public APIRequestGetSponsorTags requestParkingField (boolean value) {
this.requestField("parking", value);
return this;
}
public APIRequestGetSponsorTags requestPaymentOptionsField () {
return this.requestPaymentOptionsField(true);
}
public APIRequestGetSponsorTags requestPaymentOptionsField (boolean value) {
this.requestField("payment_options", value);
return this;
}
public APIRequestGetSponsorTags requestPersonalInfoField () {
return this.requestPersonalInfoField(true);
}
public APIRequestGetSponsorTags requestPersonalInfoField (boolean value) {
this.requestField("personal_info", value);
return this;
}
public APIRequestGetSponsorTags requestPersonalInterestsField () {
return this.requestPersonalInterestsField(true);
}
public APIRequestGetSponsorTags requestPersonalInterestsField (boolean value) {
this.requestField("personal_interests", value);
return this;
}
public APIRequestGetSponsorTags requestPharmaSafetyInfoField () {
return this.requestPharmaSafetyInfoField(true);
}
public APIRequestGetSponsorTags requestPharmaSafetyInfoField (boolean value) {
this.requestField("pharma_safety_info", value);
return this;
}
public APIRequestGetSponsorTags requestPhoneField () {
return this.requestPhoneField(true);
}
public APIRequestGetSponsorTags requestPhoneField (boolean value) {
this.requestField("phone", value);
return this;
}
public APIRequestGetSponsorTags requestPickupOptionsField () {
return this.requestPickupOptionsField(true);
}
public APIRequestGetSponsorTags requestPickupOptionsField (boolean value) {
this.requestField("pickup_options", value);
return this;
}
public APIRequestGetSponsorTags requestPlaceTypeField () {
return this.requestPlaceTypeField(true);
}
public APIRequestGetSponsorTags requestPlaceTypeField (boolean value) {
this.requestField("place_type", value);
return this;
}
public APIRequestGetSponsorTags requestPlotOutlineField () {
return this.requestPlotOutlineField(true);
}
public APIRequestGetSponsorTags requestPlotOutlineField (boolean value) {
this.requestField("plot_outline", value);
return this;
}
public APIRequestGetSponsorTags requestPreferredAudienceField () {
return this.requestPreferredAudienceField(true);
}
public APIRequestGetSponsorTags requestPreferredAudienceField (boolean value) {
this.requestField("preferred_audience", value);
return this;
}
public APIRequestGetSponsorTags requestPressContactField () {
return this.requestPressContactField(true);
}
public APIRequestGetSponsorTags requestPressContactField (boolean value) {
this.requestField("press_contact", value);
return this;
}
public APIRequestGetSponsorTags requestPriceRangeField () {
return this.requestPriceRangeField(true);
}
public APIRequestGetSponsorTags requestPriceRangeField (boolean value) {
this.requestField("price_range", value);
return this;
}
public APIRequestGetSponsorTags requestPrivacyInfoUrlField () {
return this.requestPrivacyInfoUrlField(true);
}
public APIRequestGetSponsorTags requestPrivacyInfoUrlField (boolean value) {
this.requestField("privacy_info_url", value);
return this;
}
public APIRequestGetSponsorTags requestProducedByField () {
return this.requestProducedByField(true);
}
public APIRequestGetSponsorTags requestProducedByField (boolean value) {
this.requestField("produced_by", value);
return this;
}
public APIRequestGetSponsorTags requestProductsField () {
return this.requestProductsField(true);
}
public APIRequestGetSponsorTags requestProductsField (boolean value) {
this.requestField("products", value);
return this;
}
public APIRequestGetSponsorTags requestPromotionEligibleField () {
return this.requestPromotionEligibleField(true);
}
public APIRequestGetSponsorTags requestPromotionEligibleField (boolean value) {
this.requestField("promotion_eligible", value);
return this;
}
public APIRequestGetSponsorTags requestPromotionIneligibleReasonField () {
return this.requestPromotionIneligibleReasonField(true);
}
public APIRequestGetSponsorTags requestPromotionIneligibleReasonField (boolean value) {
this.requestField("promotion_ineligible_reason", value);
return this;
}
public APIRequestGetSponsorTags requestPublicTransitField () {
return this.requestPublicTransitField(true);
}
public APIRequestGetSponsorTags requestPublicTransitField (boolean value) {
this.requestField("public_transit", value);
return this;
}
public APIRequestGetSponsorTags requestRatingCountField () {
return this.requestRatingCountField(true);
}
public APIRequestGetSponsorTags requestRatingCountField (boolean value) {
this.requestField("rating_count", value);
return this;
}
public APIRequestGetSponsorTags requestRecipientField () {
return this.requestRecipientField(true);
}
public APIRequestGetSponsorTags requestRecipientField (boolean value) {
this.requestField("recipient", value);
return this;
}
public APIRequestGetSponsorTags requestRecordLabelField () {
return this.requestRecordLabelField(true);
}
public APIRequestGetSponsorTags requestRecordLabelField (boolean value) {
this.requestField("record_label", value);
return this;
}
public APIRequestGetSponsorTags requestReleaseDateField () {
return this.requestReleaseDateField(true);
}
public APIRequestGetSponsorTags requestReleaseDateField (boolean value) {
this.requestField("release_date", value);
return this;
}
public APIRequestGetSponsorTags requestRestaurantServicesField () {
return this.requestRestaurantServicesField(true);
}
public APIRequestGetSponsorTags requestRestaurantServicesField (boolean value) {
this.requestField("restaurant_services", value);
return this;
}
public APIRequestGetSponsorTags requestRestaurantSpecialtiesField () {
return this.requestRestaurantSpecialtiesField(true);
}
public APIRequestGetSponsorTags requestRestaurantSpecialtiesField (boolean value) {
this.requestField("restaurant_specialties", value);
return this;
}
public APIRequestGetSponsorTags requestScheduleField () {
return this.requestScheduleField(true);
}
public APIRequestGetSponsorTags requestScheduleField (boolean value) {
this.requestField("schedule", value);
return this;
}
public APIRequestGetSponsorTags requestScreenplayByField () {
return this.requestScreenplayByField(true);
}
public APIRequestGetSponsorTags requestScreenplayByField (boolean value) {
this.requestField("screenplay_by", value);
return this;
}
public APIRequestGetSponsorTags requestSeasonField () {
return this.requestSeasonField(true);
}
public APIRequestGetSponsorTags requestSeasonField (boolean value) {
this.requestField("season", value);
return this;
}
public APIRequestGetSponsorTags requestSingleLineAddressField () {
return this.requestSingleLineAddressField(true);
}
public APIRequestGetSponsorTags requestSingleLineAddressField (boolean value) {
this.requestField("single_line_address", value);
return this;
}
public APIRequestGetSponsorTags requestStarringField () {
return this.requestStarringField(true);
}
public APIRequestGetSponsorTags requestStarringField (boolean value) {
this.requestField("starring", value);
return this;
}
public APIRequestGetSponsorTags requestStartInfoField () {
return this.requestStartInfoField(true);
}
public APIRequestGetSponsorTags requestStartInfoField (boolean value) {
this.requestField("start_info", value);
return this;
}
public APIRequestGetSponsorTags requestStoreCodeField () {
return this.requestStoreCodeField(true);
}
public APIRequestGetSponsorTags requestStoreCodeField (boolean value) {
this.requestField("store_code", value);
return this;
}
public APIRequestGetSponsorTags requestStoreLocationDescriptorField () {
return this.requestStoreLocationDescriptorField(true);
}
public APIRequestGetSponsorTags requestStoreLocationDescriptorField (boolean value) {
this.requestField("store_location_descriptor", value);
return this;
}
public APIRequestGetSponsorTags requestStoreNumberField () {
return this.requestStoreNumberField(true);
}
public APIRequestGetSponsorTags requestStoreNumberField (boolean value) {
this.requestField("store_number", value);
return this;
}
public APIRequestGetSponsorTags requestStudioField () {
return this.requestStudioField(true);
}
public APIRequestGetSponsorTags requestStudioField (boolean value) {
this.requestField("studio", value);
return this;
}
public APIRequestGetSponsorTags requestSupportsDonateButtonInLiveVideoField () {
return this.requestSupportsDonateButtonInLiveVideoField(true);
}
public APIRequestGetSponsorTags requestSupportsDonateButtonInLiveVideoField (boolean value) {
this.requestField("supports_donate_button_in_live_video", value);
return this;
}
public APIRequestGetSponsorTags requestTalkingAboutCountField () {
return this.requestTalkingAboutCountField(true);
}
public APIRequestGetSponsorTags requestTalkingAboutCountField (boolean value) {
this.requestField("talking_about_count", value);
return this;
}
public APIRequestGetSponsorTags requestTemporaryStatusField () {
return this.requestTemporaryStatusField(true);
}
public APIRequestGetSponsorTags requestTemporaryStatusField (boolean value) {
this.requestField("temporary_status", value);
return this;
}
public APIRequestGetSponsorTags requestUnreadMessageCountField () {
return this.requestUnreadMessageCountField(true);
}
public APIRequestGetSponsorTags requestUnreadMessageCountField (boolean value) {
this.requestField("unread_message_count", value);
return this;
}
public APIRequestGetSponsorTags requestUnreadNotifCountField () {
return this.requestUnreadNotifCountField(true);
}
public APIRequestGetSponsorTags requestUnreadNotifCountField (boolean value) {
this.requestField("unread_notif_count", value);
return this;
}
public APIRequestGetSponsorTags requestUnseenMessageCountField () {
return this.requestUnseenMessageCountField(true);
}
public APIRequestGetSponsorTags requestUnseenMessageCountField (boolean value) {
this.requestField("unseen_message_count", value);
return this;
}
public APIRequestGetSponsorTags requestUserAccessExpireTimeField () {
return this.requestUserAccessExpireTimeField(true);
}
public APIRequestGetSponsorTags requestUserAccessExpireTimeField (boolean value) {
this.requestField("user_access_expire_time", value);
return this;
}
public APIRequestGetSponsorTags requestUsernameField () {
return this.requestUsernameField(true);
}
public APIRequestGetSponsorTags requestUsernameField (boolean value) {
this.requestField("username", value);
return this;
}
public APIRequestGetSponsorTags requestVerificationStatusField () {
return this.requestVerificationStatusField(true);
}
public APIRequestGetSponsorTags requestVerificationStatusField (boolean value) {
this.requestField("verification_status", value);
return this;
}
public APIRequestGetSponsorTags requestVoipInfoField () {
return this.requestVoipInfoField(true);
}
public APIRequestGetSponsorTags requestVoipInfoField (boolean value) {
this.requestField("voip_info", value);
return this;
}
public APIRequestGetSponsorTags requestWebsiteField () {
return this.requestWebsiteField(true);
}
public APIRequestGetSponsorTags requestWebsiteField (boolean value) {
this.requestField("website", value);
return this;
}
public APIRequestGetSponsorTags requestWereHereCountField () {
return this.requestWereHereCountField(true);
}
public APIRequestGetSponsorTags requestWereHereCountField (boolean value) {
this.requestField("were_here_count", value);
return this;
}
public APIRequestGetSponsorTags requestWhatsappNumberField () {
return this.requestWhatsappNumberField(true);
}
public APIRequestGetSponsorTags requestWhatsappNumberField (boolean value) {
this.requestField("whatsapp_number", value);
return this;
}
public APIRequestGetSponsorTags requestWrittenByField () {
return this.requestWrittenByField(true);
}
public APIRequestGetSponsorTags requestWrittenByField (boolean value) {
this.requestField("written_by", value);
return this;
}
}
public static class APIRequestGetTo extends APIRequest {
APINodeList lastResponse = null;
@Override
public APINodeList getLastResponse() {
return lastResponse;
}
public static final String[] PARAMS = {
};
public static final String[] FIELDS = {
"can_post",
"id",
"link",
"name",
"pic",
"pic_crop",
"pic_large",
"pic_small",
"pic_square",
"profile_type",
"username",
};
@Override
public APINodeList parseResponse(String response, String header) throws APIException {
return Profile.parseResponse(response, getContext(), this, header);
}
@Override
public APINodeList execute() throws APIException {
return execute(new HashMap());
}
@Override
public APINodeList execute(Map extraParams) throws APIException {
ResponseWrapper rw = executeInternal(extraParams);
lastResponse = parseResponse(rw.getBody(),rw.getHeader());
return lastResponse;
}
public ListenableFuture> executeAsync() throws APIException {
return executeAsync(new HashMap());
};
public ListenableFuture> executeAsync(Map extraParams) throws APIException {
return Futures.transform(
executeAsyncInternal(extraParams),
new Function>() {
public APINodeList apply(ResponseWrapper result) {
try {
return APIRequestGetTo.this.parseResponse(result.getBody(), result.getHeader());
} catch (Exception e) {
throw new RuntimeException(e);
}
}
},
MoreExecutors.directExecutor()
);
};
public APIRequestGetTo(String nodeId, APIContext context) {
super(context, nodeId, "/to", "GET", Arrays.asList(PARAMS));
}
@Override
public APIRequestGetTo setParam(String param, Object value) {
setParamInternal(param, value);
return this;
}
@Override
public APIRequestGetTo setParams(Map params) {
setParamsInternal(params);
return this;
}
public APIRequestGetTo requestAllFields () {
return this.requestAllFields(true);
}
public APIRequestGetTo requestAllFields (boolean value) {
for (String field : FIELDS) {
this.requestField(field, value);
}
return this;
}
@Override
public APIRequestGetTo requestFields (List fields) {
return this.requestFields(fields, true);
}
@Override
public APIRequestGetTo requestFields (List fields, boolean value) {
for (String field : fields) {
this.requestField(field, value);
}
return this;
}
@Override
public APIRequestGetTo requestField (String field) {
this.requestField(field, true);
return this;
}
@Override
public APIRequestGetTo requestField (String field, boolean value) {
this.requestFieldInternal(field, value);
return this;
}
public APIRequestGetTo requestCanPostField () {
return this.requestCanPostField(true);
}
public APIRequestGetTo requestCanPostField (boolean value) {
this.requestField("can_post", value);
return this;
}
public APIRequestGetTo requestIdField () {
return this.requestIdField(true);
}
public APIRequestGetTo requestIdField (boolean value) {
this.requestField("id", value);
return this;
}
public APIRequestGetTo requestLinkField () {
return this.requestLinkField(true);
}
public APIRequestGetTo requestLinkField (boolean value) {
this.requestField("link", value);
return this;
}
public APIRequestGetTo requestNameField () {
return this.requestNameField(true);
}
public APIRequestGetTo requestNameField (boolean value) {
this.requestField("name", value);
return this;
}
public APIRequestGetTo requestPicField () {
return this.requestPicField(true);
}
public APIRequestGetTo requestPicField (boolean value) {
this.requestField("pic", value);
return this;
}
public APIRequestGetTo requestPicCropField () {
return this.requestPicCropField(true);
}
public APIRequestGetTo requestPicCropField (boolean value) {
this.requestField("pic_crop", value);
return this;
}
public APIRequestGetTo requestPicLargeField () {
return this.requestPicLargeField(true);
}
public APIRequestGetTo requestPicLargeField (boolean value) {
this.requestField("pic_large", value);
return this;
}
public APIRequestGetTo requestPicSmallField () {
return this.requestPicSmallField(true);
}
public APIRequestGetTo requestPicSmallField (boolean value) {
this.requestField("pic_small", value);
return this;
}
public APIRequestGetTo requestPicSquareField () {
return this.requestPicSquareField(true);
}
public APIRequestGetTo requestPicSquareField (boolean value) {
this.requestField("pic_square", value);
return this;
}
public APIRequestGetTo requestProfileTypeField () {
return this.requestProfileTypeField(true);
}
public APIRequestGetTo requestProfileTypeField (boolean value) {
this.requestField("profile_type", value);
return this;
}
public APIRequestGetTo requestUsernameField () {
return this.requestUsernameField(true);
}
public APIRequestGetTo requestUsernameField (boolean value) {
this.requestField("username", value);
return this;
}
}
public static class APIRequestDelete extends APIRequest {
APINode lastResponse = null;
@Override
public APINode getLastResponse() {
return lastResponse;
}
public static final String[] PARAMS = {
};
public static final String[] FIELDS = {
};
@Override
public APINode parseResponse(String response, String header) throws APIException {
return APINode.parseResponse(response, getContext(), this, header).head();
}
@Override
public APINode execute() throws APIException {
return execute(new HashMap());
}
@Override
public APINode execute(Map extraParams) throws APIException {
ResponseWrapper rw = executeInternal(extraParams);
lastResponse = parseResponse(rw.getBody(), rw.getHeader());
return lastResponse;
}
public ListenableFuture executeAsync() throws APIException {
return executeAsync(new HashMap());
};
public ListenableFuture executeAsync(Map extraParams) throws APIException {
return Futures.transform(
executeAsyncInternal(extraParams),
new Function() {
public APINode apply(ResponseWrapper result) {
try {
return APIRequestDelete.this.parseResponse(result.getBody(), result.getHeader());
} catch (Exception e) {
throw new RuntimeException(e);
}
}
},
MoreExecutors.directExecutor()
);
};
public APIRequestDelete(String nodeId, APIContext context) {
super(context, nodeId, "/", "DELETE", Arrays.asList(PARAMS));
}
@Override
public APIRequestDelete setParam(String param, Object value) {
setParamInternal(param, value);
return this;
}
@Override
public APIRequestDelete setParams(Map params) {
setParamsInternal(params);
return this;
}
public APIRequestDelete requestAllFields () {
return this.requestAllFields(true);
}
public APIRequestDelete requestAllFields (boolean value) {
for (String field : FIELDS) {
this.requestField(field, value);
}
return this;
}
@Override
public APIRequestDelete requestFields (List fields) {
return this.requestFields(fields, true);
}
@Override
public APIRequestDelete requestFields (List fields, boolean value) {
for (String field : fields) {
this.requestField(field, value);
}
return this;
}
@Override
public APIRequestDelete requestField (String field) {
this.requestField(field, true);
return this;
}
@Override
public APIRequestDelete requestField (String field, boolean value) {
this.requestFieldInternal(field, value);
return this;
}
}
public static class APIRequestGet extends APIRequest {
PagePost lastResponse = null;
@Override
public PagePost getLastResponse() {
return lastResponse;
}
public static final String[] PARAMS = {
"primary_fb_page_id",
"primary_ig_user_id",
};
public static final String[] FIELDS = {
"actions",
"admin_creator",
"allowed_advertising_objectives",
"application",
"backdated_time",
"call_to_action",
"can_reply_privately",
"child_attachments",
"comments_mirroring_domain",
"coordinates",
"created_time",
"event",
"expanded_height",
"expanded_width",
"feed_targeting",
"from",
"full_picture",
"height",
"icon",
"id",
"instagram_eligibility",
"is_app_share",
"is_eligible_for_promotion",
"is_expired",
"is_hidden",
"is_inline_created",
"is_instagram_eligible",
"is_popular",
"is_published",
"is_spherical",
"message",
"message_tags",
"multi_share_end_card",
"multi_share_optimized",
"parent_id",
"permalink_url",
"picture",
"place",
"privacy",
"promotable_id",
"promotion_status",
"properties",
"scheduled_publish_time",
"shares",
"status_type",
"story",
"story_tags",
"subscribed",
"target",
"targeting",
"timeline_visibility",
"updated_time",
"via",
"video_buying_eligibility",
"width",
};
@Override
public PagePost parseResponse(String response, String header) throws APIException {
return PagePost.parseResponse(response, getContext(), this, header).head();
}
@Override
public PagePost execute() throws APIException {
return execute(new HashMap());
}
@Override
public PagePost execute(Map extraParams) throws APIException {
ResponseWrapper rw = executeInternal(extraParams);
lastResponse = parseResponse(rw.getBody(), rw.getHeader());
return lastResponse;
}
public ListenableFuture executeAsync() throws APIException {
return executeAsync(new HashMap());
};
public ListenableFuture executeAsync(Map extraParams) throws APIException {
return Futures.transform(
executeAsyncInternal(extraParams),
new Function() {
public PagePost apply(ResponseWrapper result) {
try {
return APIRequestGet.this.parseResponse(result.getBody(), result.getHeader());
} catch (Exception e) {
throw new RuntimeException(e);
}
}
},
MoreExecutors.directExecutor()
);
};
public APIRequestGet(String nodeId, APIContext context) {
super(context, nodeId, "/", "GET", Arrays.asList(PARAMS));
}
@Override
public APIRequestGet setParam(String param, Object value) {
setParamInternal(param, value);
return this;
}
@Override
public APIRequestGet setParams(Map params) {
setParamsInternal(params);
return this;
}
public APIRequestGet setPrimaryFbPageId (String primaryFbPageId) {
this.setParam("primary_fb_page_id", primaryFbPageId);
return this;
}
public APIRequestGet setPrimaryIgUserId (String primaryIgUserId) {
this.setParam("primary_ig_user_id", primaryIgUserId);
return this;
}
public APIRequestGet requestAllFields () {
return this.requestAllFields(true);
}
public APIRequestGet requestAllFields (boolean value) {
for (String field : FIELDS) {
this.requestField(field, value);
}
return this;
}
@Override
public APIRequestGet requestFields (List fields) {
return this.requestFields(fields, true);
}
@Override
public APIRequestGet requestFields (List fields, boolean value) {
for (String field : fields) {
this.requestField(field, value);
}
return this;
}
@Override
public APIRequestGet requestField (String field) {
this.requestField(field, true);
return this;
}
@Override
public APIRequestGet requestField (String field, boolean value) {
this.requestFieldInternal(field, value);
return this;
}
public APIRequestGet requestActionsField () {
return this.requestActionsField(true);
}
public APIRequestGet requestActionsField (boolean value) {
this.requestField("actions", value);
return this;
}
public APIRequestGet requestAdminCreatorField () {
return this.requestAdminCreatorField(true);
}
public APIRequestGet requestAdminCreatorField (boolean value) {
this.requestField("admin_creator", value);
return this;
}
public APIRequestGet requestAllowedAdvertisingObjectivesField () {
return this.requestAllowedAdvertisingObjectivesField(true);
}
public APIRequestGet requestAllowedAdvertisingObjectivesField (boolean value) {
this.requestField("allowed_advertising_objectives", value);
return this;
}
public APIRequestGet requestApplicationField () {
return this.requestApplicationField(true);
}
public APIRequestGet requestApplicationField (boolean value) {
this.requestField("application", value);
return this;
}
public APIRequestGet requestBackdatedTimeField () {
return this.requestBackdatedTimeField(true);
}
public APIRequestGet requestBackdatedTimeField (boolean value) {
this.requestField("backdated_time", value);
return this;
}
public APIRequestGet requestCallToActionField () {
return this.requestCallToActionField(true);
}
public APIRequestGet requestCallToActionField (boolean value) {
this.requestField("call_to_action", value);
return this;
}
public APIRequestGet requestCanReplyPrivatelyField () {
return this.requestCanReplyPrivatelyField(true);
}
public APIRequestGet requestCanReplyPrivatelyField (boolean value) {
this.requestField("can_reply_privately", value);
return this;
}
public APIRequestGet requestChildAttachmentsField () {
return this.requestChildAttachmentsField(true);
}
public APIRequestGet requestChildAttachmentsField (boolean value) {
this.requestField("child_attachments", value);
return this;
}
public APIRequestGet requestCommentsMirroringDomainField () {
return this.requestCommentsMirroringDomainField(true);
}
public APIRequestGet requestCommentsMirroringDomainField (boolean value) {
this.requestField("comments_mirroring_domain", value);
return this;
}
public APIRequestGet requestCoordinatesField () {
return this.requestCoordinatesField(true);
}
public APIRequestGet requestCoordinatesField (boolean value) {
this.requestField("coordinates", value);
return this;
}
public APIRequestGet requestCreatedTimeField () {
return this.requestCreatedTimeField(true);
}
public APIRequestGet requestCreatedTimeField (boolean value) {
this.requestField("created_time", value);
return this;
}
public APIRequestGet requestEventField () {
return this.requestEventField(true);
}
public APIRequestGet requestEventField (boolean value) {
this.requestField("event", value);
return this;
}
public APIRequestGet requestExpandedHeightField () {
return this.requestExpandedHeightField(true);
}
public APIRequestGet requestExpandedHeightField (boolean value) {
this.requestField("expanded_height", value);
return this;
}
public APIRequestGet requestExpandedWidthField () {
return this.requestExpandedWidthField(true);
}
public APIRequestGet requestExpandedWidthField (boolean value) {
this.requestField("expanded_width", value);
return this;
}
public APIRequestGet requestFeedTargetingField () {
return this.requestFeedTargetingField(true);
}
public APIRequestGet requestFeedTargetingField (boolean value) {
this.requestField("feed_targeting", value);
return this;
}
public APIRequestGet requestFromField () {
return this.requestFromField(true);
}
public APIRequestGet requestFromField (boolean value) {
this.requestField("from", value);
return this;
}
public APIRequestGet requestFullPictureField () {
return this.requestFullPictureField(true);
}
public APIRequestGet requestFullPictureField (boolean value) {
this.requestField("full_picture", value);
return this;
}
public APIRequestGet requestHeightField () {
return this.requestHeightField(true);
}
public APIRequestGet requestHeightField (boolean value) {
this.requestField("height", value);
return this;
}
public APIRequestGet requestIconField () {
return this.requestIconField(true);
}
public APIRequestGet requestIconField (boolean value) {
this.requestField("icon", value);
return this;
}
public APIRequestGet requestIdField () {
return this.requestIdField(true);
}
public APIRequestGet requestIdField (boolean value) {
this.requestField("id", value);
return this;
}
public APIRequestGet requestInstagramEligibilityField () {
return this.requestInstagramEligibilityField(true);
}
public APIRequestGet requestInstagramEligibilityField (boolean value) {
this.requestField("instagram_eligibility", value);
return this;
}
public APIRequestGet requestIsAppShareField () {
return this.requestIsAppShareField(true);
}
public APIRequestGet requestIsAppShareField (boolean value) {
this.requestField("is_app_share", value);
return this;
}
public APIRequestGet requestIsEligibleForPromotionField () {
return this.requestIsEligibleForPromotionField(true);
}
public APIRequestGet requestIsEligibleForPromotionField (boolean value) {
this.requestField("is_eligible_for_promotion", value);
return this;
}
public APIRequestGet requestIsExpiredField () {
return this.requestIsExpiredField(true);
}
public APIRequestGet requestIsExpiredField (boolean value) {
this.requestField("is_expired", value);
return this;
}
public APIRequestGet requestIsHiddenField () {
return this.requestIsHiddenField(true);
}
public APIRequestGet requestIsHiddenField (boolean value) {
this.requestField("is_hidden", value);
return this;
}
public APIRequestGet requestIsInlineCreatedField () {
return this.requestIsInlineCreatedField(true);
}
public APIRequestGet requestIsInlineCreatedField (boolean value) {
this.requestField("is_inline_created", value);
return this;
}
public APIRequestGet requestIsInstagramEligibleField () {
return this.requestIsInstagramEligibleField(true);
}
public APIRequestGet requestIsInstagramEligibleField (boolean value) {
this.requestField("is_instagram_eligible", value);
return this;
}
public APIRequestGet requestIsPopularField () {
return this.requestIsPopularField(true);
}
public APIRequestGet requestIsPopularField (boolean value) {
this.requestField("is_popular", value);
return this;
}
public APIRequestGet requestIsPublishedField () {
return this.requestIsPublishedField(true);
}
public APIRequestGet requestIsPublishedField (boolean value) {
this.requestField("is_published", value);
return this;
}
public APIRequestGet requestIsSphericalField () {
return this.requestIsSphericalField(true);
}
public APIRequestGet requestIsSphericalField (boolean value) {
this.requestField("is_spherical", value);
return this;
}
public APIRequestGet requestMessageField () {
return this.requestMessageField(true);
}
public APIRequestGet requestMessageField (boolean value) {
this.requestField("message", value);
return this;
}
public APIRequestGet requestMessageTagsField () {
return this.requestMessageTagsField(true);
}
public APIRequestGet requestMessageTagsField (boolean value) {
this.requestField("message_tags", value);
return this;
}
public APIRequestGet requestMultiShareEndCardField () {
return this.requestMultiShareEndCardField(true);
}
public APIRequestGet requestMultiShareEndCardField (boolean value) {
this.requestField("multi_share_end_card", value);
return this;
}
public APIRequestGet requestMultiShareOptimizedField () {
return this.requestMultiShareOptimizedField(true);
}
public APIRequestGet requestMultiShareOptimizedField (boolean value) {
this.requestField("multi_share_optimized", value);
return this;
}
public APIRequestGet requestParentIdField () {
return this.requestParentIdField(true);
}
public APIRequestGet requestParentIdField (boolean value) {
this.requestField("parent_id", value);
return this;
}
public APIRequestGet requestPermalinkUrlField () {
return this.requestPermalinkUrlField(true);
}
public APIRequestGet requestPermalinkUrlField (boolean value) {
this.requestField("permalink_url", value);
return this;
}
public APIRequestGet requestPictureField () {
return this.requestPictureField(true);
}
public APIRequestGet requestPictureField (boolean value) {
this.requestField("picture", value);
return this;
}
public APIRequestGet requestPlaceField () {
return this.requestPlaceField(true);
}
public APIRequestGet requestPlaceField (boolean value) {
this.requestField("place", value);
return this;
}
public APIRequestGet requestPrivacyField () {
return this.requestPrivacyField(true);
}
public APIRequestGet requestPrivacyField (boolean value) {
this.requestField("privacy", value);
return this;
}
public APIRequestGet requestPromotableIdField () {
return this.requestPromotableIdField(true);
}
public APIRequestGet requestPromotableIdField (boolean value) {
this.requestField("promotable_id", value);
return this;
}
public APIRequestGet requestPromotionStatusField () {
return this.requestPromotionStatusField(true);
}
public APIRequestGet requestPromotionStatusField (boolean value) {
this.requestField("promotion_status", value);
return this;
}
public APIRequestGet requestPropertiesField () {
return this.requestPropertiesField(true);
}
public APIRequestGet requestPropertiesField (boolean value) {
this.requestField("properties", value);
return this;
}
public APIRequestGet requestScheduledPublishTimeField () {
return this.requestScheduledPublishTimeField(true);
}
public APIRequestGet requestScheduledPublishTimeField (boolean value) {
this.requestField("scheduled_publish_time", value);
return this;
}
public APIRequestGet requestSharesField () {
return this.requestSharesField(true);
}
public APIRequestGet requestSharesField (boolean value) {
this.requestField("shares", value);
return this;
}
public APIRequestGet requestStatusTypeField () {
return this.requestStatusTypeField(true);
}
public APIRequestGet requestStatusTypeField (boolean value) {
this.requestField("status_type", value);
return this;
}
public APIRequestGet requestStoryField () {
return this.requestStoryField(true);
}
public APIRequestGet requestStoryField (boolean value) {
this.requestField("story", value);
return this;
}
public APIRequestGet requestStoryTagsField () {
return this.requestStoryTagsField(true);
}
public APIRequestGet requestStoryTagsField (boolean value) {
this.requestField("story_tags", value);
return this;
}
public APIRequestGet requestSubscribedField () {
return this.requestSubscribedField(true);
}
public APIRequestGet requestSubscribedField (boolean value) {
this.requestField("subscribed", value);
return this;
}
public APIRequestGet requestTargetField () {
return this.requestTargetField(true);
}
public APIRequestGet requestTargetField (boolean value) {
this.requestField("target", value);
return this;
}
public APIRequestGet requestTargetingField () {
return this.requestTargetingField(true);
}
public APIRequestGet requestTargetingField (boolean value) {
this.requestField("targeting", value);
return this;
}
public APIRequestGet requestTimelineVisibilityField () {
return this.requestTimelineVisibilityField(true);
}
public APIRequestGet requestTimelineVisibilityField (boolean value) {
this.requestField("timeline_visibility", value);
return this;
}
public APIRequestGet requestUpdatedTimeField () {
return this.requestUpdatedTimeField(true);
}
public APIRequestGet requestUpdatedTimeField (boolean value) {
this.requestField("updated_time", value);
return this;
}
public APIRequestGet requestViaField () {
return this.requestViaField(true);
}
public APIRequestGet requestViaField (boolean value) {
this.requestField("via", value);
return this;
}
public APIRequestGet requestVideoBuyingEligibilityField () {
return this.requestVideoBuyingEligibilityField(true);
}
public APIRequestGet requestVideoBuyingEligibilityField (boolean value) {
this.requestField("video_buying_eligibility", value);
return this;
}
public APIRequestGet requestWidthField () {
return this.requestWidthField(true);
}
public APIRequestGet requestWidthField (boolean value) {
this.requestField("width", value);
return this;
}
}
public static class APIRequestUpdate extends APIRequest {
PagePost lastResponse = null;
@Override
public PagePost getLastResponse() {
return lastResponse;
}
public static final String[] PARAMS = {
"attached_media",
"backdated_time",
"backdated_time_granularity",
"composer_session_id",
"direct_share_status",
"explicitly_added_mentionee_ids",
"feed_story_visibility",
"is_explicit_location",
"is_hidden",
"is_pinned",
"is_published",
"message",
"og_action_type_id",
"og_hide_object_attachment",
"og_icon_id",
"og_object_id",
"og_phrase",
"og_set_profile_badge",
"og_suggestion_mechanism",
"place",
"privacy",
"product_item",
"scheduled_publish_time",
"should_sync_product_edit",
"source_type",
"sponsor_id",
"sponsor_relationship",
"tags",
"text_format_preset_id",
"timeline_visibility",
"tracking",
};
public static final String[] FIELDS = {
};
@Override
public PagePost parseResponse(String response, String header) throws APIException {
return PagePost.parseResponse(response, getContext(), this, header).head();
}
@Override
public PagePost execute() throws APIException {
return execute(new HashMap());
}
@Override
public PagePost execute(Map extraParams) throws APIException {
ResponseWrapper rw = executeInternal(extraParams);
lastResponse = parseResponse(rw.getBody(), rw.getHeader());
return lastResponse;
}
public ListenableFuture executeAsync() throws APIException {
return executeAsync(new HashMap());
};
public ListenableFuture executeAsync(Map extraParams) throws APIException {
return Futures.transform(
executeAsyncInternal(extraParams),
new Function() {
public PagePost apply(ResponseWrapper result) {
try {
return APIRequestUpdate.this.parseResponse(result.getBody(), result.getHeader());
} catch (Exception e) {
throw new RuntimeException(e);
}
}
},
MoreExecutors.directExecutor()
);
};
public APIRequestUpdate(String nodeId, APIContext context) {
super(context, nodeId, "/", "POST", Arrays.asList(PARAMS));
}
@Override
public APIRequestUpdate setParam(String param, Object value) {
setParamInternal(param, value);
return this;
}
@Override
public APIRequestUpdate setParams(Map params) {
setParamsInternal(params);
return this;
}
public APIRequestUpdate setAttachedMedia (List attachedMedia) {
this.setParam("attached_media", attachedMedia);
return this;
}
public APIRequestUpdate setAttachedMedia (String attachedMedia) {
this.setParam("attached_media", attachedMedia);
return this;
}
public APIRequestUpdate setBackdatedTime (String backdatedTime) {
this.setParam("backdated_time", backdatedTime);
return this;
}
public APIRequestUpdate setBackdatedTimeGranularity (PagePost.EnumBackdatedTimeGranularity backdatedTimeGranularity) {
this.setParam("backdated_time_granularity", backdatedTimeGranularity);
return this;
}
public APIRequestUpdate setBackdatedTimeGranularity (String backdatedTimeGranularity) {
this.setParam("backdated_time_granularity", backdatedTimeGranularity);
return this;
}
public APIRequestUpdate setComposerSessionId (String composerSessionId) {
this.setParam("composer_session_id", composerSessionId);
return this;
}
public APIRequestUpdate setDirectShareStatus (Long directShareStatus) {
this.setParam("direct_share_status", directShareStatus);
return this;
}
public APIRequestUpdate setDirectShareStatus (String directShareStatus) {
this.setParam("direct_share_status", directShareStatus);
return this;
}
public APIRequestUpdate setExplicitlyAddedMentioneeIds (List explicitlyAddedMentioneeIds) {
this.setParam("explicitly_added_mentionee_ids", explicitlyAddedMentioneeIds);
return this;
}
public APIRequestUpdate setExplicitlyAddedMentioneeIds (String explicitlyAddedMentioneeIds) {
this.setParam("explicitly_added_mentionee_ids", explicitlyAddedMentioneeIds);
return this;
}
public APIRequestUpdate setFeedStoryVisibility (PagePost.EnumFeedStoryVisibility feedStoryVisibility) {
this.setParam("feed_story_visibility", feedStoryVisibility);
return this;
}
public APIRequestUpdate setFeedStoryVisibility (String feedStoryVisibility) {
this.setParam("feed_story_visibility", feedStoryVisibility);
return this;
}
public APIRequestUpdate setIsExplicitLocation (Boolean isExplicitLocation) {
this.setParam("is_explicit_location", isExplicitLocation);
return this;
}
public APIRequestUpdate setIsExplicitLocation (String isExplicitLocation) {
this.setParam("is_explicit_location", isExplicitLocation);
return this;
}
public APIRequestUpdate setIsHidden (Boolean isHidden) {
this.setParam("is_hidden", isHidden);
return this;
}
public APIRequestUpdate setIsHidden (String isHidden) {
this.setParam("is_hidden", isHidden);
return this;
}
public APIRequestUpdate setIsPinned (Boolean isPinned) {
this.setParam("is_pinned", isPinned);
return this;
}
public APIRequestUpdate setIsPinned (String isPinned) {
this.setParam("is_pinned", isPinned);
return this;
}
public APIRequestUpdate setIsPublished (Boolean isPublished) {
this.setParam("is_published", isPublished);
return this;
}
public APIRequestUpdate setIsPublished (String isPublished) {
this.setParam("is_published", isPublished);
return this;
}
public APIRequestUpdate setMessage (String message) {
this.setParam("message", message);
return this;
}
public APIRequestUpdate setOgActionTypeId (String ogActionTypeId) {
this.setParam("og_action_type_id", ogActionTypeId);
return this;
}
public APIRequestUpdate setOgHideObjectAttachment (Boolean ogHideObjectAttachment) {
this.setParam("og_hide_object_attachment", ogHideObjectAttachment);
return this;
}
public APIRequestUpdate setOgHideObjectAttachment (String ogHideObjectAttachment) {
this.setParam("og_hide_object_attachment", ogHideObjectAttachment);
return this;
}
public APIRequestUpdate setOgIconId (String ogIconId) {
this.setParam("og_icon_id", ogIconId);
return this;
}
public APIRequestUpdate setOgObjectId (String ogObjectId) {
this.setParam("og_object_id", ogObjectId);
return this;
}
public APIRequestUpdate setOgPhrase (String ogPhrase) {
this.setParam("og_phrase", ogPhrase);
return this;
}
public APIRequestUpdate setOgSetProfileBadge (Boolean ogSetProfileBadge) {
this.setParam("og_set_profile_badge", ogSetProfileBadge);
return this;
}
public APIRequestUpdate setOgSetProfileBadge (String ogSetProfileBadge) {
this.setParam("og_set_profile_badge", ogSetProfileBadge);
return this;
}
public APIRequestUpdate setOgSuggestionMechanism (String ogSuggestionMechanism) {
this.setParam("og_suggestion_mechanism", ogSuggestionMechanism);
return this;
}
public APIRequestUpdate setPlace (Object place) {
this.setParam("place", place);
return this;
}
public APIRequestUpdate setPlace (String place) {
this.setParam("place", place);
return this;
}
public APIRequestUpdate setPrivacy (String privacy) {
this.setParam("privacy", privacy);
return this;
}
public APIRequestUpdate setProductItem (Object productItem) {
this.setParam("product_item", productItem);
return this;
}
public APIRequestUpdate setProductItem (String productItem) {
this.setParam("product_item", productItem);
return this;
}
public APIRequestUpdate setScheduledPublishTime (Long scheduledPublishTime) {
this.setParam("scheduled_publish_time", scheduledPublishTime);
return this;
}
public APIRequestUpdate setScheduledPublishTime (String scheduledPublishTime) {
this.setParam("scheduled_publish_time", scheduledPublishTime);
return this;
}
public APIRequestUpdate setShouldSyncProductEdit (Boolean shouldSyncProductEdit) {
this.setParam("should_sync_product_edit", shouldSyncProductEdit);
return this;
}
public APIRequestUpdate setShouldSyncProductEdit (String shouldSyncProductEdit) {
this.setParam("should_sync_product_edit", shouldSyncProductEdit);
return this;
}
public APIRequestUpdate setSourceType (String sourceType) {
this.setParam("source_type", sourceType);
return this;
}
public APIRequestUpdate setSponsorId (String sponsorId) {
this.setParam("sponsor_id", sponsorId);
return this;
}
public APIRequestUpdate setSponsorRelationship (Long sponsorRelationship) {
this.setParam("sponsor_relationship", sponsorRelationship);
return this;
}
public APIRequestUpdate setSponsorRelationship (String sponsorRelationship) {
this.setParam("sponsor_relationship", sponsorRelationship);
return this;
}
public APIRequestUpdate setTags (List tags) {
this.setParam("tags", tags);
return this;
}
public APIRequestUpdate setTags (String tags) {
this.setParam("tags", tags);
return this;
}
public APIRequestUpdate setTextFormatPresetId (String textFormatPresetId) {
this.setParam("text_format_preset_id", textFormatPresetId);
return this;
}
public APIRequestUpdate setTimelineVisibility (PagePost.EnumTimelineVisibility timelineVisibility) {
this.setParam("timeline_visibility", timelineVisibility);
return this;
}
public APIRequestUpdate setTimelineVisibility (String timelineVisibility) {
this.setParam("timeline_visibility", timelineVisibility);
return this;
}
public APIRequestUpdate setTracking (String tracking) {
this.setParam("tracking", tracking);
return this;
}
public APIRequestUpdate requestAllFields () {
return this.requestAllFields(true);
}
public APIRequestUpdate requestAllFields (boolean value) {
for (String field : FIELDS) {
this.requestField(field, value);
}
return this;
}
@Override
public APIRequestUpdate requestFields (List fields) {
return this.requestFields(fields, true);
}
@Override
public APIRequestUpdate requestFields (List fields, boolean value) {
for (String field : fields) {
this.requestField(field, value);
}
return this;
}
@Override
public APIRequestUpdate requestField (String field) {
this.requestField(field, true);
return this;
}
@Override
public APIRequestUpdate requestField (String field, boolean value) {
this.requestFieldInternal(field, value);
return this;
}
}
public static enum EnumWith {
@SerializedName("LOCATION")
VALUE_LOCATION("LOCATION"),
;
private String value;
private EnumWith(String value) {
this.value = value;
}
@Override
public String toString() {
return value;
}
}
public static enum EnumBackdatedTimeGranularity {
@SerializedName("day")
VALUE_DAY("day"),
@SerializedName("hour")
VALUE_HOUR("hour"),
@SerializedName("min")
VALUE_MIN("min"),
@SerializedName("month")
VALUE_MONTH("month"),
@SerializedName("none")
VALUE_NONE("none"),
@SerializedName("year")
VALUE_YEAR("year"),
;
private String value;
private EnumBackdatedTimeGranularity(String value) {
this.value = value;
}
@Override
public String toString() {
return value;
}
}
public static enum EnumFeedStoryVisibility {
@SerializedName("hidden")
VALUE_HIDDEN("hidden"),
@SerializedName("visible")
VALUE_VISIBLE("visible"),
;
private String value;
private EnumFeedStoryVisibility(String value) {
this.value = value;
}
@Override
public String toString() {
return value;
}
}
public static enum EnumTimelineVisibility {
@SerializedName("forced_allow")
VALUE_FORCED_ALLOW("forced_allow"),
@SerializedName("hidden")
VALUE_HIDDEN("hidden"),
@SerializedName("normal")
VALUE_NORMAL("normal"),
;
private String value;
private EnumTimelineVisibility(String value) {
this.value = value;
}
@Override
public String toString() {
return value;
}
}
synchronized /*package*/ static Gson getGson() {
if (gson != null) {
return gson;
} else {
gson = new GsonBuilder()
.excludeFieldsWithModifiers(Modifier.STATIC)
.excludeFieldsWithModifiers(Modifier.PROTECTED)
.disableHtmlEscaping()
.create();
}
return gson;
}
public PagePost copyFrom(PagePost instance) {
this.mActions = instance.mActions;
this.mAdminCreator = instance.mAdminCreator;
this.mAllowedAdvertisingObjectives = instance.mAllowedAdvertisingObjectives;
this.mApplication = instance.mApplication;
this.mBackdatedTime = instance.mBackdatedTime;
this.mCallToAction = instance.mCallToAction;
this.mCanReplyPrivately = instance.mCanReplyPrivately;
this.mChildAttachments = instance.mChildAttachments;
this.mCommentsMirroringDomain = instance.mCommentsMirroringDomain;
this.mCoordinates = instance.mCoordinates;
this.mCreatedTime = instance.mCreatedTime;
this.mEvent = instance.mEvent;
this.mExpandedHeight = instance.mExpandedHeight;
this.mExpandedWidth = instance.mExpandedWidth;
this.mFeedTargeting = instance.mFeedTargeting;
this.mFrom = instance.mFrom;
this.mFullPicture = instance.mFullPicture;
this.mHeight = instance.mHeight;
this.mIcon = instance.mIcon;
this.mId = instance.mId;
this.mInstagramEligibility = instance.mInstagramEligibility;
this.mIsAppShare = instance.mIsAppShare;
this.mIsEligibleForPromotion = instance.mIsEligibleForPromotion;
this.mIsExpired = instance.mIsExpired;
this.mIsHidden = instance.mIsHidden;
this.mIsInlineCreated = instance.mIsInlineCreated;
this.mIsInstagramEligible = instance.mIsInstagramEligible;
this.mIsPopular = instance.mIsPopular;
this.mIsPublished = instance.mIsPublished;
this.mIsSpherical = instance.mIsSpherical;
this.mMessage = instance.mMessage;
this.mMessageTags = instance.mMessageTags;
this.mMultiShareEndCard = instance.mMultiShareEndCard;
this.mMultiShareOptimized = instance.mMultiShareOptimized;
this.mParentId = instance.mParentId;
this.mPermalinkUrl = instance.mPermalinkUrl;
this.mPicture = instance.mPicture;
this.mPlace = instance.mPlace;
this.mPrivacy = instance.mPrivacy;
this.mPromotableId = instance.mPromotableId;
this.mPromotionStatus = instance.mPromotionStatus;
this.mProperties = instance.mProperties;
this.mScheduledPublishTime = instance.mScheduledPublishTime;
this.mShares = instance.mShares;
this.mStatusType = instance.mStatusType;
this.mStory = instance.mStory;
this.mStoryTags = instance.mStoryTags;
this.mSubscribed = instance.mSubscribed;
this.mTarget = instance.mTarget;
this.mTargeting = instance.mTargeting;
this.mTimelineVisibility = instance.mTimelineVisibility;
this.mUpdatedTime = instance.mUpdatedTime;
this.mVia = instance.mVia;
this.mVideoBuyingEligibility = instance.mVideoBuyingEligibility;
this.mWidth = instance.mWidth;
this.context = instance.context;
this.rawValue = instance.rawValue;
return this;
}
public static APIRequest.ResponseParser getParser() {
return new APIRequest.ResponseParser() {
public APINodeList parseResponse(String response, APIContext context, APIRequest