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.AdVideo Maven / Gradle / Ivy
/**
* Copyright (c) 2015-present, Facebook, Inc. All rights reserved.
*
* You are hereby granted a non-exclusive, worldwide, royalty-free license to
* use, copy, modify, and distribute this software in source code or binary
* form for use in connection with the web services and APIs provided by
* Facebook.
*
* As with any software that integrates with the Facebook platform, your use
* of this software is subject to the Facebook Developer Principles and
* Policies [http://developers.facebook.com/policy/]. This copyright notice
* shall be included in all copies or substantial portions of the software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
* DEALINGS IN THE SOFTWARE.
*
*/
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.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 AdVideo extends APINode {
@SerializedName("ad_breaks")
private List mAdBreaks = null;
@SerializedName("admin_creator")
private User mAdminCreator = null;
@SerializedName("audio_isrc")
private Object mAudioIsrc = null;
@SerializedName("backdated_time")
private String mBackdatedTime = null;
@SerializedName("backdated_time_granularity")
private String mBackdatedTimeGranularity = null;
@SerializedName("content_category")
private String mContentCategory = null;
@SerializedName("content_tags")
private List mContentTags = null;
@SerializedName("copyright")
private VideoCopyright mCopyright = null;
@SerializedName("copyright_monitoring_status")
private String mCopyrightMonitoringStatus = null;
@SerializedName("created_time")
private String mCreatedTime = null;
@SerializedName("custom_labels")
private List mCustomLabels = null;
@SerializedName("description")
private String mDescription = null;
@SerializedName("embed_html")
private Object mEmbedHtml = null;
@SerializedName("embeddable")
private Boolean mEmbeddable = null;
@SerializedName("event")
private Event mEvent = null;
@SerializedName("expiration")
private Object mExpiration = null;
@SerializedName("format")
private List mFormat = null;
@SerializedName("from")
private Object mFrom = null;
@SerializedName("icon")
private String mIcon = null;
@SerializedName("id")
private String mId = null;
@SerializedName("is_crosspost_video")
private Boolean mIsCrosspostVideo = null;
@SerializedName("is_crossposting_eligible")
private Boolean mIsCrosspostingEligible = null;
@SerializedName("is_episode")
private Boolean mIsEpisode = null;
@SerializedName("is_instagram_eligible")
private Boolean mIsInstagramEligible = null;
@SerializedName("is_reference_only")
private Boolean mIsReferenceOnly = null;
@SerializedName("length")
private Double mLength = null;
@SerializedName("live_audience_count")
private Long mLiveAudienceCount = null;
@SerializedName("live_status")
private String mLiveStatus = null;
@SerializedName("music_video_copyright")
private MusicVideoCopyright mMusicVideoCopyright = null;
@SerializedName("permalink_url")
private Object mPermalinkUrl = null;
@SerializedName("picture")
private String mPicture = null;
@SerializedName("place")
private Place mPlace = null;
@SerializedName("post_views")
private Long mPostViews = null;
@SerializedName("premiere_living_room_status")
private String mPremiereLivingRoomStatus = null;
@SerializedName("privacy")
private Privacy mPrivacy = null;
@SerializedName("published")
private Boolean mPublished = null;
@SerializedName("scheduled_publish_time")
private String mScheduledPublishTime = null;
@SerializedName("source")
private String mSource = null;
@SerializedName("spherical")
private Boolean mSpherical = null;
@SerializedName("status")
private Object mStatus = null;
@SerializedName("title")
private String mTitle = null;
@SerializedName("universal_video_id")
private String mUniversalVideoId = null;
@SerializedName("updated_time")
private String mUpdatedTime = null;
@SerializedName("views")
private Long mViews = null;
protected static Gson gson = null;
AdVideo() {
}
public AdVideo(Long id, APIContext context) {
this(id.toString(), context);
}
public AdVideo(String id, APIContext context) {
this.mId = id;
this.context = context;
}
public AdVideo fetch() throws APIException{
AdVideo newInstance = fetchById(this.getPrefixedId().toString(), this.context);
this.copyFrom(newInstance);
return this;
}
public static AdVideo 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 AdVideo 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", AdVideo.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", AdVideo.getParser())
.setParam("ids", APIRequest.joinStringList(ids))
.requestFields(fields)
.executeAsyncBase();
}
private String getPrefixedId() {
return getId();
}
public String getId() {
return getFieldId().toString();
}
public static AdVideo loadJSON(String json, APIContext context, String header) {
AdVideo adVideo = getGson().fromJson(json, AdVideo.class);
if (context.isDebug()) {
JsonParser parser = new JsonParser();
JsonElement o1 = parser.parse(json);
JsonElement o2 = parser.parse(adVideo.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);
}
}
adVideo.context = context;
adVideo.rawValue = json;
adVideo.header = header;
return adVideo;
}
public static APINodeList parseResponse(String json, APIContext context, APIRequest request, String header) throws MalformedResponseException {
APINodeList adVideos = 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++) {
adVideos.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header));
};
return adVideos;
} 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;
adVideos.setCursors(before, after);
}
String previous = paging.has("previous") ? paging.get("previous").getAsString() : null;
String next = paging.has("next") ? paging.get("next").getAsString() : null;
adVideos.setPaging(previous, next);
if (context.hasAppSecret()) {
adVideos.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++) {
adVideos.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()) {
adVideos.add(loadJSON(entry.getValue().toString(), context, header));
}
break;
}
}
if (!isRedownload) {
adVideos.add(loadJSON(obj.toString(), context, header));
}
}
return adVideos;
} 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()) {
adVideos.add(loadJSON(entry.getValue().toString(), context, header));
}
return adVideos;
} 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)
) {
adVideos.add(loadJSON(value.toString(), context, header));
} else {
isIdIndexedArray = false;
break;
}
}
if (isIdIndexedArray) {
return adVideos;
}
// Sixth, check if it's pure JsonObject
adVideos.clear();
adVideos.add(loadJSON(json, context, header));
return adVideos;
}
}
} 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 APIRequestGetCaptions getCaptions() {
return new APIRequestGetCaptions(this.getPrefixedId().toString(), context);
}
public APIRequestCreateCaption createCaption() {
return new APIRequestCreateCaption(this.getPrefixedId().toString(), context);
}
public APIRequestGetCollaborators getCollaborators() {
return new APIRequestGetCollaborators(this.getPrefixedId().toString(), context);
}
public APIRequestCreateCollaborator createCollaborator() {
return new APIRequestCreateCollaborator(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 APIRequestGetCrosspostSharedPages getCrosspostSharedPages() {
return new APIRequestGetCrosspostSharedPages(this.getPrefixedId().toString(), context);
}
public APIRequestCreateGamingClipCreate createGamingClipCreate() {
return new APIRequestCreateGamingClipCreate(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 APIRequestGetPollSettings getPollSettings() {
return new APIRequestGetPollSettings(this.getPrefixedId().toString(), context);
}
public APIRequestGetPolls getPolls() {
return new APIRequestGetPolls(this.getPrefixedId().toString(), context);
}
public APIRequestCreatePoll createPoll() {
return new APIRequestCreatePoll(this.getPrefixedId().toString(), context);
}
public APIRequestGetSponsorTags getSponsorTags() {
return new APIRequestGetSponsorTags(this.getPrefixedId().toString(), context);
}
public APIRequestGetTags getTags() {
return new APIRequestGetTags(this.getPrefixedId().toString(), context);
}
public APIRequestCreateTag createTag() {
return new APIRequestCreateTag(this.getPrefixedId().toString(), context);
}
public APIRequestGetThumbnails getThumbnails() {
return new APIRequestGetThumbnails(this.getPrefixedId().toString(), context);
}
public APIRequestCreateThumbnail createThumbnail() {
return new APIRequestCreateThumbnail(this.getPrefixedId().toString(), context);
}
public APIRequestGetVideoInsights getVideoInsights() {
return new APIRequestGetVideoInsights(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 List getFieldAdBreaks() {
return mAdBreaks;
}
public User getFieldAdminCreator() {
if (mAdminCreator != null) {
mAdminCreator.context = getContext();
}
return mAdminCreator;
}
public Object getFieldAudioIsrc() {
return mAudioIsrc;
}
public String getFieldBackdatedTime() {
return mBackdatedTime;
}
public String getFieldBackdatedTimeGranularity() {
return mBackdatedTimeGranularity;
}
public String getFieldContentCategory() {
return mContentCategory;
}
public List getFieldContentTags() {
return mContentTags;
}
public VideoCopyright getFieldCopyright() {
if (mCopyright != null) {
mCopyright.context = getContext();
}
return mCopyright;
}
public String getFieldCopyrightMonitoringStatus() {
return mCopyrightMonitoringStatus;
}
public String getFieldCreatedTime() {
return mCreatedTime;
}
public List getFieldCustomLabels() {
return mCustomLabels;
}
public String getFieldDescription() {
return mDescription;
}
public Object getFieldEmbedHtml() {
return mEmbedHtml;
}
public Boolean getFieldEmbeddable() {
return mEmbeddable;
}
public Event getFieldEvent() {
if (mEvent != null) {
mEvent.context = getContext();
}
return mEvent;
}
public Object getFieldExpiration() {
return mExpiration;
}
public List getFieldFormat() {
return mFormat;
}
public Object getFieldFrom() {
return mFrom;
}
public String getFieldIcon() {
return mIcon;
}
public String getFieldId() {
return mId;
}
public Boolean getFieldIsCrosspostVideo() {
return mIsCrosspostVideo;
}
public Boolean getFieldIsCrosspostingEligible() {
return mIsCrosspostingEligible;
}
public Boolean getFieldIsEpisode() {
return mIsEpisode;
}
public Boolean getFieldIsInstagramEligible() {
return mIsInstagramEligible;
}
public Boolean getFieldIsReferenceOnly() {
return mIsReferenceOnly;
}
public Double getFieldLength() {
return mLength;
}
public Long getFieldLiveAudienceCount() {
return mLiveAudienceCount;
}
public String getFieldLiveStatus() {
return mLiveStatus;
}
public MusicVideoCopyright getFieldMusicVideoCopyright() {
if (mMusicVideoCopyright != null) {
mMusicVideoCopyright.context = getContext();
}
return mMusicVideoCopyright;
}
public Object getFieldPermalinkUrl() {
return mPermalinkUrl;
}
public String getFieldPicture() {
return mPicture;
}
public Place getFieldPlace() {
if (mPlace != null) {
mPlace.context = getContext();
}
return mPlace;
}
public Long getFieldPostViews() {
return mPostViews;
}
public String getFieldPremiereLivingRoomStatus() {
return mPremiereLivingRoomStatus;
}
public Privacy getFieldPrivacy() {
return mPrivacy;
}
public Boolean getFieldPublished() {
return mPublished;
}
public String getFieldScheduledPublishTime() {
return mScheduledPublishTime;
}
public String getFieldSource() {
return mSource;
}
public Boolean getFieldSpherical() {
return mSpherical;
}
public Object getFieldStatus() {
return mStatus;
}
public String getFieldTitle() {
return mTitle;
}
public String getFieldUniversalVideoId() {
return mUniversalVideoId;
}
public String getFieldUpdatedTime() {
return mUpdatedTime;
}
public Long getFieldViews() {
return mViews;
}
public static class APIRequestGetCaptions 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 APIRequestGetCaptions.this.parseResponse(result.getBody(), result.getHeader());
} catch (Exception e) {
throw new RuntimeException(e);
}
}
}
);
};
public APIRequestGetCaptions(String nodeId, APIContext context) {
super(context, nodeId, "/captions", "GET", Arrays.asList(PARAMS));
}
@Override
public APIRequestGetCaptions setParam(String param, Object value) {
setParamInternal(param, value);
return this;
}
@Override
public APIRequestGetCaptions setParams(Map params) {
setParamsInternal(params);
return this;
}
public APIRequestGetCaptions requestAllFields () {
return this.requestAllFields(true);
}
public APIRequestGetCaptions requestAllFields (boolean value) {
for (String field : FIELDS) {
this.requestField(field, value);
}
return this;
}
@Override
public APIRequestGetCaptions requestFields (List fields) {
return this.requestFields(fields, true);
}
@Override
public APIRequestGetCaptions requestFields (List fields, boolean value) {
for (String field : fields) {
this.requestField(field, value);
}
return this;
}
@Override
public APIRequestGetCaptions requestField (String field) {
this.requestField(field, true);
return this;
}
@Override
public APIRequestGetCaptions requestField (String field, boolean value) {
this.requestFieldInternal(field, value);
return this;
}
}
public static class APIRequestCreateCaption extends APIRequest {
AdVideo lastResponse = null;
@Override
public AdVideo getLastResponse() {
return lastResponse;
}
public static final String[] PARAMS = {
"captions_file",
"default_locale",
"locales_to_delete",
};
public static final String[] FIELDS = {
};
@Override
public AdVideo parseResponse(String response, String header) throws APIException {
return AdVideo.parseResponse(response, getContext(), this, header).head();
}
@Override
public AdVideo execute() throws APIException {
return execute(new HashMap());
}
@Override
public AdVideo 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 AdVideo apply(ResponseWrapper result) {
try {
return APIRequestCreateCaption.this.parseResponse(result.getBody(), result.getHeader());
} catch (Exception e) {
throw new RuntimeException(e);
}
}
}
);
};
public APIRequestCreateCaption(String nodeId, APIContext context) {
super(context, nodeId, "/captions", "POST", Arrays.asList(PARAMS));
}
@Override
public APIRequestCreateCaption setParam(String param, Object value) {
setParamInternal(param, value);
return this;
}
@Override
public APIRequestCreateCaption setParams(Map params) {
setParamsInternal(params);
return this;
}
public APIRequestCreateCaption setCaptionsFile (File captionsFile) {
this.setParam("captions_file", captionsFile);
return this;
}
public APIRequestCreateCaption setCaptionsFile (String captionsFile) {
this.setParam("captions_file", captionsFile);
return this;
}
public APIRequestCreateCaption setDefaultLocale (String defaultLocale) {
this.setParam("default_locale", defaultLocale);
return this;
}
public APIRequestCreateCaption setLocalesToDelete (List localesToDelete) {
this.setParam("locales_to_delete", localesToDelete);
return this;
}
public APIRequestCreateCaption setLocalesToDelete (String localesToDelete) {
this.setParam("locales_to_delete", localesToDelete);
return this;
}
public APIRequestCreateCaption requestAllFields () {
return this.requestAllFields(true);
}
public APIRequestCreateCaption requestAllFields (boolean value) {
for (String field : FIELDS) {
this.requestField(field, value);
}
return this;
}
@Override
public APIRequestCreateCaption requestFields (List fields) {
return this.requestFields(fields, true);
}
@Override
public APIRequestCreateCaption requestFields (List fields, boolean value) {
for (String field : fields) {
this.requestField(field, value);
}
return this;
}
@Override
public APIRequestCreateCaption requestField (String field) {
this.requestField(field, true);
return this;
}
@Override
public APIRequestCreateCaption requestField (String field, boolean value) {
this.requestFieldInternal(field, value);
return this;
}
}
public static class APIRequestGetCollaborators 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 APIRequestGetCollaborators.this.parseResponse(result.getBody(), result.getHeader());
} catch (Exception e) {
throw new RuntimeException(e);
}
}
}
);
};
public APIRequestGetCollaborators(String nodeId, APIContext context) {
super(context, nodeId, "/collaborators", "GET", Arrays.asList(PARAMS));
}
@Override
public APIRequestGetCollaborators setParam(String param, Object value) {
setParamInternal(param, value);
return this;
}
@Override
public APIRequestGetCollaborators setParams(Map params) {
setParamsInternal(params);
return this;
}
public APIRequestGetCollaborators requestAllFields () {
return this.requestAllFields(true);
}
public APIRequestGetCollaborators requestAllFields (boolean value) {
for (String field : FIELDS) {
this.requestField(field, value);
}
return this;
}
@Override
public APIRequestGetCollaborators requestFields (List fields) {
return this.requestFields(fields, true);
}
@Override
public APIRequestGetCollaborators requestFields (List fields, boolean value) {
for (String field : fields) {
this.requestField(field, value);
}
return this;
}
@Override
public APIRequestGetCollaborators requestField (String field) {
this.requestField(field, true);
return this;
}
@Override
public APIRequestGetCollaborators requestField (String field, boolean value) {
this.requestFieldInternal(field, value);
return this;
}
}
public static class APIRequestCreateCollaborator extends APIRequest {
AdVideo lastResponse = null;
@Override
public AdVideo getLastResponse() {
return lastResponse;
}
public static final String[] PARAMS = {
"target_id",
};
public static final String[] FIELDS = {
};
@Override
public AdVideo parseResponse(String response, String header) throws APIException {
return AdVideo.parseResponse(response, getContext(), this, header).head();
}
@Override
public AdVideo execute() throws APIException {
return execute(new HashMap());
}
@Override
public AdVideo 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 AdVideo apply(ResponseWrapper result) {
try {
return APIRequestCreateCollaborator.this.parseResponse(result.getBody(), result.getHeader());
} catch (Exception e) {
throw new RuntimeException(e);
}
}
}
);
};
public APIRequestCreateCollaborator(String nodeId, APIContext context) {
super(context, nodeId, "/collaborators", "POST", Arrays.asList(PARAMS));
}
@Override
public APIRequestCreateCollaborator setParam(String param, Object value) {
setParamInternal(param, value);
return this;
}
@Override
public APIRequestCreateCollaborator setParams(Map params) {
setParamsInternal(params);
return this;
}
public APIRequestCreateCollaborator setTargetId (String targetId) {
this.setParam("target_id", targetId);
return this;
}
public APIRequestCreateCollaborator requestAllFields () {
return this.requestAllFields(true);
}
public APIRequestCreateCollaborator requestAllFields (boolean value) {
for (String field : FIELDS) {
this.requestField(field, value);
}
return this;
}
@Override
public APIRequestCreateCollaborator requestFields (List fields) {
return this.requestFields(fields, true);
}
@Override
public APIRequestCreateCollaborator requestFields (List fields, boolean value) {
for (String field : fields) {
this.requestField(field, value);
}
return this;
}
@Override
public APIRequestCreateCollaborator requestField (String field) {
this.requestField(field, true);
return this;
}
@Override
public APIRequestCreateCollaborator 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);
}
}
}
);
};
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_privacy_value",
"facepile_mentioned_ids",
"feedback_source",
"is_offline",
"message",
"nectar_module",
"object_id",
"parent_comment_id",
"text",
"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);
}
}
}
);
};
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 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 setFacepileMentionedIds (List facepileMentionedIds) {
this.setParam("facepile_mentioned_ids", facepileMentionedIds);
return this;
}
public APIRequestCreateComment setFacepileMentionedIds (String facepileMentionedIds) {
this.setParam("facepile_mentioned_ids", facepileMentionedIds);
return this;
}
public APIRequestCreateComment setFeedbackSource (String feedbackSource) {
this.setParam("feedback_source", feedbackSource);
return this;
}
public APIRequestCreateComment setIsOffline (Boolean isOffline) {
this.setParam("is_offline", isOffline);
return this;
}
public APIRequestCreateComment setIsOffline (String isOffline) {
this.setParam("is_offline", isOffline);
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 setObjectId (String objectId) {
this.setParam("object_id", objectId);
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 setText (String text) {
this.setParam("text", text);
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 APIRequestGetCrosspostSharedPages 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",
"awards",
"band_interests",
"band_members",
"best_page",
"bio",
"birthday",
"booking_agent",
"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",
"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_transitioned_to_new_page_experience",
"has_whatsapp_business_number",
"has_whatsapp_number",
"hometown",
"hours",
"id",
"impressum",
"influences",
"instagram_business_account",
"is_always_open",
"is_chain",
"is_community_page",
"is_eligible_for_branded_content",
"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_page_welcome_message",
"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",
"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 APIRequestGetCrosspostSharedPages.this.parseResponse(result.getBody(), result.getHeader());
} catch (Exception e) {
throw new RuntimeException(e);
}
}
}
);
};
public APIRequestGetCrosspostSharedPages(String nodeId, APIContext context) {
super(context, nodeId, "/crosspost_shared_pages", "GET", Arrays.asList(PARAMS));
}
@Override
public APIRequestGetCrosspostSharedPages setParam(String param, Object value) {
setParamInternal(param, value);
return this;
}
@Override
public APIRequestGetCrosspostSharedPages setParams(Map params) {
setParamsInternal(params);
return this;
}
public APIRequestGetCrosspostSharedPages requestAllFields () {
return this.requestAllFields(true);
}
public APIRequestGetCrosspostSharedPages requestAllFields (boolean value) {
for (String field : FIELDS) {
this.requestField(field, value);
}
return this;
}
@Override
public APIRequestGetCrosspostSharedPages requestFields (List fields) {
return this.requestFields(fields, true);
}
@Override
public APIRequestGetCrosspostSharedPages requestFields (List fields, boolean value) {
for (String field : fields) {
this.requestField(field, value);
}
return this;
}
@Override
public APIRequestGetCrosspostSharedPages requestField (String field) {
this.requestField(field, true);
return this;
}
@Override
public APIRequestGetCrosspostSharedPages requestField (String field, boolean value) {
this.requestFieldInternal(field, value);
return this;
}
public APIRequestGetCrosspostSharedPages requestAboutField () {
return this.requestAboutField(true);
}
public APIRequestGetCrosspostSharedPages requestAboutField (boolean value) {
this.requestField("about", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestAccessTokenField () {
return this.requestAccessTokenField(true);
}
public APIRequestGetCrosspostSharedPages requestAccessTokenField (boolean value) {
this.requestField("access_token", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestAdCampaignField () {
return this.requestAdCampaignField(true);
}
public APIRequestGetCrosspostSharedPages requestAdCampaignField (boolean value) {
this.requestField("ad_campaign", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestAffiliationField () {
return this.requestAffiliationField(true);
}
public APIRequestGetCrosspostSharedPages requestAffiliationField (boolean value) {
this.requestField("affiliation", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestAppIdField () {
return this.requestAppIdField(true);
}
public APIRequestGetCrosspostSharedPages requestAppIdField (boolean value) {
this.requestField("app_id", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestArtistsWeLikeField () {
return this.requestArtistsWeLikeField(true);
}
public APIRequestGetCrosspostSharedPages requestArtistsWeLikeField (boolean value) {
this.requestField("artists_we_like", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestAttireField () {
return this.requestAttireField(true);
}
public APIRequestGetCrosspostSharedPages requestAttireField (boolean value) {
this.requestField("attire", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestAwardsField () {
return this.requestAwardsField(true);
}
public APIRequestGetCrosspostSharedPages requestAwardsField (boolean value) {
this.requestField("awards", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestBandInterestsField () {
return this.requestBandInterestsField(true);
}
public APIRequestGetCrosspostSharedPages requestBandInterestsField (boolean value) {
this.requestField("band_interests", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestBandMembersField () {
return this.requestBandMembersField(true);
}
public APIRequestGetCrosspostSharedPages requestBandMembersField (boolean value) {
this.requestField("band_members", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestBestPageField () {
return this.requestBestPageField(true);
}
public APIRequestGetCrosspostSharedPages requestBestPageField (boolean value) {
this.requestField("best_page", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestBioField () {
return this.requestBioField(true);
}
public APIRequestGetCrosspostSharedPages requestBioField (boolean value) {
this.requestField("bio", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestBirthdayField () {
return this.requestBirthdayField(true);
}
public APIRequestGetCrosspostSharedPages requestBirthdayField (boolean value) {
this.requestField("birthday", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestBookingAgentField () {
return this.requestBookingAgentField(true);
}
public APIRequestGetCrosspostSharedPages requestBookingAgentField (boolean value) {
this.requestField("booking_agent", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestBuiltField () {
return this.requestBuiltField(true);
}
public APIRequestGetCrosspostSharedPages requestBuiltField (boolean value) {
this.requestField("built", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestBusinessField () {
return this.requestBusinessField(true);
}
public APIRequestGetCrosspostSharedPages requestBusinessField (boolean value) {
this.requestField("business", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestCanCheckinField () {
return this.requestCanCheckinField(true);
}
public APIRequestGetCrosspostSharedPages requestCanCheckinField (boolean value) {
this.requestField("can_checkin", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestCanPostField () {
return this.requestCanPostField(true);
}
public APIRequestGetCrosspostSharedPages requestCanPostField (boolean value) {
this.requestField("can_post", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestCategoryField () {
return this.requestCategoryField(true);
}
public APIRequestGetCrosspostSharedPages requestCategoryField (boolean value) {
this.requestField("category", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestCategoryListField () {
return this.requestCategoryListField(true);
}
public APIRequestGetCrosspostSharedPages requestCategoryListField (boolean value) {
this.requestField("category_list", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestCheckinsField () {
return this.requestCheckinsField(true);
}
public APIRequestGetCrosspostSharedPages requestCheckinsField (boolean value) {
this.requestField("checkins", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestCompanyOverviewField () {
return this.requestCompanyOverviewField(true);
}
public APIRequestGetCrosspostSharedPages requestCompanyOverviewField (boolean value) {
this.requestField("company_overview", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestConnectedInstagramAccountField () {
return this.requestConnectedInstagramAccountField(true);
}
public APIRequestGetCrosspostSharedPages requestConnectedInstagramAccountField (boolean value) {
this.requestField("connected_instagram_account", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestConnectedPageBackedInstagramAccountField () {
return this.requestConnectedPageBackedInstagramAccountField(true);
}
public APIRequestGetCrosspostSharedPages requestConnectedPageBackedInstagramAccountField (boolean value) {
this.requestField("connected_page_backed_instagram_account", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestContactAddressField () {
return this.requestContactAddressField(true);
}
public APIRequestGetCrosspostSharedPages requestContactAddressField (boolean value) {
this.requestField("contact_address", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestCopyrightWhitelistedIgPartnersField () {
return this.requestCopyrightWhitelistedIgPartnersField(true);
}
public APIRequestGetCrosspostSharedPages requestCopyrightWhitelistedIgPartnersField (boolean value) {
this.requestField("copyright_whitelisted_ig_partners", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestCountryPageLikesField () {
return this.requestCountryPageLikesField(true);
}
public APIRequestGetCrosspostSharedPages requestCountryPageLikesField (boolean value) {
this.requestField("country_page_likes", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestCoverField () {
return this.requestCoverField(true);
}
public APIRequestGetCrosspostSharedPages requestCoverField (boolean value) {
this.requestField("cover", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestCulinaryTeamField () {
return this.requestCulinaryTeamField(true);
}
public APIRequestGetCrosspostSharedPages requestCulinaryTeamField (boolean value) {
this.requestField("culinary_team", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestCurrentLocationField () {
return this.requestCurrentLocationField(true);
}
public APIRequestGetCrosspostSharedPages requestCurrentLocationField (boolean value) {
this.requestField("current_location", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestDeliveryAndPickupOptionInfoField () {
return this.requestDeliveryAndPickupOptionInfoField(true);
}
public APIRequestGetCrosspostSharedPages requestDeliveryAndPickupOptionInfoField (boolean value) {
this.requestField("delivery_and_pickup_option_info", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestDescriptionField () {
return this.requestDescriptionField(true);
}
public APIRequestGetCrosspostSharedPages requestDescriptionField (boolean value) {
this.requestField("description", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestDescriptionHtmlField () {
return this.requestDescriptionHtmlField(true);
}
public APIRequestGetCrosspostSharedPages requestDescriptionHtmlField (boolean value) {
this.requestField("description_html", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestDifferentlyOpenOfferingsField () {
return this.requestDifferentlyOpenOfferingsField(true);
}
public APIRequestGetCrosspostSharedPages requestDifferentlyOpenOfferingsField (boolean value) {
this.requestField("differently_open_offerings", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestDirectedByField () {
return this.requestDirectedByField(true);
}
public APIRequestGetCrosspostSharedPages requestDirectedByField (boolean value) {
this.requestField("directed_by", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestDisplaySubtextField () {
return this.requestDisplaySubtextField(true);
}
public APIRequestGetCrosspostSharedPages requestDisplaySubtextField (boolean value) {
this.requestField("display_subtext", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestDisplayedMessageResponseTimeField () {
return this.requestDisplayedMessageResponseTimeField(true);
}
public APIRequestGetCrosspostSharedPages requestDisplayedMessageResponseTimeField (boolean value) {
this.requestField("displayed_message_response_time", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestEmailsField () {
return this.requestEmailsField(true);
}
public APIRequestGetCrosspostSharedPages requestEmailsField (boolean value) {
this.requestField("emails", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestEngagementField () {
return this.requestEngagementField(true);
}
public APIRequestGetCrosspostSharedPages requestEngagementField (boolean value) {
this.requestField("engagement", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestFanCountField () {
return this.requestFanCountField(true);
}
public APIRequestGetCrosspostSharedPages requestFanCountField (boolean value) {
this.requestField("fan_count", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestFeaturedVideoField () {
return this.requestFeaturedVideoField(true);
}
public APIRequestGetCrosspostSharedPages requestFeaturedVideoField (boolean value) {
this.requestField("featured_video", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestFeaturesField () {
return this.requestFeaturesField(true);
}
public APIRequestGetCrosspostSharedPages requestFeaturesField (boolean value) {
this.requestField("features", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestFollowersCountField () {
return this.requestFollowersCountField(true);
}
public APIRequestGetCrosspostSharedPages requestFollowersCountField (boolean value) {
this.requestField("followers_count", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestFoodStylesField () {
return this.requestFoodStylesField(true);
}
public APIRequestGetCrosspostSharedPages requestFoodStylesField (boolean value) {
this.requestField("food_styles", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestFoundedField () {
return this.requestFoundedField(true);
}
public APIRequestGetCrosspostSharedPages requestFoundedField (boolean value) {
this.requestField("founded", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestGeneralInfoField () {
return this.requestGeneralInfoField(true);
}
public APIRequestGetCrosspostSharedPages requestGeneralInfoField (boolean value) {
this.requestField("general_info", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestGeneralManagerField () {
return this.requestGeneralManagerField(true);
}
public APIRequestGetCrosspostSharedPages requestGeneralManagerField (boolean value) {
this.requestField("general_manager", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestGenreField () {
return this.requestGenreField(true);
}
public APIRequestGetCrosspostSharedPages requestGenreField (boolean value) {
this.requestField("genre", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestGlobalBrandPageNameField () {
return this.requestGlobalBrandPageNameField(true);
}
public APIRequestGetCrosspostSharedPages requestGlobalBrandPageNameField (boolean value) {
this.requestField("global_brand_page_name", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestGlobalBrandRootIdField () {
return this.requestGlobalBrandRootIdField(true);
}
public APIRequestGetCrosspostSharedPages requestGlobalBrandRootIdField (boolean value) {
this.requestField("global_brand_root_id", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestHasAddedAppField () {
return this.requestHasAddedAppField(true);
}
public APIRequestGetCrosspostSharedPages requestHasAddedAppField (boolean value) {
this.requestField("has_added_app", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestHasTransitionedToNewPageExperienceField () {
return this.requestHasTransitionedToNewPageExperienceField(true);
}
public APIRequestGetCrosspostSharedPages requestHasTransitionedToNewPageExperienceField (boolean value) {
this.requestField("has_transitioned_to_new_page_experience", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestHasWhatsappBusinessNumberField () {
return this.requestHasWhatsappBusinessNumberField(true);
}
public APIRequestGetCrosspostSharedPages requestHasWhatsappBusinessNumberField (boolean value) {
this.requestField("has_whatsapp_business_number", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestHasWhatsappNumberField () {
return this.requestHasWhatsappNumberField(true);
}
public APIRequestGetCrosspostSharedPages requestHasWhatsappNumberField (boolean value) {
this.requestField("has_whatsapp_number", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestHometownField () {
return this.requestHometownField(true);
}
public APIRequestGetCrosspostSharedPages requestHometownField (boolean value) {
this.requestField("hometown", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestHoursField () {
return this.requestHoursField(true);
}
public APIRequestGetCrosspostSharedPages requestHoursField (boolean value) {
this.requestField("hours", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestIdField () {
return this.requestIdField(true);
}
public APIRequestGetCrosspostSharedPages requestIdField (boolean value) {
this.requestField("id", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestImpressumField () {
return this.requestImpressumField(true);
}
public APIRequestGetCrosspostSharedPages requestImpressumField (boolean value) {
this.requestField("impressum", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestInfluencesField () {
return this.requestInfluencesField(true);
}
public APIRequestGetCrosspostSharedPages requestInfluencesField (boolean value) {
this.requestField("influences", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestInstagramBusinessAccountField () {
return this.requestInstagramBusinessAccountField(true);
}
public APIRequestGetCrosspostSharedPages requestInstagramBusinessAccountField (boolean value) {
this.requestField("instagram_business_account", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestIsAlwaysOpenField () {
return this.requestIsAlwaysOpenField(true);
}
public APIRequestGetCrosspostSharedPages requestIsAlwaysOpenField (boolean value) {
this.requestField("is_always_open", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestIsChainField () {
return this.requestIsChainField(true);
}
public APIRequestGetCrosspostSharedPages requestIsChainField (boolean value) {
this.requestField("is_chain", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestIsCommunityPageField () {
return this.requestIsCommunityPageField(true);
}
public APIRequestGetCrosspostSharedPages requestIsCommunityPageField (boolean value) {
this.requestField("is_community_page", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestIsEligibleForBrandedContentField () {
return this.requestIsEligibleForBrandedContentField(true);
}
public APIRequestGetCrosspostSharedPages requestIsEligibleForBrandedContentField (boolean value) {
this.requestField("is_eligible_for_branded_content", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestIsMessengerBotGetStartedEnabledField () {
return this.requestIsMessengerBotGetStartedEnabledField(true);
}
public APIRequestGetCrosspostSharedPages requestIsMessengerBotGetStartedEnabledField (boolean value) {
this.requestField("is_messenger_bot_get_started_enabled", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestIsMessengerPlatformBotField () {
return this.requestIsMessengerPlatformBotField(true);
}
public APIRequestGetCrosspostSharedPages requestIsMessengerPlatformBotField (boolean value) {
this.requestField("is_messenger_platform_bot", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestIsOwnedField () {
return this.requestIsOwnedField(true);
}
public APIRequestGetCrosspostSharedPages requestIsOwnedField (boolean value) {
this.requestField("is_owned", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestIsPermanentlyClosedField () {
return this.requestIsPermanentlyClosedField(true);
}
public APIRequestGetCrosspostSharedPages requestIsPermanentlyClosedField (boolean value) {
this.requestField("is_permanently_closed", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestIsPublishedField () {
return this.requestIsPublishedField(true);
}
public APIRequestGetCrosspostSharedPages requestIsPublishedField (boolean value) {
this.requestField("is_published", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestIsUnclaimedField () {
return this.requestIsUnclaimedField(true);
}
public APIRequestGetCrosspostSharedPages requestIsUnclaimedField (boolean value) {
this.requestField("is_unclaimed", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestIsVerifiedField () {
return this.requestIsVerifiedField(true);
}
public APIRequestGetCrosspostSharedPages requestIsVerifiedField (boolean value) {
this.requestField("is_verified", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestIsWebhooksSubscribedField () {
return this.requestIsWebhooksSubscribedField(true);
}
public APIRequestGetCrosspostSharedPages requestIsWebhooksSubscribedField (boolean value) {
this.requestField("is_webhooks_subscribed", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestKeywordsField () {
return this.requestKeywordsField(true);
}
public APIRequestGetCrosspostSharedPages requestKeywordsField (boolean value) {
this.requestField("keywords", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestLeadgenTosAcceptanceTimeField () {
return this.requestLeadgenTosAcceptanceTimeField(true);
}
public APIRequestGetCrosspostSharedPages requestLeadgenTosAcceptanceTimeField (boolean value) {
this.requestField("leadgen_tos_acceptance_time", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestLeadgenTosAcceptedField () {
return this.requestLeadgenTosAcceptedField(true);
}
public APIRequestGetCrosspostSharedPages requestLeadgenTosAcceptedField (boolean value) {
this.requestField("leadgen_tos_accepted", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestLeadgenTosAcceptingUserField () {
return this.requestLeadgenTosAcceptingUserField(true);
}
public APIRequestGetCrosspostSharedPages requestLeadgenTosAcceptingUserField (boolean value) {
this.requestField("leadgen_tos_accepting_user", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestLinkField () {
return this.requestLinkField(true);
}
public APIRequestGetCrosspostSharedPages requestLinkField (boolean value) {
this.requestField("link", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestLocationField () {
return this.requestLocationField(true);
}
public APIRequestGetCrosspostSharedPages requestLocationField (boolean value) {
this.requestField("location", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestMembersField () {
return this.requestMembersField(true);
}
public APIRequestGetCrosspostSharedPages requestMembersField (boolean value) {
this.requestField("members", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestMerchantIdField () {
return this.requestMerchantIdField(true);
}
public APIRequestGetCrosspostSharedPages requestMerchantIdField (boolean value) {
this.requestField("merchant_id", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestMerchantReviewStatusField () {
return this.requestMerchantReviewStatusField(true);
}
public APIRequestGetCrosspostSharedPages requestMerchantReviewStatusField (boolean value) {
this.requestField("merchant_review_status", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestMessagingFeatureStatusField () {
return this.requestMessagingFeatureStatusField(true);
}
public APIRequestGetCrosspostSharedPages requestMessagingFeatureStatusField (boolean value) {
this.requestField("messaging_feature_status", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestMessengerAdsDefaultIcebreakersField () {
return this.requestMessengerAdsDefaultIcebreakersField(true);
}
public APIRequestGetCrosspostSharedPages requestMessengerAdsDefaultIcebreakersField (boolean value) {
this.requestField("messenger_ads_default_icebreakers", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestMessengerAdsDefaultPageWelcomeMessageField () {
return this.requestMessengerAdsDefaultPageWelcomeMessageField(true);
}
public APIRequestGetCrosspostSharedPages requestMessengerAdsDefaultPageWelcomeMessageField (boolean value) {
this.requestField("messenger_ads_default_page_welcome_message", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestMessengerAdsDefaultQuickRepliesField () {
return this.requestMessengerAdsDefaultQuickRepliesField(true);
}
public APIRequestGetCrosspostSharedPages requestMessengerAdsDefaultQuickRepliesField (boolean value) {
this.requestField("messenger_ads_default_quick_replies", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestMessengerAdsQuickRepliesTypeField () {
return this.requestMessengerAdsQuickRepliesTypeField(true);
}
public APIRequestGetCrosspostSharedPages requestMessengerAdsQuickRepliesTypeField (boolean value) {
this.requestField("messenger_ads_quick_replies_type", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestMiniShopStorefrontField () {
return this.requestMiniShopStorefrontField(true);
}
public APIRequestGetCrosspostSharedPages requestMiniShopStorefrontField (boolean value) {
this.requestField("mini_shop_storefront", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestMissionField () {
return this.requestMissionField(true);
}
public APIRequestGetCrosspostSharedPages requestMissionField (boolean value) {
this.requestField("mission", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestMpgField () {
return this.requestMpgField(true);
}
public APIRequestGetCrosspostSharedPages requestMpgField (boolean value) {
this.requestField("mpg", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestNameField () {
return this.requestNameField(true);
}
public APIRequestGetCrosspostSharedPages requestNameField (boolean value) {
this.requestField("name", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestNameWithLocationDescriptorField () {
return this.requestNameWithLocationDescriptorField(true);
}
public APIRequestGetCrosspostSharedPages requestNameWithLocationDescriptorField (boolean value) {
this.requestField("name_with_location_descriptor", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestNetworkField () {
return this.requestNetworkField(true);
}
public APIRequestGetCrosspostSharedPages requestNetworkField (boolean value) {
this.requestField("network", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestNewLikeCountField () {
return this.requestNewLikeCountField(true);
}
public APIRequestGetCrosspostSharedPages requestNewLikeCountField (boolean value) {
this.requestField("new_like_count", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestOfferEligibleField () {
return this.requestOfferEligibleField(true);
}
public APIRequestGetCrosspostSharedPages requestOfferEligibleField (boolean value) {
this.requestField("offer_eligible", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestOverallStarRatingField () {
return this.requestOverallStarRatingField(true);
}
public APIRequestGetCrosspostSharedPages requestOverallStarRatingField (boolean value) {
this.requestField("overall_star_rating", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestOwnerBusinessField () {
return this.requestOwnerBusinessField(true);
}
public APIRequestGetCrosspostSharedPages requestOwnerBusinessField (boolean value) {
this.requestField("owner_business", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestPageTokenField () {
return this.requestPageTokenField(true);
}
public APIRequestGetCrosspostSharedPages requestPageTokenField (boolean value) {
this.requestField("page_token", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestParentPageField () {
return this.requestParentPageField(true);
}
public APIRequestGetCrosspostSharedPages requestParentPageField (boolean value) {
this.requestField("parent_page", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestParkingField () {
return this.requestParkingField(true);
}
public APIRequestGetCrosspostSharedPages requestParkingField (boolean value) {
this.requestField("parking", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestPaymentOptionsField () {
return this.requestPaymentOptionsField(true);
}
public APIRequestGetCrosspostSharedPages requestPaymentOptionsField (boolean value) {
this.requestField("payment_options", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestPersonalInfoField () {
return this.requestPersonalInfoField(true);
}
public APIRequestGetCrosspostSharedPages requestPersonalInfoField (boolean value) {
this.requestField("personal_info", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestPersonalInterestsField () {
return this.requestPersonalInterestsField(true);
}
public APIRequestGetCrosspostSharedPages requestPersonalInterestsField (boolean value) {
this.requestField("personal_interests", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestPharmaSafetyInfoField () {
return this.requestPharmaSafetyInfoField(true);
}
public APIRequestGetCrosspostSharedPages requestPharmaSafetyInfoField (boolean value) {
this.requestField("pharma_safety_info", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestPhoneField () {
return this.requestPhoneField(true);
}
public APIRequestGetCrosspostSharedPages requestPhoneField (boolean value) {
this.requestField("phone", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestPickupOptionsField () {
return this.requestPickupOptionsField(true);
}
public APIRequestGetCrosspostSharedPages requestPickupOptionsField (boolean value) {
this.requestField("pickup_options", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestPlaceTypeField () {
return this.requestPlaceTypeField(true);
}
public APIRequestGetCrosspostSharedPages requestPlaceTypeField (boolean value) {
this.requestField("place_type", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestPlotOutlineField () {
return this.requestPlotOutlineField(true);
}
public APIRequestGetCrosspostSharedPages requestPlotOutlineField (boolean value) {
this.requestField("plot_outline", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestPreferredAudienceField () {
return this.requestPreferredAudienceField(true);
}
public APIRequestGetCrosspostSharedPages requestPreferredAudienceField (boolean value) {
this.requestField("preferred_audience", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestPressContactField () {
return this.requestPressContactField(true);
}
public APIRequestGetCrosspostSharedPages requestPressContactField (boolean value) {
this.requestField("press_contact", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestPriceRangeField () {
return this.requestPriceRangeField(true);
}
public APIRequestGetCrosspostSharedPages requestPriceRangeField (boolean value) {
this.requestField("price_range", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestPrivacyInfoUrlField () {
return this.requestPrivacyInfoUrlField(true);
}
public APIRequestGetCrosspostSharedPages requestPrivacyInfoUrlField (boolean value) {
this.requestField("privacy_info_url", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestProducedByField () {
return this.requestProducedByField(true);
}
public APIRequestGetCrosspostSharedPages requestProducedByField (boolean value) {
this.requestField("produced_by", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestProductsField () {
return this.requestProductsField(true);
}
public APIRequestGetCrosspostSharedPages requestProductsField (boolean value) {
this.requestField("products", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestPromotionEligibleField () {
return this.requestPromotionEligibleField(true);
}
public APIRequestGetCrosspostSharedPages requestPromotionEligibleField (boolean value) {
this.requestField("promotion_eligible", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestPromotionIneligibleReasonField () {
return this.requestPromotionIneligibleReasonField(true);
}
public APIRequestGetCrosspostSharedPages requestPromotionIneligibleReasonField (boolean value) {
this.requestField("promotion_ineligible_reason", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestPublicTransitField () {
return this.requestPublicTransitField(true);
}
public APIRequestGetCrosspostSharedPages requestPublicTransitField (boolean value) {
this.requestField("public_transit", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestRatingCountField () {
return this.requestRatingCountField(true);
}
public APIRequestGetCrosspostSharedPages requestRatingCountField (boolean value) {
this.requestField("rating_count", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestRecipientField () {
return this.requestRecipientField(true);
}
public APIRequestGetCrosspostSharedPages requestRecipientField (boolean value) {
this.requestField("recipient", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestRecordLabelField () {
return this.requestRecordLabelField(true);
}
public APIRequestGetCrosspostSharedPages requestRecordLabelField (boolean value) {
this.requestField("record_label", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestReleaseDateField () {
return this.requestReleaseDateField(true);
}
public APIRequestGetCrosspostSharedPages requestReleaseDateField (boolean value) {
this.requestField("release_date", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestRestaurantServicesField () {
return this.requestRestaurantServicesField(true);
}
public APIRequestGetCrosspostSharedPages requestRestaurantServicesField (boolean value) {
this.requestField("restaurant_services", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestRestaurantSpecialtiesField () {
return this.requestRestaurantSpecialtiesField(true);
}
public APIRequestGetCrosspostSharedPages requestRestaurantSpecialtiesField (boolean value) {
this.requestField("restaurant_specialties", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestScheduleField () {
return this.requestScheduleField(true);
}
public APIRequestGetCrosspostSharedPages requestScheduleField (boolean value) {
this.requestField("schedule", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestScreenplayByField () {
return this.requestScreenplayByField(true);
}
public APIRequestGetCrosspostSharedPages requestScreenplayByField (boolean value) {
this.requestField("screenplay_by", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestSeasonField () {
return this.requestSeasonField(true);
}
public APIRequestGetCrosspostSharedPages requestSeasonField (boolean value) {
this.requestField("season", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestSingleLineAddressField () {
return this.requestSingleLineAddressField(true);
}
public APIRequestGetCrosspostSharedPages requestSingleLineAddressField (boolean value) {
this.requestField("single_line_address", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestStarringField () {
return this.requestStarringField(true);
}
public APIRequestGetCrosspostSharedPages requestStarringField (boolean value) {
this.requestField("starring", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestStartInfoField () {
return this.requestStartInfoField(true);
}
public APIRequestGetCrosspostSharedPages requestStartInfoField (boolean value) {
this.requestField("start_info", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestStoreCodeField () {
return this.requestStoreCodeField(true);
}
public APIRequestGetCrosspostSharedPages requestStoreCodeField (boolean value) {
this.requestField("store_code", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestStoreLocationDescriptorField () {
return this.requestStoreLocationDescriptorField(true);
}
public APIRequestGetCrosspostSharedPages requestStoreLocationDescriptorField (boolean value) {
this.requestField("store_location_descriptor", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestStoreNumberField () {
return this.requestStoreNumberField(true);
}
public APIRequestGetCrosspostSharedPages requestStoreNumberField (boolean value) {
this.requestField("store_number", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestStudioField () {
return this.requestStudioField(true);
}
public APIRequestGetCrosspostSharedPages requestStudioField (boolean value) {
this.requestField("studio", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestSupportsDonateButtonInLiveVideoField () {
return this.requestSupportsDonateButtonInLiveVideoField(true);
}
public APIRequestGetCrosspostSharedPages requestSupportsDonateButtonInLiveVideoField (boolean value) {
this.requestField("supports_donate_button_in_live_video", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestTalkingAboutCountField () {
return this.requestTalkingAboutCountField(true);
}
public APIRequestGetCrosspostSharedPages requestTalkingAboutCountField (boolean value) {
this.requestField("talking_about_count", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestTemporaryStatusField () {
return this.requestTemporaryStatusField(true);
}
public APIRequestGetCrosspostSharedPages requestTemporaryStatusField (boolean value) {
this.requestField("temporary_status", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestUnreadMessageCountField () {
return this.requestUnreadMessageCountField(true);
}
public APIRequestGetCrosspostSharedPages requestUnreadMessageCountField (boolean value) {
this.requestField("unread_message_count", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestUnreadNotifCountField () {
return this.requestUnreadNotifCountField(true);
}
public APIRequestGetCrosspostSharedPages requestUnreadNotifCountField (boolean value) {
this.requestField("unread_notif_count", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestUnseenMessageCountField () {
return this.requestUnseenMessageCountField(true);
}
public APIRequestGetCrosspostSharedPages requestUnseenMessageCountField (boolean value) {
this.requestField("unseen_message_count", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestUsernameField () {
return this.requestUsernameField(true);
}
public APIRequestGetCrosspostSharedPages requestUsernameField (boolean value) {
this.requestField("username", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestVerificationStatusField () {
return this.requestVerificationStatusField(true);
}
public APIRequestGetCrosspostSharedPages requestVerificationStatusField (boolean value) {
this.requestField("verification_status", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestVoipInfoField () {
return this.requestVoipInfoField(true);
}
public APIRequestGetCrosspostSharedPages requestVoipInfoField (boolean value) {
this.requestField("voip_info", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestWebsiteField () {
return this.requestWebsiteField(true);
}
public APIRequestGetCrosspostSharedPages requestWebsiteField (boolean value) {
this.requestField("website", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestWereHereCountField () {
return this.requestWereHereCountField(true);
}
public APIRequestGetCrosspostSharedPages requestWereHereCountField (boolean value) {
this.requestField("were_here_count", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestWhatsappNumberField () {
return this.requestWhatsappNumberField(true);
}
public APIRequestGetCrosspostSharedPages requestWhatsappNumberField (boolean value) {
this.requestField("whatsapp_number", value);
return this;
}
public APIRequestGetCrosspostSharedPages requestWrittenByField () {
return this.requestWrittenByField(true);
}
public APIRequestGetCrosspostSharedPages requestWrittenByField (boolean value) {
this.requestField("written_by", value);
return this;
}
}
public static class APIRequestCreateGamingClipCreate extends APIRequest {
AdVideo lastResponse = null;
@Override
public AdVideo getLastResponse() {
return lastResponse;
}
public static final String[] PARAMS = {
"duration_seconds",
};
public static final String[] FIELDS = {
};
@Override
public AdVideo parseResponse(String response, String header) throws APIException {
return AdVideo.parseResponse(response, getContext(), this, header).head();
}
@Override
public AdVideo execute() throws APIException {
return execute(new HashMap());
}
@Override
public AdVideo 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 AdVideo apply(ResponseWrapper result) {
try {
return APIRequestCreateGamingClipCreate.this.parseResponse(result.getBody(), result.getHeader());
} catch (Exception e) {
throw new RuntimeException(e);
}
}
}
);
};
public APIRequestCreateGamingClipCreate(String nodeId, APIContext context) {
super(context, nodeId, "/gaming_clip_create", "POST", Arrays.asList(PARAMS));
}
@Override
public APIRequestCreateGamingClipCreate setParam(String param, Object value) {
setParamInternal(param, value);
return this;
}
@Override
public APIRequestCreateGamingClipCreate setParams(Map params) {
setParamsInternal(params);
return this;
}
public APIRequestCreateGamingClipCreate setDurationSeconds (Double durationSeconds) {
this.setParam("duration_seconds", durationSeconds);
return this;
}
public APIRequestCreateGamingClipCreate setDurationSeconds (String durationSeconds) {
this.setParam("duration_seconds", durationSeconds);
return this;
}
public APIRequestCreateGamingClipCreate requestAllFields () {
return this.requestAllFields(true);
}
public APIRequestCreateGamingClipCreate requestAllFields (boolean value) {
for (String field : FIELDS) {
this.requestField(field, value);
}
return this;
}
@Override
public APIRequestCreateGamingClipCreate requestFields (List fields) {
return this.requestFields(fields, true);
}
@Override
public APIRequestCreateGamingClipCreate requestFields (List fields, boolean value) {
for (String field : fields) {
this.requestField(field, value);
}
return this;
}
@Override
public APIRequestCreateGamingClipCreate requestField (String field) {
this.requestField(field, true);
return this;
}
@Override
public APIRequestCreateGamingClipCreate 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);
}
}
}
);
};
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 {
AdVideo lastResponse = null;
@Override
public AdVideo getLastResponse() {
return lastResponse;
}
public static final String[] PARAMS = {
"feedback_source",
"nectar_module",
"notify",
"tracking",
};
public static final String[] FIELDS = {
};
@Override
public AdVideo parseResponse(String response, String header) throws APIException {
return AdVideo.parseResponse(response, getContext(), this, header).head();
}
@Override
public AdVideo execute() throws APIException {
return execute(new HashMap());
}
@Override
public AdVideo 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 AdVideo apply(ResponseWrapper result) {
try {
return APIRequestCreateLike.this.parseResponse(result.getBody(), result.getHeader());
} catch (Exception e) {
throw new RuntimeException(e);
}
}
}
);
};
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 setNotify (Boolean notify) {
this.setParam("notify", notify);
return this;
}
public APIRequestCreateLike setNotify (String notify) {
this.setParam("notify", notify);
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 APIRequestGetPollSettings 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 APIRequestGetPollSettings.this.parseResponse(result.getBody(), result.getHeader());
} catch (Exception e) {
throw new RuntimeException(e);
}
}
}
);
};
public APIRequestGetPollSettings(String nodeId, APIContext context) {
super(context, nodeId, "/poll_settings", "GET", Arrays.asList(PARAMS));
}
@Override
public APIRequestGetPollSettings setParam(String param, Object value) {
setParamInternal(param, value);
return this;
}
@Override
public APIRequestGetPollSettings setParams(Map params) {
setParamsInternal(params);
return this;
}
public APIRequestGetPollSettings requestAllFields () {
return this.requestAllFields(true);
}
public APIRequestGetPollSettings requestAllFields (boolean value) {
for (String field : FIELDS) {
this.requestField(field, value);
}
return this;
}
@Override
public APIRequestGetPollSettings requestFields (List fields) {
return this.requestFields(fields, true);
}
@Override
public APIRequestGetPollSettings requestFields (List fields, boolean value) {
for (String field : fields) {
this.requestField(field, value);
}
return this;
}
@Override
public APIRequestGetPollSettings requestField (String field) {
this.requestField(field, true);
return this;
}
@Override
public APIRequestGetPollSettings requestField (String field, boolean value) {
this.requestFieldInternal(field, value);
return this;
}
}
public static class APIRequestGetPolls extends APIRequest {
APINodeList lastResponse = null;
@Override
public APINodeList getLastResponse() {
return lastResponse;
}
public static final String[] PARAMS = {
};
public static final String[] FIELDS = {
"close_after_voting",
"default_open",
"id",
"question",
"show_gradient",
"show_results",
"status",
};
@Override
public APINodeList parseResponse(String response, String header) throws APIException {
return VideoPoll.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 APIRequestGetPolls.this.parseResponse(result.getBody(), result.getHeader());
} catch (Exception e) {
throw new RuntimeException(e);
}
}
}
);
};
public APIRequestGetPolls(String nodeId, APIContext context) {
super(context, nodeId, "/polls", "GET", Arrays.asList(PARAMS));
}
@Override
public APIRequestGetPolls setParam(String param, Object value) {
setParamInternal(param, value);
return this;
}
@Override
public APIRequestGetPolls setParams(Map params) {
setParamsInternal(params);
return this;
}
public APIRequestGetPolls requestAllFields () {
return this.requestAllFields(true);
}
public APIRequestGetPolls requestAllFields (boolean value) {
for (String field : FIELDS) {
this.requestField(field, value);
}
return this;
}
@Override
public APIRequestGetPolls requestFields (List fields) {
return this.requestFields(fields, true);
}
@Override
public APIRequestGetPolls requestFields (List fields, boolean value) {
for (String field : fields) {
this.requestField(field, value);
}
return this;
}
@Override
public APIRequestGetPolls requestField (String field) {
this.requestField(field, true);
return this;
}
@Override
public APIRequestGetPolls requestField (String field, boolean value) {
this.requestFieldInternal(field, value);
return this;
}
public APIRequestGetPolls requestCloseAfterVotingField () {
return this.requestCloseAfterVotingField(true);
}
public APIRequestGetPolls requestCloseAfterVotingField (boolean value) {
this.requestField("close_after_voting", value);
return this;
}
public APIRequestGetPolls requestDefaultOpenField () {
return this.requestDefaultOpenField(true);
}
public APIRequestGetPolls requestDefaultOpenField (boolean value) {
this.requestField("default_open", value);
return this;
}
public APIRequestGetPolls requestIdField () {
return this.requestIdField(true);
}
public APIRequestGetPolls requestIdField (boolean value) {
this.requestField("id", value);
return this;
}
public APIRequestGetPolls requestQuestionField () {
return this.requestQuestionField(true);
}
public APIRequestGetPolls requestQuestionField (boolean value) {
this.requestField("question", value);
return this;
}
public APIRequestGetPolls requestShowGradientField () {
return this.requestShowGradientField(true);
}
public APIRequestGetPolls requestShowGradientField (boolean value) {
this.requestField("show_gradient", value);
return this;
}
public APIRequestGetPolls requestShowResultsField () {
return this.requestShowResultsField(true);
}
public APIRequestGetPolls requestShowResultsField (boolean value) {
this.requestField("show_results", value);
return this;
}
public APIRequestGetPolls requestStatusField () {
return this.requestStatusField(true);
}
public APIRequestGetPolls requestStatusField (boolean value) {
this.requestField("status", value);
return this;
}
}
public static class APIRequestCreatePoll extends APIRequest {
VideoPoll lastResponse = null;
@Override
public VideoPoll getLastResponse() {
return lastResponse;
}
public static final String[] PARAMS = {
"close_after_voting",
"correct_option",
"default_open",
"options",
"question",
"show_gradient",
"show_results",
};
public static final String[] FIELDS = {
};
@Override
public VideoPoll parseResponse(String response, String header) throws APIException {
return VideoPoll.parseResponse(response, getContext(), this, header).head();
}
@Override
public VideoPoll execute() throws APIException {
return execute(new HashMap());
}
@Override
public VideoPoll 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 VideoPoll apply(ResponseWrapper result) {
try {
return APIRequestCreatePoll.this.parseResponse(result.getBody(), result.getHeader());
} catch (Exception e) {
throw new RuntimeException(e);
}
}
}
);
};
public APIRequestCreatePoll(String nodeId, APIContext context) {
super(context, nodeId, "/polls", "POST", Arrays.asList(PARAMS));
}
@Override
public APIRequestCreatePoll setParam(String param, Object value) {
setParamInternal(param, value);
return this;
}
@Override
public APIRequestCreatePoll setParams(Map params) {
setParamsInternal(params);
return this;
}
public APIRequestCreatePoll setCloseAfterVoting (Boolean closeAfterVoting) {
this.setParam("close_after_voting", closeAfterVoting);
return this;
}
public APIRequestCreatePoll setCloseAfterVoting (String closeAfterVoting) {
this.setParam("close_after_voting", closeAfterVoting);
return this;
}
public APIRequestCreatePoll setCorrectOption (Long correctOption) {
this.setParam("correct_option", correctOption);
return this;
}
public APIRequestCreatePoll setCorrectOption (String correctOption) {
this.setParam("correct_option", correctOption);
return this;
}
public APIRequestCreatePoll setDefaultOpen (Boolean defaultOpen) {
this.setParam("default_open", defaultOpen);
return this;
}
public APIRequestCreatePoll setDefaultOpen (String defaultOpen) {
this.setParam("default_open", defaultOpen);
return this;
}
public APIRequestCreatePoll setOptions (List options) {
this.setParam("options", options);
return this;
}
public APIRequestCreatePoll setOptions (String options) {
this.setParam("options", options);
return this;
}
public APIRequestCreatePoll setQuestion (String question) {
this.setParam("question", question);
return this;
}
public APIRequestCreatePoll setShowGradient (Boolean showGradient) {
this.setParam("show_gradient", showGradient);
return this;
}
public APIRequestCreatePoll setShowGradient (String showGradient) {
this.setParam("show_gradient", showGradient);
return this;
}
public APIRequestCreatePoll setShowResults (Boolean showResults) {
this.setParam("show_results", showResults);
return this;
}
public APIRequestCreatePoll setShowResults (String showResults) {
this.setParam("show_results", showResults);
return this;
}
public APIRequestCreatePoll requestAllFields () {
return this.requestAllFields(true);
}
public APIRequestCreatePoll requestAllFields (boolean value) {
for (String field : FIELDS) {
this.requestField(field, value);
}
return this;
}
@Override
public APIRequestCreatePoll requestFields (List fields) {
return this.requestFields(fields, true);
}
@Override
public APIRequestCreatePoll requestFields (List fields, boolean value) {
for (String field : fields) {
this.requestField(field, value);
}
return this;
}
@Override
public APIRequestCreatePoll requestField (String field) {
this.requestField(field, true);
return this;
}
@Override
public APIRequestCreatePoll requestField (String field, boolean value) {
this.requestFieldInternal(field, 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",
"awards",
"band_interests",
"band_members",
"best_page",
"bio",
"birthday",
"booking_agent",
"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",
"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_transitioned_to_new_page_experience",
"has_whatsapp_business_number",
"has_whatsapp_number",
"hometown",
"hours",
"id",
"impressum",
"influences",
"instagram_business_account",
"is_always_open",
"is_chain",
"is_community_page",
"is_eligible_for_branded_content",
"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_page_welcome_message",
"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",
"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);
}
}
}
);
};
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 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 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 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 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 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 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 requestMessengerAdsDefaultPageWelcomeMessageField () {
return this.requestMessengerAdsDefaultPageWelcomeMessageField(true);
}
public APIRequestGetSponsorTags requestMessengerAdsDefaultPageWelcomeMessageField (boolean value) {
this.requestField("messenger_ads_default_page_welcome_message", 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 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 APIRequestGetTags 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 APIRequestGetTags.this.parseResponse(result.getBody(), result.getHeader());
} catch (Exception e) {
throw new RuntimeException(e);
}
}
}
);
};
public APIRequestGetTags(String nodeId, APIContext context) {
super(context, nodeId, "/tags", "GET", Arrays.asList(PARAMS));
}
@Override
public APIRequestGetTags setParam(String param, Object value) {
setParamInternal(param, value);
return this;
}
@Override
public APIRequestGetTags setParams(Map params) {
setParamsInternal(params);
return this;
}
public APIRequestGetTags requestAllFields () {
return this.requestAllFields(true);
}
public APIRequestGetTags requestAllFields (boolean value) {
for (String field : FIELDS) {
this.requestField(field, value);
}
return this;
}
@Override
public APIRequestGetTags requestFields (List fields) {
return this.requestFields(fields, true);
}
@Override
public APIRequestGetTags requestFields (List fields, boolean value) {
for (String field : fields) {
this.requestField(field, value);
}
return this;
}
@Override
public APIRequestGetTags requestField (String field) {
this.requestField(field, true);
return this;
}
@Override
public APIRequestGetTags requestField (String field, boolean value) {
this.requestFieldInternal(field, value);
return this;
}
}
public static class APIRequestCreateTag extends APIRequest {
AdVideo lastResponse = null;
@Override
public AdVideo getLastResponse() {
return lastResponse;
}
public static final String[] PARAMS = {
"tag_uid",
"uid",
"vid",
};
public static final String[] FIELDS = {
};
@Override
public AdVideo parseResponse(String response, String header) throws APIException {
return AdVideo.parseResponse(response, getContext(), this, header).head();
}
@Override
public AdVideo execute() throws APIException {
return execute(new HashMap());
}
@Override
public AdVideo 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