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.User Maven / Gradle / Ivy
/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
* All rights reserved.
*
* This source code is licensed under the license found in the
* LICENSE file in the root directory of this source tree.
*/
package com.facebook.ads.sdk;
import java.io.File;
import java.lang.reflect.Modifier;
import java.lang.reflect.Type;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import com.google.common.base.Function;
import com.google.common.util.concurrent.Futures;
import com.google.common.util.concurrent.ListenableFuture;
import com.google.common.util.concurrent.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 User extends APINode {
@SerializedName("about")
private String mAbout = null;
@SerializedName("age_range")
private AgeRange mAgeRange = null;
@SerializedName("avatar_2d_profile_picture")
private AvatarProfilePicture mAvatar2dProfilePicture = null;
@SerializedName("birthday")
private String mBirthday = null;
@SerializedName("community")
private Group mCommunity = null;
@SerializedName("cover")
private UserCoverPhoto mCover = null;
@SerializedName("currency")
private Currency mCurrency = null;
@SerializedName("education")
private List mEducation = null;
@SerializedName("email")
private String mEmail = null;
@SerializedName("favorite_athletes")
private List mFavoriteAthletes = null;
@SerializedName("favorite_teams")
private List mFavoriteTeams = null;
@SerializedName("first_name")
private String mFirstName = null;
@SerializedName("gender")
private String mGender = null;
@SerializedName("hometown")
private Page mHometown = null;
@SerializedName("id")
private String mId = null;
@SerializedName("id_for_avatars")
private String mIdForAvatars = null;
@SerializedName("inspirational_people")
private List mInspirationalPeople = null;
@SerializedName("install_type")
private String mInstallType = null;
@SerializedName("installed")
private Boolean mInstalled = null;
@SerializedName("is_guest_user")
private Boolean mIsGuestUser = null;
@SerializedName("is_work_account")
private Boolean mIsWorkAccount = null;
@SerializedName("languages")
private List mLanguages = null;
@SerializedName("last_name")
private String mLastName = null;
@SerializedName("link")
private String mLink = null;
@SerializedName("local_news_megaphone_dismiss_status")
private Boolean mLocalNewsMegaphoneDismissStatus = null;
@SerializedName("local_news_subscription_status")
private Boolean mLocalNewsSubscriptionStatus = null;
@SerializedName("locale")
private String mLocale = null;
@SerializedName("location")
private Page mLocation = null;
@SerializedName("meeting_for")
private List mMeetingFor = null;
@SerializedName("middle_name")
private String mMiddleName = null;
@SerializedName("name")
private String mName = null;
@SerializedName("name_format")
private String mNameFormat = null;
@SerializedName("payment_pricepoints")
private PaymentPricepoints mPaymentPricepoints = null;
@SerializedName("political")
private String mPolitical = null;
@SerializedName("profile_pic")
private String mProfilePic = null;
@SerializedName("quotes")
private String mQuotes = null;
@SerializedName("relationship_status")
private String mRelationshipStatus = null;
@SerializedName("shared_login_upgrade_required_by")
private String mSharedLoginUpgradeRequiredBy = null;
@SerializedName("short_name")
private String mShortName = null;
@SerializedName("significant_other")
private User mSignificantOther = null;
@SerializedName("sports")
private List mSports = null;
@SerializedName("supports_donate_button_in_live_video")
private Boolean mSupportsDonateButtonInLiveVideo = null;
@SerializedName("third_party_id")
private String mThirdPartyId = null;
@SerializedName("timezone")
private Double mTimezone = null;
@SerializedName("token_for_business")
private String mTokenForBusiness = null;
@SerializedName("updated_time")
private String mUpdatedTime = null;
@SerializedName("verified")
private Boolean mVerified = null;
@SerializedName("video_upload_limits")
private VideoUploadLimits mVideoUploadLimits = null;
@SerializedName("website")
private String mWebsite = null;
protected static Gson gson = null;
User() {
}
public User(Long id, APIContext context) {
this(id.toString(), context);
}
public User(String id, APIContext context) {
this.mId = id;
this.context = context;
}
public User fetch() throws APIException{
User newInstance = fetchById(this.getPrefixedId().toString(), this.context);
this.copyFrom(newInstance);
return this;
}
public static User 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 User 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", User.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", User.getParser())
.setParam("ids", APIRequest.joinStringList(ids))
.requestFields(fields)
.executeAsyncBase();
}
private String getPrefixedId() {
return getId();
}
public String getId() {
return getFieldId().toString();
}
public static User loadJSON(String json, APIContext context, String header) {
User user = getGson().fromJson(json, User.class);
if (context.isDebug()) {
JsonParser parser = new JsonParser();
JsonElement o1 = parser.parse(json);
JsonElement o2 = parser.parse(user.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);
}
}
user.context = context;
user.rawValue = json;
user.header = header;
return user;
}
public static APINodeList parseResponse(String json, APIContext context, APIRequest request, String header) throws MalformedResponseException {
APINodeList users = 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++) {
users.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header));
};
return users;
} 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;
users.setCursors(before, after);
}
String previous = paging.has("previous") ? paging.get("previous").getAsString() : null;
String next = paging.has("next") ? paging.get("next").getAsString() : null;
users.setPaging(previous, next);
if (context.hasAppSecret()) {
users.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++) {
users.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()) {
users.add(loadJSON(entry.getValue().toString(), context, header));
}
break;
}
}
if (!isRedownload) {
users.add(loadJSON(obj.toString(), context, header));
}
}
return users;
} 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()) {
users.add(loadJSON(entry.getValue().toString(), context, header));
}
return users;
} 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)
) {
users.add(loadJSON(value.toString(), context, header));
} else {
isIdIndexedArray = false;
break;
}
}
if (isIdIndexedArray) {
return users;
}
// Sixth, check if it's pure JsonObject
users.clear();
users.add(loadJSON(json, context, header));
return users;
}
}
} 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 APIRequestDeleteAccessTokens deleteAccessTokens() {
return new APIRequestDeleteAccessTokens(this.getPrefixedId().toString(), context);
}
public APIRequestCreateAccessToken createAccessToken() {
return new APIRequestCreateAccessToken(this.getPrefixedId().toString(), context);
}
public APIRequestGetAccounts getAccounts() {
return new APIRequestGetAccounts(this.getPrefixedId().toString(), context);
}
public APIRequestCreateAccount createAccount() {
return new APIRequestCreateAccount(this.getPrefixedId().toString(), context);
}
public APIRequestGetAdStudies getAdStudies() {
return new APIRequestGetAdStudies(this.getPrefixedId().toString(), context);
}
public APIRequestCreateAdStudy createAdStudy() {
return new APIRequestCreateAdStudy(this.getPrefixedId().toString(), context);
}
public APIRequestGetAdAccounts getAdAccounts() {
return new APIRequestGetAdAccounts(this.getPrefixedId().toString(), context);
}
public APIRequestGetAlbums getAlbums() {
return new APIRequestGetAlbums(this.getPrefixedId().toString(), context);
}
public APIRequestCreateApplication createApplication() {
return new APIRequestCreateApplication(this.getPrefixedId().toString(), context);
}
public APIRequestGetAppRequestFormerRecipients getAppRequestFormerRecipients() {
return new APIRequestGetAppRequestFormerRecipients(this.getPrefixedId().toString(), context);
}
public APIRequestGetAppRequests getAppRequests() {
return new APIRequestGetAppRequests(this.getPrefixedId().toString(), context);
}
public APIRequestGetAssignedAdAccounts getAssignedAdAccounts() {
return new APIRequestGetAssignedAdAccounts(this.getPrefixedId().toString(), context);
}
public APIRequestGetAssignedBusinessAssetGroups getAssignedBusinessAssetGroups() {
return new APIRequestGetAssignedBusinessAssetGroups(this.getPrefixedId().toString(), context);
}
public APIRequestGetAssignedPages getAssignedPages() {
return new APIRequestGetAssignedPages(this.getPrefixedId().toString(), context);
}
public APIRequestGetAssignedProductCatalogs getAssignedProductCatalogs() {
return new APIRequestGetAssignedProductCatalogs(this.getPrefixedId().toString(), context);
}
public APIRequestGetAvatars getAvatars() {
return new APIRequestGetAvatars(this.getPrefixedId().toString(), context);
}
public APIRequestGetBusinessUsers getBusinessUsers() {
return new APIRequestGetBusinessUsers(this.getPrefixedId().toString(), context);
}
public APIRequestDeleteBusinesses deleteBusinesses() {
return new APIRequestDeleteBusinesses(this.getPrefixedId().toString(), context);
}
public APIRequestGetBusinesses getBusinesses() {
return new APIRequestGetBusinesses(this.getPrefixedId().toString(), context);
}
public APIRequestCreateBusiness createBusiness() {
return new APIRequestCreateBusiness(this.getPrefixedId().toString(), context);
}
public APIRequestGetConversations getConversations() {
return new APIRequestGetConversations(this.getPrefixedId().toString(), context);
}
public APIRequestGetCustomLabels getCustomLabels() {
return new APIRequestGetCustomLabels(this.getPrefixedId().toString(), context);
}
public APIRequestGetEvents getEvents() {
return new APIRequestGetEvents(this.getPrefixedId().toString(), context);
}
public APIRequestGetFbdlRuns getFbdlRuns() {
return new APIRequestGetFbdlRuns(this.getPrefixedId().toString(), context);
}
public APIRequestGetFeed getFeed() {
return new APIRequestGetFeed(this.getPrefixedId().toString(), context);
}
public APIRequestCreateFeed createFeed() {
return new APIRequestCreateFeed(this.getPrefixedId().toString(), context);
}
public APIRequestGetFriends getFriends() {
return new APIRequestGetFriends(this.getPrefixedId().toString(), context);
}
public APIRequestGetFundraisers getFundraisers() {
return new APIRequestGetFundraisers(this.getPrefixedId().toString(), context);
}
public APIRequestCreateFundraiser createFundraiser() {
return new APIRequestCreateFundraiser(this.getPrefixedId().toString(), context);
}
public APIRequestCreateGameItem createGameItem() {
return new APIRequestCreateGameItem(this.getPrefixedId().toString(), context);
}
public APIRequestCreateGameTime createGameTime() {
return new APIRequestCreateGameTime(this.getPrefixedId().toString(), context);
}
public APIRequestGetGroups getGroups() {
return new APIRequestGetGroups(this.getPrefixedId().toString(), context);
}
public APIRequestGetIdsForApps getIdsForApps() {
return new APIRequestGetIdsForApps(this.getPrefixedId().toString(), context);
}
public APIRequestGetIdsForBusiness getIdsForBusiness() {
return new APIRequestGetIdsForBusiness(this.getPrefixedId().toString(), context);
}
public APIRequestGetIdsForPages getIdsForPages() {
return new APIRequestGetIdsForPages(this.getPrefixedId().toString(), context);
}
public APIRequestGetLikes getLikes() {
return new APIRequestGetLikes(this.getPrefixedId().toString(), context);
}
public APIRequestGetLiveVideos getLiveVideos() {
return new APIRequestGetLiveVideos(this.getPrefixedId().toString(), context);
}
public APIRequestCreateLiveVideo createLiveVideo() {
return new APIRequestCreateLiveVideo(this.getPrefixedId().toString(), context);
}
public APIRequestCreateMessengerDesktopPerformanceTrace createMessengerDesktopPerformanceTrace() {
return new APIRequestCreateMessengerDesktopPerformanceTrace(this.getPrefixedId().toString(), context);
}
public APIRequestGetMusic getMusic() {
return new APIRequestGetMusic(this.getPrefixedId().toString(), context);
}
public APIRequestCreateNotification createNotification() {
return new APIRequestCreateNotification(this.getPrefixedId().toString(), context);
}
public APIRequestGetPaymentTransactions getPaymentTransactions() {
return new APIRequestGetPaymentTransactions(this.getPrefixedId().toString(), context);
}
public APIRequestDeletePermissions deletePermissions() {
return new APIRequestDeletePermissions(this.getPrefixedId().toString(), context);
}
public APIRequestGetPermissions getPermissions() {
return new APIRequestGetPermissions(this.getPrefixedId().toString(), context);
}
public APIRequestGetPersonalAdAccounts getPersonalAdAccounts() {
return new APIRequestGetPersonalAdAccounts(this.getPrefixedId().toString(), context);
}
public APIRequestGetPhotos getPhotos() {
return new APIRequestGetPhotos(this.getPrefixedId().toString(), context);
}
public APIRequestCreatePhoto createPhoto() {
return new APIRequestCreatePhoto(this.getPrefixedId().toString(), context);
}
public APIRequestGetPicture getPicture() {
return new APIRequestGetPicture(this.getPrefixedId().toString(), context);
}
public APIRequestGetPosts getPosts() {
return new APIRequestGetPosts(this.getPrefixedId().toString(), context);
}
public APIRequestGetRichMediaDocuments getRichMediaDocuments() {
return new APIRequestGetRichMediaDocuments(this.getPrefixedId().toString(), context);
}
public APIRequestCreateStagingResource createStagingResource() {
return new APIRequestCreateStagingResource(this.getPrefixedId().toString(), context);
}
public APIRequestGetVideos getVideos() {
return new APIRequestGetVideos(this.getPrefixedId().toString(), context);
}
public APIRequestCreateVideo createVideo() {
return new APIRequestCreateVideo(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 String getFieldAbout() {
return mAbout;
}
public AgeRange getFieldAgeRange() {
return mAgeRange;
}
public AvatarProfilePicture getFieldAvatar2dProfilePicture() {
if (mAvatar2dProfilePicture != null) {
mAvatar2dProfilePicture.context = getContext();
}
return mAvatar2dProfilePicture;
}
public String getFieldBirthday() {
return mBirthday;
}
public Group getFieldCommunity() {
if (mCommunity != null) {
mCommunity.context = getContext();
}
return mCommunity;
}
public UserCoverPhoto getFieldCover() {
return mCover;
}
public Currency getFieldCurrency() {
return mCurrency;
}
public List getFieldEducation() {
return mEducation;
}
public String getFieldEmail() {
return mEmail;
}
public List getFieldFavoriteAthletes() {
return mFavoriteAthletes;
}
public List getFieldFavoriteTeams() {
return mFavoriteTeams;
}
public String getFieldFirstName() {
return mFirstName;
}
public String getFieldGender() {
return mGender;
}
public Page getFieldHometown() {
if (mHometown != null) {
mHometown.context = getContext();
}
return mHometown;
}
public String getFieldId() {
return mId;
}
public String getFieldIdForAvatars() {
return mIdForAvatars;
}
public List getFieldInspirationalPeople() {
return mInspirationalPeople;
}
public String getFieldInstallType() {
return mInstallType;
}
public Boolean getFieldInstalled() {
return mInstalled;
}
public Boolean getFieldIsGuestUser() {
return mIsGuestUser;
}
public Boolean getFieldIsWorkAccount() {
return mIsWorkAccount;
}
public List getFieldLanguages() {
return mLanguages;
}
public String getFieldLastName() {
return mLastName;
}
public String getFieldLink() {
return mLink;
}
public Boolean getFieldLocalNewsMegaphoneDismissStatus() {
return mLocalNewsMegaphoneDismissStatus;
}
public Boolean getFieldLocalNewsSubscriptionStatus() {
return mLocalNewsSubscriptionStatus;
}
public String getFieldLocale() {
return mLocale;
}
public Page getFieldLocation() {
if (mLocation != null) {
mLocation.context = getContext();
}
return mLocation;
}
public List getFieldMeetingFor() {
return mMeetingFor;
}
public String getFieldMiddleName() {
return mMiddleName;
}
public String getFieldName() {
return mName;
}
public String getFieldNameFormat() {
return mNameFormat;
}
public PaymentPricepoints getFieldPaymentPricepoints() {
return mPaymentPricepoints;
}
public String getFieldPolitical() {
return mPolitical;
}
public String getFieldProfilePic() {
return mProfilePic;
}
public String getFieldQuotes() {
return mQuotes;
}
public String getFieldRelationshipStatus() {
return mRelationshipStatus;
}
public String getFieldSharedLoginUpgradeRequiredBy() {
return mSharedLoginUpgradeRequiredBy;
}
public String getFieldShortName() {
return mShortName;
}
public User getFieldSignificantOther() {
if (mSignificantOther != null) {
mSignificantOther.context = getContext();
}
return mSignificantOther;
}
public List getFieldSports() {
return mSports;
}
public Boolean getFieldSupportsDonateButtonInLiveVideo() {
return mSupportsDonateButtonInLiveVideo;
}
public String getFieldThirdPartyId() {
return mThirdPartyId;
}
public Double getFieldTimezone() {
return mTimezone;
}
public String getFieldTokenForBusiness() {
return mTokenForBusiness;
}
public String getFieldUpdatedTime() {
return mUpdatedTime;
}
public Boolean getFieldVerified() {
return mVerified;
}
public VideoUploadLimits getFieldVideoUploadLimits() {
return mVideoUploadLimits;
}
public String getFieldWebsite() {
return mWebsite;
}
public static class APIRequestDeleteAccessTokens 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 APIRequestDeleteAccessTokens.this.parseResponse(result.getBody(), result.getHeader());
} catch (Exception e) {
throw new RuntimeException(e);
}
}
}
);
};
public APIRequestDeleteAccessTokens(String nodeId, APIContext context) {
super(context, nodeId, "/access_tokens", "DELETE", Arrays.asList(PARAMS));
}
@Override
public APIRequestDeleteAccessTokens setParam(String param, Object value) {
setParamInternal(param, value);
return this;
}
@Override
public APIRequestDeleteAccessTokens setParams(Map params) {
setParamsInternal(params);
return this;
}
public APIRequestDeleteAccessTokens requestAllFields () {
return this.requestAllFields(true);
}
public APIRequestDeleteAccessTokens requestAllFields (boolean value) {
for (String field : FIELDS) {
this.requestField(field, value);
}
return this;
}
@Override
public APIRequestDeleteAccessTokens requestFields (List fields) {
return this.requestFields(fields, true);
}
@Override
public APIRequestDeleteAccessTokens requestFields (List fields, boolean value) {
for (String field : fields) {
this.requestField(field, value);
}
return this;
}
@Override
public APIRequestDeleteAccessTokens requestField (String field) {
this.requestField(field, true);
return this;
}
@Override
public APIRequestDeleteAccessTokens requestField (String field, boolean value) {
this.requestFieldInternal(field, value);
return this;
}
}
public static class APIRequestCreateAccessToken extends APIRequest {
User lastResponse = null;
@Override
public User getLastResponse() {
return lastResponse;
}
public static final String[] PARAMS = {
"business_app",
"page_id",
"scope",
"set_token_expires_in_60_days",
};
public static final String[] FIELDS = {
};
@Override
public User parseResponse(String response, String header) throws APIException {
return User.parseResponse(response, getContext(), this, header).head();
}
@Override
public User execute() throws APIException {
return execute(new HashMap());
}
@Override
public User 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 User apply(ResponseWrapper result) {
try {
return APIRequestCreateAccessToken.this.parseResponse(result.getBody(), result.getHeader());
} catch (Exception e) {
throw new RuntimeException(e);
}
}
}
);
};
public APIRequestCreateAccessToken(String nodeId, APIContext context) {
super(context, nodeId, "/access_tokens", "POST", Arrays.asList(PARAMS));
}
@Override
public APIRequestCreateAccessToken setParam(String param, Object value) {
setParamInternal(param, value);
return this;
}
@Override
public APIRequestCreateAccessToken setParams(Map params) {
setParamsInternal(params);
return this;
}
public APIRequestCreateAccessToken setBusinessApp (Long businessApp) {
this.setParam("business_app", businessApp);
return this;
}
public APIRequestCreateAccessToken setBusinessApp (String businessApp) {
this.setParam("business_app", businessApp);
return this;
}
public APIRequestCreateAccessToken setPageId (String pageId) {
this.setParam("page_id", pageId);
return this;
}
public APIRequestCreateAccessToken setScope (List scope) {
this.setParam("scope", scope);
return this;
}
public APIRequestCreateAccessToken setScope (String scope) {
this.setParam("scope", scope);
return this;
}
public APIRequestCreateAccessToken setSetTokenExpiresIn60Days (Boolean setTokenExpiresIn60Days) {
this.setParam("set_token_expires_in_60_days", setTokenExpiresIn60Days);
return this;
}
public APIRequestCreateAccessToken setSetTokenExpiresIn60Days (String setTokenExpiresIn60Days) {
this.setParam("set_token_expires_in_60_days", setTokenExpiresIn60Days);
return this;
}
public APIRequestCreateAccessToken requestAllFields () {
return this.requestAllFields(true);
}
public APIRequestCreateAccessToken requestAllFields (boolean value) {
for (String field : FIELDS) {
this.requestField(field, value);
}
return this;
}
@Override
public APIRequestCreateAccessToken requestFields (List fields) {
return this.requestFields(fields, true);
}
@Override
public APIRequestCreateAccessToken requestFields (List fields, boolean value) {
for (String field : fields) {
this.requestField(field, value);
}
return this;
}
@Override
public APIRequestCreateAccessToken requestField (String field) {
this.requestField(field, true);
return this;
}
@Override
public APIRequestCreateAccessToken requestField (String field, boolean value) {
this.requestFieldInternal(field, value);
return this;
}
}
public static class APIRequestGetAccounts extends APIRequest {
APINodeList lastResponse = null;
@Override
public APINodeList getLastResponse() {
return lastResponse;
}
public static final String[] PARAMS = {
"is_place",
"is_promotable",
};
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",
"does_viewer_have_page_permission_link_ig",
"emails",
"engagement",
"fan_count",
"featured_video",
"features",
"followers_count",
"food_styles",
"founded",
"general_info",
"general_manager",
"genre",
"global_brand_page_name",
"global_brand_root_id",
"has_added_app",
"has_lead_access",
"has_transitioned_to_new_page_experience",
"has_whatsapp_business_number",
"has_whatsapp_enterprise_number_using_cloud_api",
"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_eligible_for_disable_connect_ig_btn_for_non_page_admin_am_web",
"is_messenger_bot_get_started_enabled",
"is_messenger_platform_bot",
"is_owned",
"is_permanently_closed",
"is_published",
"is_unclaimed",
"is_verified",
"is_webhooks_subscribed",
"keywords",
"leadgen_tos_acceptance_time",
"leadgen_tos_accepted",
"leadgen_tos_accepting_user",
"link",
"location",
"members",
"merchant_id",
"merchant_review_status",
"messaging_feature_status",
"messenger_ads_default_icebreakers",
"messenger_ads_default_quick_replies",
"messenger_ads_quick_replies_type",
"mini_shop_storefront",
"mission",
"mpg",
"name",
"name_with_location_descriptor",
"network",
"new_like_count",
"offer_eligible",
"overall_star_rating",
"owner_business",
"page_about_story",
"page_token",
"parent_page",
"parking",
"payment_options",
"personal_info",
"personal_interests",
"pharma_safety_info",
"phone",
"pickup_options",
"place_type",
"plot_outline",
"preferred_audience",
"press_contact",
"price_range",
"privacy_info_url",
"produced_by",
"products",
"promotion_eligible",
"promotion_ineligible_reason",
"public_transit",
"rating_count",
"recipient",
"record_label",
"release_date",
"restaurant_services",
"restaurant_specialties",
"schedule",
"screenplay_by",
"season",
"single_line_address",
"starring",
"start_info",
"store_code",
"store_location_descriptor",
"store_number",
"studio",
"supports_donate_button_in_live_video",
"talking_about_count",
"temporary_status",
"unread_message_count",
"unread_notif_count",
"unseen_message_count",
"user_access_expire_time",
"username",
"verification_status",
"voip_info",
"website",
"were_here_count",
"whatsapp_number",
"written_by",
};
@Override
public APINodeList parseResponse(String response, String header) throws APIException {
return Page.parseResponse(response, getContext(), this, header);
}
@Override
public APINodeList execute() throws APIException {
return execute(new HashMap());
}
@Override
public APINodeList execute(Map extraParams) throws APIException {
ResponseWrapper rw = executeInternal(extraParams);
lastResponse = parseResponse(rw.getBody(),rw.getHeader());
return lastResponse;
}
public ListenableFuture> executeAsync() throws APIException {
return executeAsync(new HashMap());
};
public ListenableFuture> executeAsync(Map extraParams) throws APIException {
return Futures.transform(
executeAsyncInternal(extraParams),
new Function>() {
public APINodeList apply(ResponseWrapper result) {
try {
return APIRequestGetAccounts.this.parseResponse(result.getBody(), result.getHeader());
} catch (Exception e) {
throw new RuntimeException(e);
}
}
}
);
};
public APIRequestGetAccounts(String nodeId, APIContext context) {
super(context, nodeId, "/accounts", "GET", Arrays.asList(PARAMS));
}
@Override
public APIRequestGetAccounts setParam(String param, Object value) {
setParamInternal(param, value);
return this;
}
@Override
public APIRequestGetAccounts setParams(Map params) {
setParamsInternal(params);
return this;
}
public APIRequestGetAccounts setIsPlace (Boolean isPlace) {
this.setParam("is_place", isPlace);
return this;
}
public APIRequestGetAccounts setIsPlace (String isPlace) {
this.setParam("is_place", isPlace);
return this;
}
public APIRequestGetAccounts setIsPromotable (Boolean isPromotable) {
this.setParam("is_promotable", isPromotable);
return this;
}
public APIRequestGetAccounts setIsPromotable (String isPromotable) {
this.setParam("is_promotable", isPromotable);
return this;
}
public APIRequestGetAccounts requestAllFields () {
return this.requestAllFields(true);
}
public APIRequestGetAccounts requestAllFields (boolean value) {
for (String field : FIELDS) {
this.requestField(field, value);
}
return this;
}
@Override
public APIRequestGetAccounts requestFields (List fields) {
return this.requestFields(fields, true);
}
@Override
public APIRequestGetAccounts requestFields (List fields, boolean value) {
for (String field : fields) {
this.requestField(field, value);
}
return this;
}
@Override
public APIRequestGetAccounts requestField (String field) {
this.requestField(field, true);
return this;
}
@Override
public APIRequestGetAccounts requestField (String field, boolean value) {
this.requestFieldInternal(field, value);
return this;
}
public APIRequestGetAccounts requestAboutField () {
return this.requestAboutField(true);
}
public APIRequestGetAccounts requestAboutField (boolean value) {
this.requestField("about", value);
return this;
}
public APIRequestGetAccounts requestAccessTokenField () {
return this.requestAccessTokenField(true);
}
public APIRequestGetAccounts requestAccessTokenField (boolean value) {
this.requestField("access_token", value);
return this;
}
public APIRequestGetAccounts requestAdCampaignField () {
return this.requestAdCampaignField(true);
}
public APIRequestGetAccounts requestAdCampaignField (boolean value) {
this.requestField("ad_campaign", value);
return this;
}
public APIRequestGetAccounts requestAffiliationField () {
return this.requestAffiliationField(true);
}
public APIRequestGetAccounts requestAffiliationField (boolean value) {
this.requestField("affiliation", value);
return this;
}
public APIRequestGetAccounts requestAppIdField () {
return this.requestAppIdField(true);
}
public APIRequestGetAccounts requestAppIdField (boolean value) {
this.requestField("app_id", value);
return this;
}
public APIRequestGetAccounts requestArtistsWeLikeField () {
return this.requestArtistsWeLikeField(true);
}
public APIRequestGetAccounts requestArtistsWeLikeField (boolean value) {
this.requestField("artists_we_like", value);
return this;
}
public APIRequestGetAccounts requestAttireField () {
return this.requestAttireField(true);
}
public APIRequestGetAccounts requestAttireField (boolean value) {
this.requestField("attire", value);
return this;
}
public APIRequestGetAccounts requestAwardsField () {
return this.requestAwardsField(true);
}
public APIRequestGetAccounts requestAwardsField (boolean value) {
this.requestField("awards", value);
return this;
}
public APIRequestGetAccounts requestBandInterestsField () {
return this.requestBandInterestsField(true);
}
public APIRequestGetAccounts requestBandInterestsField (boolean value) {
this.requestField("band_interests", value);
return this;
}
public APIRequestGetAccounts requestBandMembersField () {
return this.requestBandMembersField(true);
}
public APIRequestGetAccounts requestBandMembersField (boolean value) {
this.requestField("band_members", value);
return this;
}
public APIRequestGetAccounts requestBestPageField () {
return this.requestBestPageField(true);
}
public APIRequestGetAccounts requestBestPageField (boolean value) {
this.requestField("best_page", value);
return this;
}
public APIRequestGetAccounts requestBioField () {
return this.requestBioField(true);
}
public APIRequestGetAccounts requestBioField (boolean value) {
this.requestField("bio", value);
return this;
}
public APIRequestGetAccounts requestBirthdayField () {
return this.requestBirthdayField(true);
}
public APIRequestGetAccounts requestBirthdayField (boolean value) {
this.requestField("birthday", value);
return this;
}
public APIRequestGetAccounts requestBookingAgentField () {
return this.requestBookingAgentField(true);
}
public APIRequestGetAccounts requestBookingAgentField (boolean value) {
this.requestField("booking_agent", value);
return this;
}
public APIRequestGetAccounts requestBuiltField () {
return this.requestBuiltField(true);
}
public APIRequestGetAccounts requestBuiltField (boolean value) {
this.requestField("built", value);
return this;
}
public APIRequestGetAccounts requestBusinessField () {
return this.requestBusinessField(true);
}
public APIRequestGetAccounts requestBusinessField (boolean value) {
this.requestField("business", value);
return this;
}
public APIRequestGetAccounts requestCanCheckinField () {
return this.requestCanCheckinField(true);
}
public APIRequestGetAccounts requestCanCheckinField (boolean value) {
this.requestField("can_checkin", value);
return this;
}
public APIRequestGetAccounts requestCanPostField () {
return this.requestCanPostField(true);
}
public APIRequestGetAccounts requestCanPostField (boolean value) {
this.requestField("can_post", value);
return this;
}
public APIRequestGetAccounts requestCategoryField () {
return this.requestCategoryField(true);
}
public APIRequestGetAccounts requestCategoryField (boolean value) {
this.requestField("category", value);
return this;
}
public APIRequestGetAccounts requestCategoryListField () {
return this.requestCategoryListField(true);
}
public APIRequestGetAccounts requestCategoryListField (boolean value) {
this.requestField("category_list", value);
return this;
}
public APIRequestGetAccounts requestCheckinsField () {
return this.requestCheckinsField(true);
}
public APIRequestGetAccounts requestCheckinsField (boolean value) {
this.requestField("checkins", value);
return this;
}
public APIRequestGetAccounts requestCompanyOverviewField () {
return this.requestCompanyOverviewField(true);
}
public APIRequestGetAccounts requestCompanyOverviewField (boolean value) {
this.requestField("company_overview", value);
return this;
}
public APIRequestGetAccounts requestConnectedInstagramAccountField () {
return this.requestConnectedInstagramAccountField(true);
}
public APIRequestGetAccounts requestConnectedInstagramAccountField (boolean value) {
this.requestField("connected_instagram_account", value);
return this;
}
public APIRequestGetAccounts requestConnectedPageBackedInstagramAccountField () {
return this.requestConnectedPageBackedInstagramAccountField(true);
}
public APIRequestGetAccounts requestConnectedPageBackedInstagramAccountField (boolean value) {
this.requestField("connected_page_backed_instagram_account", value);
return this;
}
public APIRequestGetAccounts requestContactAddressField () {
return this.requestContactAddressField(true);
}
public APIRequestGetAccounts requestContactAddressField (boolean value) {
this.requestField("contact_address", value);
return this;
}
public APIRequestGetAccounts requestCopyrightWhitelistedIgPartnersField () {
return this.requestCopyrightWhitelistedIgPartnersField(true);
}
public APIRequestGetAccounts requestCopyrightWhitelistedIgPartnersField (boolean value) {
this.requestField("copyright_whitelisted_ig_partners", value);
return this;
}
public APIRequestGetAccounts requestCountryPageLikesField () {
return this.requestCountryPageLikesField(true);
}
public APIRequestGetAccounts requestCountryPageLikesField (boolean value) {
this.requestField("country_page_likes", value);
return this;
}
public APIRequestGetAccounts requestCoverField () {
return this.requestCoverField(true);
}
public APIRequestGetAccounts requestCoverField (boolean value) {
this.requestField("cover", value);
return this;
}
public APIRequestGetAccounts requestCulinaryTeamField () {
return this.requestCulinaryTeamField(true);
}
public APIRequestGetAccounts requestCulinaryTeamField (boolean value) {
this.requestField("culinary_team", value);
return this;
}
public APIRequestGetAccounts requestCurrentLocationField () {
return this.requestCurrentLocationField(true);
}
public APIRequestGetAccounts requestCurrentLocationField (boolean value) {
this.requestField("current_location", value);
return this;
}
public APIRequestGetAccounts requestDeliveryAndPickupOptionInfoField () {
return this.requestDeliveryAndPickupOptionInfoField(true);
}
public APIRequestGetAccounts requestDeliveryAndPickupOptionInfoField (boolean value) {
this.requestField("delivery_and_pickup_option_info", value);
return this;
}
public APIRequestGetAccounts requestDescriptionField () {
return this.requestDescriptionField(true);
}
public APIRequestGetAccounts requestDescriptionField (boolean value) {
this.requestField("description", value);
return this;
}
public APIRequestGetAccounts requestDescriptionHtmlField () {
return this.requestDescriptionHtmlField(true);
}
public APIRequestGetAccounts requestDescriptionHtmlField (boolean value) {
this.requestField("description_html", value);
return this;
}
public APIRequestGetAccounts requestDifferentlyOpenOfferingsField () {
return this.requestDifferentlyOpenOfferingsField(true);
}
public APIRequestGetAccounts requestDifferentlyOpenOfferingsField (boolean value) {
this.requestField("differently_open_offerings", value);
return this;
}
public APIRequestGetAccounts requestDirectedByField () {
return this.requestDirectedByField(true);
}
public APIRequestGetAccounts requestDirectedByField (boolean value) {
this.requestField("directed_by", value);
return this;
}
public APIRequestGetAccounts requestDisplaySubtextField () {
return this.requestDisplaySubtextField(true);
}
public APIRequestGetAccounts requestDisplaySubtextField (boolean value) {
this.requestField("display_subtext", value);
return this;
}
public APIRequestGetAccounts requestDisplayedMessageResponseTimeField () {
return this.requestDisplayedMessageResponseTimeField(true);
}
public APIRequestGetAccounts requestDisplayedMessageResponseTimeField (boolean value) {
this.requestField("displayed_message_response_time", value);
return this;
}
public APIRequestGetAccounts requestDoesViewerHavePagePermissionLinkIgField () {
return this.requestDoesViewerHavePagePermissionLinkIgField(true);
}
public APIRequestGetAccounts requestDoesViewerHavePagePermissionLinkIgField (boolean value) {
this.requestField("does_viewer_have_page_permission_link_ig", value);
return this;
}
public APIRequestGetAccounts requestEmailsField () {
return this.requestEmailsField(true);
}
public APIRequestGetAccounts requestEmailsField (boolean value) {
this.requestField("emails", value);
return this;
}
public APIRequestGetAccounts requestEngagementField () {
return this.requestEngagementField(true);
}
public APIRequestGetAccounts requestEngagementField (boolean value) {
this.requestField("engagement", value);
return this;
}
public APIRequestGetAccounts requestFanCountField () {
return this.requestFanCountField(true);
}
public APIRequestGetAccounts requestFanCountField (boolean value) {
this.requestField("fan_count", value);
return this;
}
public APIRequestGetAccounts requestFeaturedVideoField () {
return this.requestFeaturedVideoField(true);
}
public APIRequestGetAccounts requestFeaturedVideoField (boolean value) {
this.requestField("featured_video", value);
return this;
}
public APIRequestGetAccounts requestFeaturesField () {
return this.requestFeaturesField(true);
}
public APIRequestGetAccounts requestFeaturesField (boolean value) {
this.requestField("features", value);
return this;
}
public APIRequestGetAccounts requestFollowersCountField () {
return this.requestFollowersCountField(true);
}
public APIRequestGetAccounts requestFollowersCountField (boolean value) {
this.requestField("followers_count", value);
return this;
}
public APIRequestGetAccounts requestFoodStylesField () {
return this.requestFoodStylesField(true);
}
public APIRequestGetAccounts requestFoodStylesField (boolean value) {
this.requestField("food_styles", value);
return this;
}
public APIRequestGetAccounts requestFoundedField () {
return this.requestFoundedField(true);
}
public APIRequestGetAccounts requestFoundedField (boolean value) {
this.requestField("founded", value);
return this;
}
public APIRequestGetAccounts requestGeneralInfoField () {
return this.requestGeneralInfoField(true);
}
public APIRequestGetAccounts requestGeneralInfoField (boolean value) {
this.requestField("general_info", value);
return this;
}
public APIRequestGetAccounts requestGeneralManagerField () {
return this.requestGeneralManagerField(true);
}
public APIRequestGetAccounts requestGeneralManagerField (boolean value) {
this.requestField("general_manager", value);
return this;
}
public APIRequestGetAccounts requestGenreField () {
return this.requestGenreField(true);
}
public APIRequestGetAccounts requestGenreField (boolean value) {
this.requestField("genre", value);
return this;
}
public APIRequestGetAccounts requestGlobalBrandPageNameField () {
return this.requestGlobalBrandPageNameField(true);
}
public APIRequestGetAccounts requestGlobalBrandPageNameField (boolean value) {
this.requestField("global_brand_page_name", value);
return this;
}
public APIRequestGetAccounts requestGlobalBrandRootIdField () {
return this.requestGlobalBrandRootIdField(true);
}
public APIRequestGetAccounts requestGlobalBrandRootIdField (boolean value) {
this.requestField("global_brand_root_id", value);
return this;
}
public APIRequestGetAccounts requestHasAddedAppField () {
return this.requestHasAddedAppField(true);
}
public APIRequestGetAccounts requestHasAddedAppField (boolean value) {
this.requestField("has_added_app", value);
return this;
}
public APIRequestGetAccounts requestHasLeadAccessField () {
return this.requestHasLeadAccessField(true);
}
public APIRequestGetAccounts requestHasLeadAccessField (boolean value) {
this.requestField("has_lead_access", value);
return this;
}
public APIRequestGetAccounts requestHasTransitionedToNewPageExperienceField () {
return this.requestHasTransitionedToNewPageExperienceField(true);
}
public APIRequestGetAccounts requestHasTransitionedToNewPageExperienceField (boolean value) {
this.requestField("has_transitioned_to_new_page_experience", value);
return this;
}
public APIRequestGetAccounts requestHasWhatsappBusinessNumberField () {
return this.requestHasWhatsappBusinessNumberField(true);
}
public APIRequestGetAccounts requestHasWhatsappBusinessNumberField (boolean value) {
this.requestField("has_whatsapp_business_number", value);
return this;
}
public APIRequestGetAccounts requestHasWhatsappEnterpriseNumberUsingCloudApiField () {
return this.requestHasWhatsappEnterpriseNumberUsingCloudApiField(true);
}
public APIRequestGetAccounts requestHasWhatsappEnterpriseNumberUsingCloudApiField (boolean value) {
this.requestField("has_whatsapp_enterprise_number_using_cloud_api", value);
return this;
}
public APIRequestGetAccounts requestHasWhatsappNumberField () {
return this.requestHasWhatsappNumberField(true);
}
public APIRequestGetAccounts requestHasWhatsappNumberField (boolean value) {
this.requestField("has_whatsapp_number", value);
return this;
}
public APIRequestGetAccounts requestHometownField () {
return this.requestHometownField(true);
}
public APIRequestGetAccounts requestHometownField (boolean value) {
this.requestField("hometown", value);
return this;
}
public APIRequestGetAccounts requestHoursField () {
return this.requestHoursField(true);
}
public APIRequestGetAccounts requestHoursField (boolean value) {
this.requestField("hours", value);
return this;
}
public APIRequestGetAccounts requestIdField () {
return this.requestIdField(true);
}
public APIRequestGetAccounts requestIdField (boolean value) {
this.requestField("id", value);
return this;
}
public APIRequestGetAccounts requestImpressumField () {
return this.requestImpressumField(true);
}
public APIRequestGetAccounts requestImpressumField (boolean value) {
this.requestField("impressum", value);
return this;
}
public APIRequestGetAccounts requestInfluencesField () {
return this.requestInfluencesField(true);
}
public APIRequestGetAccounts requestInfluencesField (boolean value) {
this.requestField("influences", value);
return this;
}
public APIRequestGetAccounts requestInstagramBusinessAccountField () {
return this.requestInstagramBusinessAccountField(true);
}
public APIRequestGetAccounts requestInstagramBusinessAccountField (boolean value) {
this.requestField("instagram_business_account", value);
return this;
}
public APIRequestGetAccounts requestIsAlwaysOpenField () {
return this.requestIsAlwaysOpenField(true);
}
public APIRequestGetAccounts requestIsAlwaysOpenField (boolean value) {
this.requestField("is_always_open", value);
return this;
}
public APIRequestGetAccounts requestIsChainField () {
return this.requestIsChainField(true);
}
public APIRequestGetAccounts requestIsChainField (boolean value) {
this.requestField("is_chain", value);
return this;
}
public APIRequestGetAccounts requestIsCommunityPageField () {
return this.requestIsCommunityPageField(true);
}
public APIRequestGetAccounts requestIsCommunityPageField (boolean value) {
this.requestField("is_community_page", value);
return this;
}
public APIRequestGetAccounts requestIsEligibleForBrandedContentField () {
return this.requestIsEligibleForBrandedContentField(true);
}
public APIRequestGetAccounts requestIsEligibleForBrandedContentField (boolean value) {
this.requestField("is_eligible_for_branded_content", value);
return this;
}
public APIRequestGetAccounts requestIsEligibleForDisableConnectIgBtnForNonPageAdminAmWebField () {
return this.requestIsEligibleForDisableConnectIgBtnForNonPageAdminAmWebField(true);
}
public APIRequestGetAccounts requestIsEligibleForDisableConnectIgBtnForNonPageAdminAmWebField (boolean value) {
this.requestField("is_eligible_for_disable_connect_ig_btn_for_non_page_admin_am_web", value);
return this;
}
public APIRequestGetAccounts requestIsMessengerBotGetStartedEnabledField () {
return this.requestIsMessengerBotGetStartedEnabledField(true);
}
public APIRequestGetAccounts requestIsMessengerBotGetStartedEnabledField (boolean value) {
this.requestField("is_messenger_bot_get_started_enabled", value);
return this;
}
public APIRequestGetAccounts requestIsMessengerPlatformBotField () {
return this.requestIsMessengerPlatformBotField(true);
}
public APIRequestGetAccounts requestIsMessengerPlatformBotField (boolean value) {
this.requestField("is_messenger_platform_bot", value);
return this;
}
public APIRequestGetAccounts requestIsOwnedField () {
return this.requestIsOwnedField(true);
}
public APIRequestGetAccounts requestIsOwnedField (boolean value) {
this.requestField("is_owned", value);
return this;
}
public APIRequestGetAccounts requestIsPermanentlyClosedField () {
return this.requestIsPermanentlyClosedField(true);
}
public APIRequestGetAccounts requestIsPermanentlyClosedField (boolean value) {
this.requestField("is_permanently_closed", value);
return this;
}
public APIRequestGetAccounts requestIsPublishedField () {
return this.requestIsPublishedField(true);
}
public APIRequestGetAccounts requestIsPublishedField (boolean value) {
this.requestField("is_published", value);
return this;
}
public APIRequestGetAccounts requestIsUnclaimedField () {
return this.requestIsUnclaimedField(true);
}
public APIRequestGetAccounts requestIsUnclaimedField (boolean value) {
this.requestField("is_unclaimed", value);
return this;
}
public APIRequestGetAccounts requestIsVerifiedField () {
return this.requestIsVerifiedField(true);
}
public APIRequestGetAccounts requestIsVerifiedField (boolean value) {
this.requestField("is_verified", value);
return this;
}
public APIRequestGetAccounts requestIsWebhooksSubscribedField () {
return this.requestIsWebhooksSubscribedField(true);
}
public APIRequestGetAccounts requestIsWebhooksSubscribedField (boolean value) {
this.requestField("is_webhooks_subscribed", value);
return this;
}
public APIRequestGetAccounts requestKeywordsField () {
return this.requestKeywordsField(true);
}
public APIRequestGetAccounts requestKeywordsField (boolean value) {
this.requestField("keywords", value);
return this;
}
public APIRequestGetAccounts requestLeadgenTosAcceptanceTimeField () {
return this.requestLeadgenTosAcceptanceTimeField(true);
}
public APIRequestGetAccounts requestLeadgenTosAcceptanceTimeField (boolean value) {
this.requestField("leadgen_tos_acceptance_time", value);
return this;
}
public APIRequestGetAccounts requestLeadgenTosAcceptedField () {
return this.requestLeadgenTosAcceptedField(true);
}
public APIRequestGetAccounts requestLeadgenTosAcceptedField (boolean value) {
this.requestField("leadgen_tos_accepted", value);
return this;
}
public APIRequestGetAccounts requestLeadgenTosAcceptingUserField () {
return this.requestLeadgenTosAcceptingUserField(true);
}
public APIRequestGetAccounts requestLeadgenTosAcceptingUserField (boolean value) {
this.requestField("leadgen_tos_accepting_user", value);
return this;
}
public APIRequestGetAccounts requestLinkField () {
return this.requestLinkField(true);
}
public APIRequestGetAccounts requestLinkField (boolean value) {
this.requestField("link", value);
return this;
}
public APIRequestGetAccounts requestLocationField () {
return this.requestLocationField(true);
}
public APIRequestGetAccounts requestLocationField (boolean value) {
this.requestField("location", value);
return this;
}
public APIRequestGetAccounts requestMembersField () {
return this.requestMembersField(true);
}
public APIRequestGetAccounts requestMembersField (boolean value) {
this.requestField("members", value);
return this;
}
public APIRequestGetAccounts requestMerchantIdField () {
return this.requestMerchantIdField(true);
}
public APIRequestGetAccounts requestMerchantIdField (boolean value) {
this.requestField("merchant_id", value);
return this;
}
public APIRequestGetAccounts requestMerchantReviewStatusField () {
return this.requestMerchantReviewStatusField(true);
}
public APIRequestGetAccounts requestMerchantReviewStatusField (boolean value) {
this.requestField("merchant_review_status", value);
return this;
}
public APIRequestGetAccounts requestMessagingFeatureStatusField () {
return this.requestMessagingFeatureStatusField(true);
}
public APIRequestGetAccounts requestMessagingFeatureStatusField (boolean value) {
this.requestField("messaging_feature_status", value);
return this;
}
public APIRequestGetAccounts requestMessengerAdsDefaultIcebreakersField () {
return this.requestMessengerAdsDefaultIcebreakersField(true);
}
public APIRequestGetAccounts requestMessengerAdsDefaultIcebreakersField (boolean value) {
this.requestField("messenger_ads_default_icebreakers", value);
return this;
}
public APIRequestGetAccounts requestMessengerAdsDefaultQuickRepliesField () {
return this.requestMessengerAdsDefaultQuickRepliesField(true);
}
public APIRequestGetAccounts requestMessengerAdsDefaultQuickRepliesField (boolean value) {
this.requestField("messenger_ads_default_quick_replies", value);
return this;
}
public APIRequestGetAccounts requestMessengerAdsQuickRepliesTypeField () {
return this.requestMessengerAdsQuickRepliesTypeField(true);
}
public APIRequestGetAccounts requestMessengerAdsQuickRepliesTypeField (boolean value) {
this.requestField("messenger_ads_quick_replies_type", value);
return this;
}
public APIRequestGetAccounts requestMiniShopStorefrontField () {
return this.requestMiniShopStorefrontField(true);
}
public APIRequestGetAccounts requestMiniShopStorefrontField (boolean value) {
this.requestField("mini_shop_storefront", value);
return this;
}
public APIRequestGetAccounts requestMissionField () {
return this.requestMissionField(true);
}
public APIRequestGetAccounts requestMissionField (boolean value) {
this.requestField("mission", value);
return this;
}
public APIRequestGetAccounts requestMpgField () {
return this.requestMpgField(true);
}
public APIRequestGetAccounts requestMpgField (boolean value) {
this.requestField("mpg", value);
return this;
}
public APIRequestGetAccounts requestNameField () {
return this.requestNameField(true);
}
public APIRequestGetAccounts requestNameField (boolean value) {
this.requestField("name", value);
return this;
}
public APIRequestGetAccounts requestNameWithLocationDescriptorField () {
return this.requestNameWithLocationDescriptorField(true);
}
public APIRequestGetAccounts requestNameWithLocationDescriptorField (boolean value) {
this.requestField("name_with_location_descriptor", value);
return this;
}
public APIRequestGetAccounts requestNetworkField () {
return this.requestNetworkField(true);
}
public APIRequestGetAccounts requestNetworkField (boolean value) {
this.requestField("network", value);
return this;
}
public APIRequestGetAccounts requestNewLikeCountField () {
return this.requestNewLikeCountField(true);
}
public APIRequestGetAccounts requestNewLikeCountField (boolean value) {
this.requestField("new_like_count", value);
return this;
}
public APIRequestGetAccounts requestOfferEligibleField () {
return this.requestOfferEligibleField(true);
}
public APIRequestGetAccounts requestOfferEligibleField (boolean value) {
this.requestField("offer_eligible", value);
return this;
}
public APIRequestGetAccounts requestOverallStarRatingField () {
return this.requestOverallStarRatingField(true);
}
public APIRequestGetAccounts requestOverallStarRatingField (boolean value) {
this.requestField("overall_star_rating", value);
return this;
}
public APIRequestGetAccounts requestOwnerBusinessField () {
return this.requestOwnerBusinessField(true);
}
public APIRequestGetAccounts requestOwnerBusinessField (boolean value) {
this.requestField("owner_business", value);
return this;
}
public APIRequestGetAccounts requestPageAboutStoryField () {
return this.requestPageAboutStoryField(true);
}
public APIRequestGetAccounts requestPageAboutStoryField (boolean value) {
this.requestField("page_about_story", value);
return this;
}
public APIRequestGetAccounts requestPageTokenField () {
return this.requestPageTokenField(true);
}
public APIRequestGetAccounts requestPageTokenField (boolean value) {
this.requestField("page_token", value);
return this;
}
public APIRequestGetAccounts requestParentPageField () {
return this.requestParentPageField(true);
}
public APIRequestGetAccounts requestParentPageField (boolean value) {
this.requestField("parent_page", value);
return this;
}
public APIRequestGetAccounts requestParkingField () {
return this.requestParkingField(true);
}
public APIRequestGetAccounts requestParkingField (boolean value) {
this.requestField("parking", value);
return this;
}
public APIRequestGetAccounts requestPaymentOptionsField () {
return this.requestPaymentOptionsField(true);
}
public APIRequestGetAccounts requestPaymentOptionsField (boolean value) {
this.requestField("payment_options", value);
return this;
}
public APIRequestGetAccounts requestPersonalInfoField () {
return this.requestPersonalInfoField(true);
}
public APIRequestGetAccounts requestPersonalInfoField (boolean value) {
this.requestField("personal_info", value);
return this;
}
public APIRequestGetAccounts requestPersonalInterestsField () {
return this.requestPersonalInterestsField(true);
}
public APIRequestGetAccounts requestPersonalInterestsField (boolean value) {
this.requestField("personal_interests", value);
return this;
}
public APIRequestGetAccounts requestPharmaSafetyInfoField () {
return this.requestPharmaSafetyInfoField(true);
}
public APIRequestGetAccounts requestPharmaSafetyInfoField (boolean value) {
this.requestField("pharma_safety_info", value);
return this;
}
public APIRequestGetAccounts requestPhoneField () {
return this.requestPhoneField(true);
}
public APIRequestGetAccounts requestPhoneField (boolean value) {
this.requestField("phone", value);
return this;
}
public APIRequestGetAccounts requestPickupOptionsField () {
return this.requestPickupOptionsField(true);
}
public APIRequestGetAccounts requestPickupOptionsField (boolean value) {
this.requestField("pickup_options", value);
return this;
}
public APIRequestGetAccounts requestPlaceTypeField () {
return this.requestPlaceTypeField(true);
}
public APIRequestGetAccounts requestPlaceTypeField (boolean value) {
this.requestField("place_type", value);
return this;
}
public APIRequestGetAccounts requestPlotOutlineField () {
return this.requestPlotOutlineField(true);
}
public APIRequestGetAccounts requestPlotOutlineField (boolean value) {
this.requestField("plot_outline", value);
return this;
}
public APIRequestGetAccounts requestPreferredAudienceField () {
return this.requestPreferredAudienceField(true);
}
public APIRequestGetAccounts requestPreferredAudienceField (boolean value) {
this.requestField("preferred_audience", value);
return this;
}
public APIRequestGetAccounts requestPressContactField () {
return this.requestPressContactField(true);
}
public APIRequestGetAccounts requestPressContactField (boolean value) {
this.requestField("press_contact", value);
return this;
}
public APIRequestGetAccounts requestPriceRangeField () {
return this.requestPriceRangeField(true);
}
public APIRequestGetAccounts requestPriceRangeField (boolean value) {
this.requestField("price_range", value);
return this;
}
public APIRequestGetAccounts requestPrivacyInfoUrlField () {
return this.requestPrivacyInfoUrlField(true);
}
public APIRequestGetAccounts requestPrivacyInfoUrlField (boolean value) {
this.requestField("privacy_info_url", value);
return this;
}
public APIRequestGetAccounts requestProducedByField () {
return this.requestProducedByField(true);
}
public APIRequestGetAccounts requestProducedByField (boolean value) {
this.requestField("produced_by", value);
return this;
}
public APIRequestGetAccounts requestProductsField () {
return this.requestProductsField(true);
}
public APIRequestGetAccounts requestProductsField (boolean value) {
this.requestField("products", value);
return this;
}
public APIRequestGetAccounts requestPromotionEligibleField () {
return this.requestPromotionEligibleField(true);
}
public APIRequestGetAccounts requestPromotionEligibleField (boolean value) {
this.requestField("promotion_eligible", value);
return this;
}
public APIRequestGetAccounts requestPromotionIneligibleReasonField () {
return this.requestPromotionIneligibleReasonField(true);
}
public APIRequestGetAccounts requestPromotionIneligibleReasonField (boolean value) {
this.requestField("promotion_ineligible_reason", value);
return this;
}
public APIRequestGetAccounts requestPublicTransitField () {
return this.requestPublicTransitField(true);
}
public APIRequestGetAccounts requestPublicTransitField (boolean value) {
this.requestField("public_transit", value);
return this;
}
public APIRequestGetAccounts requestRatingCountField () {
return this.requestRatingCountField(true);
}
public APIRequestGetAccounts requestRatingCountField (boolean value) {
this.requestField("rating_count", value);
return this;
}
public APIRequestGetAccounts requestRecipientField () {
return this.requestRecipientField(true);
}
public APIRequestGetAccounts requestRecipientField (boolean value) {
this.requestField("recipient", value);
return this;
}
public APIRequestGetAccounts requestRecordLabelField () {
return this.requestRecordLabelField(true);
}
public APIRequestGetAccounts requestRecordLabelField (boolean value) {
this.requestField("record_label", value);
return this;
}
public APIRequestGetAccounts requestReleaseDateField () {
return this.requestReleaseDateField(true);
}
public APIRequestGetAccounts requestReleaseDateField (boolean value) {
this.requestField("release_date", value);
return this;
}
public APIRequestGetAccounts requestRestaurantServicesField () {
return this.requestRestaurantServicesField(true);
}
public APIRequestGetAccounts requestRestaurantServicesField (boolean value) {
this.requestField("restaurant_services", value);
return this;
}
public APIRequestGetAccounts requestRestaurantSpecialtiesField () {
return this.requestRestaurantSpecialtiesField(true);
}
public APIRequestGetAccounts requestRestaurantSpecialtiesField (boolean value) {
this.requestField("restaurant_specialties", value);
return this;
}
public APIRequestGetAccounts requestScheduleField () {
return this.requestScheduleField(true);
}
public APIRequestGetAccounts requestScheduleField (boolean value) {
this.requestField("schedule", value);
return this;
}
public APIRequestGetAccounts requestScreenplayByField () {
return this.requestScreenplayByField(true);
}
public APIRequestGetAccounts requestScreenplayByField (boolean value) {
this.requestField("screenplay_by", value);
return this;
}
public APIRequestGetAccounts requestSeasonField () {
return this.requestSeasonField(true);
}
public APIRequestGetAccounts requestSeasonField (boolean value) {
this.requestField("season", value);
return this;
}
public APIRequestGetAccounts requestSingleLineAddressField () {
return this.requestSingleLineAddressField(true);
}
public APIRequestGetAccounts requestSingleLineAddressField (boolean value) {
this.requestField("single_line_address", value);
return this;
}
public APIRequestGetAccounts requestStarringField () {
return this.requestStarringField(true);
}
public APIRequestGetAccounts requestStarringField (boolean value) {
this.requestField("starring", value);
return this;
}
public APIRequestGetAccounts requestStartInfoField () {
return this.requestStartInfoField(true);
}
public APIRequestGetAccounts requestStartInfoField (boolean value) {
this.requestField("start_info", value);
return this;
}
public APIRequestGetAccounts requestStoreCodeField () {
return this.requestStoreCodeField(true);
}
public APIRequestGetAccounts requestStoreCodeField (boolean value) {
this.requestField("store_code", value);
return this;
}
public APIRequestGetAccounts requestStoreLocationDescriptorField () {
return this.requestStoreLocationDescriptorField(true);
}
public APIRequestGetAccounts requestStoreLocationDescriptorField (boolean value) {
this.requestField("store_location_descriptor", value);
return this;
}
public APIRequestGetAccounts requestStoreNumberField () {
return this.requestStoreNumberField(true);
}
public APIRequestGetAccounts requestStoreNumberField (boolean value) {
this.requestField("store_number", value);
return this;
}
public APIRequestGetAccounts requestStudioField () {
return this.requestStudioField(true);
}
public APIRequestGetAccounts requestStudioField (boolean value) {
this.requestField("studio", value);
return this;
}
public APIRequestGetAccounts requestSupportsDonateButtonInLiveVideoField () {
return this.requestSupportsDonateButtonInLiveVideoField(true);
}
public APIRequestGetAccounts requestSupportsDonateButtonInLiveVideoField (boolean value) {
this.requestField("supports_donate_button_in_live_video", value);
return this;
}
public APIRequestGetAccounts requestTalkingAboutCountField () {
return this.requestTalkingAboutCountField(true);
}
public APIRequestGetAccounts requestTalkingAboutCountField (boolean value) {
this.requestField("talking_about_count", value);
return this;
}
public APIRequestGetAccounts requestTemporaryStatusField () {
return this.requestTemporaryStatusField(true);
}
public APIRequestGetAccounts requestTemporaryStatusField (boolean value) {
this.requestField("temporary_status", value);
return this;
}
public APIRequestGetAccounts requestUnreadMessageCountField () {
return this.requestUnreadMessageCountField(true);
}
public APIRequestGetAccounts requestUnreadMessageCountField (boolean value) {
this.requestField("unread_message_count", value);
return this;
}
public APIRequestGetAccounts requestUnreadNotifCountField () {
return this.requestUnreadNotifCountField(true);
}
public APIRequestGetAccounts requestUnreadNotifCountField (boolean value) {
this.requestField("unread_notif_count", value);
return this;
}
public APIRequestGetAccounts requestUnseenMessageCountField () {
return this.requestUnseenMessageCountField(true);
}
public APIRequestGetAccounts requestUnseenMessageCountField (boolean value) {
this.requestField("unseen_message_count", value);
return this;
}
public APIRequestGetAccounts requestUserAccessExpireTimeField () {
return this.requestUserAccessExpireTimeField(true);
}
public APIRequestGetAccounts requestUserAccessExpireTimeField (boolean value) {
this.requestField("user_access_expire_time", value);
return this;
}
public APIRequestGetAccounts requestUsernameField () {
return this.requestUsernameField(true);
}
public APIRequestGetAccounts requestUsernameField (boolean value) {
this.requestField("username", value);
return this;
}
public APIRequestGetAccounts requestVerificationStatusField () {
return this.requestVerificationStatusField(true);
}
public APIRequestGetAccounts requestVerificationStatusField (boolean value) {
this.requestField("verification_status", value);
return this;
}
public APIRequestGetAccounts requestVoipInfoField () {
return this.requestVoipInfoField(true);
}
public APIRequestGetAccounts requestVoipInfoField (boolean value) {
this.requestField("voip_info", value);
return this;
}
public APIRequestGetAccounts requestWebsiteField () {
return this.requestWebsiteField(true);
}
public APIRequestGetAccounts requestWebsiteField (boolean value) {
this.requestField("website", value);
return this;
}
public APIRequestGetAccounts requestWereHereCountField () {
return this.requestWereHereCountField(true);
}
public APIRequestGetAccounts requestWereHereCountField (boolean value) {
this.requestField("were_here_count", value);
return this;
}
public APIRequestGetAccounts requestWhatsappNumberField () {
return this.requestWhatsappNumberField(true);
}
public APIRequestGetAccounts requestWhatsappNumberField (boolean value) {
this.requestField("whatsapp_number", value);
return this;
}
public APIRequestGetAccounts requestWrittenByField () {
return this.requestWrittenByField(true);
}
public APIRequestGetAccounts requestWrittenByField (boolean value) {
this.requestField("written_by", value);
return this;
}
}
public static class APIRequestCreateAccount extends APIRequest {
APINode lastResponse = null;
@Override
public APINode getLastResponse() {
return lastResponse;
}
public static final String[] PARAMS = {
"about",
"address",
"category",
"category_enum",
"category_list",
"city_id",
"coordinates",
"cover_photo",
"description",
"ignore_coordinate_warnings",
"location",
"name",
"phone",
"picture",
"website",
"zip",
};
public static final String[] FIELDS = {
};
@Override
public APINode parseResponse(String response, String header) throws APIException {
return APINode.parseResponse(response, getContext(), this, header).head();
}
@Override
public APINode execute() throws APIException {
return execute(new HashMap());
}
@Override
public APINode execute(Map extraParams) throws APIException {
ResponseWrapper rw = executeInternal(extraParams);
lastResponse = parseResponse(rw.getBody(), rw.getHeader());
return lastResponse;
}
public ListenableFuture executeAsync() throws APIException {
return executeAsync(new HashMap());
};
public ListenableFuture executeAsync(Map extraParams) throws APIException {
return Futures.transform(
executeAsyncInternal(extraParams),
new Function() {
public APINode apply(ResponseWrapper result) {
try {
return APIRequestCreateAccount.this.parseResponse(result.getBody(), result.getHeader());
} catch (Exception e) {
throw new RuntimeException(e);
}
}
}
);
};
public APIRequestCreateAccount(String nodeId, APIContext context) {
super(context, nodeId, "/accounts", "POST", Arrays.asList(PARAMS));
}
@Override
public APIRequestCreateAccount setParam(String param, Object value) {
setParamInternal(param, value);
return this;
}
@Override
public APIRequestCreateAccount setParams(Map params) {
setParamsInternal(params);
return this;
}
public APIRequestCreateAccount setAbout (String about) {
this.setParam("about", about);
return this;
}
public APIRequestCreateAccount setAddress (String address) {
this.setParam("address", address);
return this;
}
public APIRequestCreateAccount setCategory (Long category) {
this.setParam("category", category);
return this;
}
public APIRequestCreateAccount setCategory (String category) {
this.setParam("category", category);
return this;
}
public APIRequestCreateAccount setCategoryEnum (String categoryEnum) {
this.setParam("category_enum", categoryEnum);
return this;
}
public APIRequestCreateAccount setCategoryList (List categoryList) {
this.setParam("category_list", categoryList);
return this;
}
public APIRequestCreateAccount setCategoryList (String categoryList) {
this.setParam("category_list", categoryList);
return this;
}
public APIRequestCreateAccount setCityId (String cityId) {
this.setParam("city_id", cityId);
return this;
}
public APIRequestCreateAccount setCoordinates (Object coordinates) {
this.setParam("coordinates", coordinates);
return this;
}
public APIRequestCreateAccount setCoordinates (String coordinates) {
this.setParam("coordinates", coordinates);
return this;
}
public APIRequestCreateAccount setCoverPhoto (Object coverPhoto) {
this.setParam("cover_photo", coverPhoto);
return this;
}
public APIRequestCreateAccount setCoverPhoto (String coverPhoto) {
this.setParam("cover_photo", coverPhoto);
return this;
}
public APIRequestCreateAccount setDescription (String description) {
this.setParam("description", description);
return this;
}
public APIRequestCreateAccount setIgnoreCoordinateWarnings (Boolean ignoreCoordinateWarnings) {
this.setParam("ignore_coordinate_warnings", ignoreCoordinateWarnings);
return this;
}
public APIRequestCreateAccount setIgnoreCoordinateWarnings (String ignoreCoordinateWarnings) {
this.setParam("ignore_coordinate_warnings", ignoreCoordinateWarnings);
return this;
}
public APIRequestCreateAccount setLocation (Object location) {
this.setParam("location", location);
return this;
}
public APIRequestCreateAccount setLocation (String location) {
this.setParam("location", location);
return this;
}
public APIRequestCreateAccount setName (String name) {
this.setParam("name", name);
return this;
}
public APIRequestCreateAccount setPhone (String phone) {
this.setParam("phone", phone);
return this;
}
public APIRequestCreateAccount setPicture (String picture) {
this.setParam("picture", picture);
return this;
}
public APIRequestCreateAccount setWebsite (String website) {
this.setParam("website", website);
return this;
}
public APIRequestCreateAccount setZip (String zip) {
this.setParam("zip", zip);
return this;
}
public APIRequestCreateAccount requestAllFields () {
return this.requestAllFields(true);
}
public APIRequestCreateAccount requestAllFields (boolean value) {
for (String field : FIELDS) {
this.requestField(field, value);
}
return this;
}
@Override
public APIRequestCreateAccount requestFields (List fields) {
return this.requestFields(fields, true);
}
@Override
public APIRequestCreateAccount requestFields (List fields, boolean value) {
for (String field : fields) {
this.requestField(field, value);
}
return this;
}
@Override
public APIRequestCreateAccount requestField (String field) {
this.requestField(field, true);
return this;
}
@Override
public APIRequestCreateAccount requestField (String field, boolean value) {
this.requestFieldInternal(field, value);
return this;
}
}
public static class APIRequestGetAdStudies extends APIRequest {
APINodeList lastResponse = null;
@Override
public APINodeList getLastResponse() {
return lastResponse;
}
public static final String[] PARAMS = {
};
public static final String[] FIELDS = {
"business",
"canceled_time",
"client_business",
"cooldown_start_time",
"created_by",
"created_time",
"description",
"end_time",
"id",
"measurement_contact",
"name",
"observation_end_time",
"results_first_available_date",
"sales_contact",
"start_time",
"type",
"updated_by",
"updated_time",
};
@Override
public APINodeList parseResponse(String response, String header) throws APIException {
return AdStudy.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 APIRequestGetAdStudies.this.parseResponse(result.getBody(), result.getHeader());
} catch (Exception e) {
throw new RuntimeException(e);
}
}
}
);
};
public APIRequestGetAdStudies(String nodeId, APIContext context) {
super(context, nodeId, "/ad_studies", "GET", Arrays.asList(PARAMS));
}
@Override
public APIRequestGetAdStudies setParam(String param, Object value) {
setParamInternal(param, value);
return this;
}
@Override
public APIRequestGetAdStudies setParams(Map params) {
setParamsInternal(params);
return this;
}
public APIRequestGetAdStudies requestAllFields () {
return this.requestAllFields(true);
}
public APIRequestGetAdStudies requestAllFields (boolean value) {
for (String field : FIELDS) {
this.requestField(field, value);
}
return this;
}
@Override
public APIRequestGetAdStudies requestFields (List fields) {
return this.requestFields(fields, true);
}
@Override
public APIRequestGetAdStudies requestFields (List fields, boolean value) {
for (String field : fields) {
this.requestField(field, value);
}
return this;
}
@Override
public APIRequestGetAdStudies requestField (String field) {
this.requestField(field, true);
return this;
}
@Override
public APIRequestGetAdStudies requestField (String field, boolean value) {
this.requestFieldInternal(field, value);
return this;
}
public APIRequestGetAdStudies requestBusinessField () {
return this.requestBusinessField(true);
}
public APIRequestGetAdStudies requestBusinessField (boolean value) {
this.requestField("business", value);
return this;
}
public APIRequestGetAdStudies requestCanceledTimeField () {
return this.requestCanceledTimeField(true);
}
public APIRequestGetAdStudies requestCanceledTimeField (boolean value) {
this.requestField("canceled_time", value);
return this;
}
public APIRequestGetAdStudies requestClientBusinessField () {
return this.requestClientBusinessField(true);
}
public APIRequestGetAdStudies requestClientBusinessField (boolean value) {
this.requestField("client_business", value);
return this;
}
public APIRequestGetAdStudies requestCooldownStartTimeField () {
return this.requestCooldownStartTimeField(true);
}
public APIRequestGetAdStudies requestCooldownStartTimeField (boolean value) {
this.requestField("cooldown_start_time", value);
return this;
}
public APIRequestGetAdStudies requestCreatedByField () {
return this.requestCreatedByField(true);
}
public APIRequestGetAdStudies requestCreatedByField (boolean value) {
this.requestField("created_by", value);
return this;
}
public APIRequestGetAdStudies requestCreatedTimeField () {
return this.requestCreatedTimeField(true);
}
public APIRequestGetAdStudies requestCreatedTimeField (boolean value) {
this.requestField("created_time", value);
return this;
}
public APIRequestGetAdStudies requestDescriptionField () {
return this.requestDescriptionField(true);
}
public APIRequestGetAdStudies requestDescriptionField (boolean value) {
this.requestField("description", value);
return this;
}
public APIRequestGetAdStudies requestEndTimeField () {
return this.requestEndTimeField(true);
}
public APIRequestGetAdStudies requestEndTimeField (boolean value) {
this.requestField("end_time", value);
return this;
}
public APIRequestGetAdStudies requestIdField () {
return this.requestIdField(true);
}
public APIRequestGetAdStudies requestIdField (boolean value) {
this.requestField("id", value);
return this;
}
public APIRequestGetAdStudies requestMeasurementContactField () {
return this.requestMeasurementContactField(true);
}
public APIRequestGetAdStudies requestMeasurementContactField (boolean value) {
this.requestField("measurement_contact", value);
return this;
}
public APIRequestGetAdStudies requestNameField () {
return this.requestNameField(true);
}
public APIRequestGetAdStudies requestNameField (boolean value) {
this.requestField("name", value);
return this;
}
public APIRequestGetAdStudies requestObservationEndTimeField () {
return this.requestObservationEndTimeField(true);
}
public APIRequestGetAdStudies requestObservationEndTimeField (boolean value) {
this.requestField("observation_end_time", value);
return this;
}
public APIRequestGetAdStudies requestResultsFirstAvailableDateField () {
return this.requestResultsFirstAvailableDateField(true);
}
public APIRequestGetAdStudies requestResultsFirstAvailableDateField (boolean value) {
this.requestField("results_first_available_date", value);
return this;
}
public APIRequestGetAdStudies requestSalesContactField () {
return this.requestSalesContactField(true);
}
public APIRequestGetAdStudies requestSalesContactField (boolean value) {
this.requestField("sales_contact", value);
return this;
}
public APIRequestGetAdStudies requestStartTimeField () {
return this.requestStartTimeField(true);
}
public APIRequestGetAdStudies requestStartTimeField (boolean value) {
this.requestField("start_time", value);
return this;
}
public APIRequestGetAdStudies requestTypeField () {
return this.requestTypeField(true);
}
public APIRequestGetAdStudies requestTypeField (boolean value) {
this.requestField("type", value);
return this;
}
public APIRequestGetAdStudies requestUpdatedByField () {
return this.requestUpdatedByField(true);
}
public APIRequestGetAdStudies requestUpdatedByField (boolean value) {
this.requestField("updated_by", value);
return this;
}
public APIRequestGetAdStudies requestUpdatedTimeField () {
return this.requestUpdatedTimeField(true);
}
public APIRequestGetAdStudies requestUpdatedTimeField (boolean value) {
this.requestField("updated_time", value);
return this;
}
}
public static class APIRequestCreateAdStudy extends APIRequest {
AdStudy lastResponse = null;
@Override
public AdStudy getLastResponse() {
return lastResponse;
}
public static final String[] PARAMS = {
"cells",
"client_business",
"confidence_level",
"cooldown_start_time",
"description",
"end_time",
"name",
"objectives",
"observation_end_time",
"start_time",
"type",
"viewers",
};
public static final String[] FIELDS = {
};
@Override
public AdStudy parseResponse(String response, String header) throws APIException {
return AdStudy.parseResponse(response, getContext(), this, header).head();
}
@Override
public AdStudy execute() throws APIException {
return execute(new HashMap());
}
@Override
public AdStudy 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 AdStudy apply(ResponseWrapper result) {
try {
return APIRequestCreateAdStudy.this.parseResponse(result.getBody(), result.getHeader());
} catch (Exception e) {
throw new RuntimeException(e);
}
}
}
);
};
public APIRequestCreateAdStudy(String nodeId, APIContext context) {
super(context, nodeId, "/ad_studies", "POST", Arrays.asList(PARAMS));
}
@Override
public APIRequestCreateAdStudy setParam(String param, Object value) {
setParamInternal(param, value);
return this;
}
@Override
public APIRequestCreateAdStudy setParams(Map params) {
setParamsInternal(params);
return this;
}
public APIRequestCreateAdStudy setCells (List cells) {
this.setParam("cells", cells);
return this;
}
public APIRequestCreateAdStudy setCells (String cells) {
this.setParam("cells", cells);
return this;
}
public APIRequestCreateAdStudy setClientBusiness (String clientBusiness) {
this.setParam("client_business", clientBusiness);
return this;
}
public APIRequestCreateAdStudy setConfidenceLevel (Double confidenceLevel) {
this.setParam("confidence_level", confidenceLevel);
return this;
}
public APIRequestCreateAdStudy setConfidenceLevel (String confidenceLevel) {
this.setParam("confidence_level", confidenceLevel);
return this;
}
public APIRequestCreateAdStudy setCooldownStartTime (Long cooldownStartTime) {
this.setParam("cooldown_start_time", cooldownStartTime);
return this;
}
public APIRequestCreateAdStudy setCooldownStartTime (String cooldownStartTime) {
this.setParam("cooldown_start_time", cooldownStartTime);
return this;
}
public APIRequestCreateAdStudy setDescription (String description) {
this.setParam("description", description);
return this;
}
public APIRequestCreateAdStudy setEndTime (Long endTime) {
this.setParam("end_time", endTime);
return this;
}
public APIRequestCreateAdStudy setEndTime (String endTime) {
this.setParam("end_time", endTime);
return this;
}
public APIRequestCreateAdStudy setName (String name) {
this.setParam("name", name);
return this;
}
public APIRequestCreateAdStudy setObjectives (List objectives) {
this.setParam("objectives", objectives);
return this;
}
public APIRequestCreateAdStudy setObjectives (String objectives) {
this.setParam("objectives", objectives);
return this;
}
public APIRequestCreateAdStudy setObservationEndTime (Long observationEndTime) {
this.setParam("observation_end_time", observationEndTime);
return this;
}
public APIRequestCreateAdStudy setObservationEndTime (String observationEndTime) {
this.setParam("observation_end_time", observationEndTime);
return this;
}
public APIRequestCreateAdStudy setStartTime (Long startTime) {
this.setParam("start_time", startTime);
return this;
}
public APIRequestCreateAdStudy setStartTime (String startTime) {
this.setParam("start_time", startTime);
return this;
}
public APIRequestCreateAdStudy setType (AdStudy.EnumType type) {
this.setParam("type", type);
return this;
}
public APIRequestCreateAdStudy setType (String type) {
this.setParam("type", type);
return this;
}
public APIRequestCreateAdStudy setViewers (List viewers) {
this.setParam("viewers", viewers);
return this;
}
public APIRequestCreateAdStudy setViewers (String viewers) {
this.setParam("viewers", viewers);
return this;
}
public APIRequestCreateAdStudy requestAllFields () {
return this.requestAllFields(true);
}
public APIRequestCreateAdStudy requestAllFields (boolean value) {
for (String field : FIELDS) {
this.requestField(field, value);
}
return this;
}
@Override
public APIRequestCreateAdStudy requestFields (List fields) {
return this.requestFields(fields, true);
}
@Override
public APIRequestCreateAdStudy requestFields (List fields, boolean value) {
for (String field : fields) {
this.requestField(field, value);
}
return this;
}
@Override
public APIRequestCreateAdStudy requestField (String field) {
this.requestField(field, true);
return this;
}
@Override
public APIRequestCreateAdStudy requestField (String field, boolean value) {
this.requestFieldInternal(field, value);
return this;
}
}
public static class APIRequestGetAdAccounts extends APIRequest {
APINodeList lastResponse = null;
@Override
public APINodeList getLastResponse() {
return lastResponse;
}
public static final String[] PARAMS = {
};
public static final String[] FIELDS = {
"account_id",
"account_status",
"ad_account_promotable_objects",
"age",
"agency_client_declaration",
"all_capabilities",
"amount_spent",
"attribution_spec",
"balance",
"business",
"business_city",
"business_country_code",
"business_name",
"business_state",
"business_street",
"business_street2",
"business_zip",
"capabilities",
"created_time",
"currency",
"custom_audience_info",
"default_dsa_beneficiary",
"default_dsa_payor",
"disable_reason",
"end_advertiser",
"end_advertiser_name",
"existing_customers",
"extended_credit_invoice_group",
"failed_delivery_checks",
"fb_entity",
"funding_source",
"funding_source_details",
"has_migrated_permissions",
"has_page_authorized_adaccount",
"id",
"io_number",
"is_attribution_spec_system_default",
"is_direct_deals_enabled",
"is_in_3ds_authorization_enabled_market",
"is_notifications_enabled",
"is_personal",
"is_prepay_account",
"is_tax_id_required",
"liable_address",
"line_numbers",
"media_agency",
"min_campaign_group_spend_cap",
"min_daily_budget",
"name",
"offsite_pixels_tos_accepted",
"owner",
"owner_business",
"partner",
"rf_spec",
"send_bill_to_address",
"show_checkout_experience",
"sold_to_address",
"spend_cap",
"tax_id",
"tax_id_status",
"tax_id_type",
"timezone_id",
"timezone_name",
"timezone_offset_hours_utc",
"tos_accepted",
"user_access_expire_time",
"user_tasks",
"user_tos_accepted",
"viewable_business",
};
@Override
public APINodeList parseResponse(String response, String header) throws APIException {
return AdAccount.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 APIRequestGetAdAccounts.this.parseResponse(result.getBody(), result.getHeader());
} catch (Exception e) {
throw new RuntimeException(e);
}
}
}
);
};
public APIRequestGetAdAccounts(String nodeId, APIContext context) {
super(context, nodeId, "/adaccounts", "GET", Arrays.asList(PARAMS));
}
@Override
public APIRequestGetAdAccounts setParam(String param, Object value) {
setParamInternal(param, value);
return this;
}
@Override
public APIRequestGetAdAccounts setParams(Map params) {
setParamsInternal(params);
return this;
}
public APIRequestGetAdAccounts requestAllFields () {
return this.requestAllFields(true);
}
public APIRequestGetAdAccounts requestAllFields (boolean value) {
for (String field : FIELDS) {
this.requestField(field, value);
}
return this;
}
@Override
public APIRequestGetAdAccounts requestFields (List fields) {
return this.requestFields(fields, true);
}
@Override
public APIRequestGetAdAccounts requestFields (List fields, boolean value) {
for (String field : fields) {
this.requestField(field, value);
}
return this;
}
@Override
public APIRequestGetAdAccounts requestField (String field) {
this.requestField(field, true);
return this;
}
@Override
public APIRequestGetAdAccounts requestField (String field, boolean value) {
this.requestFieldInternal(field, value);
return this;
}
public APIRequestGetAdAccounts requestAccountIdField () {
return this.requestAccountIdField(true);
}
public APIRequestGetAdAccounts requestAccountIdField (boolean value) {
this.requestField("account_id", value);
return this;
}
public APIRequestGetAdAccounts requestAccountStatusField () {
return this.requestAccountStatusField(true);
}
public APIRequestGetAdAccounts requestAccountStatusField (boolean value) {
this.requestField("account_status", value);
return this;
}
public APIRequestGetAdAccounts requestAdAccountPromotableObjectsField () {
return this.requestAdAccountPromotableObjectsField(true);
}
public APIRequestGetAdAccounts requestAdAccountPromotableObjectsField (boolean value) {
this.requestField("ad_account_promotable_objects", value);
return this;
}
public APIRequestGetAdAccounts requestAgeField () {
return this.requestAgeField(true);
}
public APIRequestGetAdAccounts requestAgeField (boolean value) {
this.requestField("age", value);
return this;
}
public APIRequestGetAdAccounts requestAgencyClientDeclarationField () {
return this.requestAgencyClientDeclarationField(true);
}
public APIRequestGetAdAccounts requestAgencyClientDeclarationField (boolean value) {
this.requestField("agency_client_declaration", value);
return this;
}
public APIRequestGetAdAccounts requestAllCapabilitiesField () {
return this.requestAllCapabilitiesField(true);
}
public APIRequestGetAdAccounts requestAllCapabilitiesField (boolean value) {
this.requestField("all_capabilities", value);
return this;
}
public APIRequestGetAdAccounts requestAmountSpentField () {
return this.requestAmountSpentField(true);
}
public APIRequestGetAdAccounts requestAmountSpentField (boolean value) {
this.requestField("amount_spent", value);
return this;
}
public APIRequestGetAdAccounts requestAttributionSpecField () {
return this.requestAttributionSpecField(true);
}
public APIRequestGetAdAccounts requestAttributionSpecField (boolean value) {
this.requestField("attribution_spec", value);
return this;
}
public APIRequestGetAdAccounts requestBalanceField () {
return this.requestBalanceField(true);
}
public APIRequestGetAdAccounts requestBalanceField (boolean value) {
this.requestField("balance", value);
return this;
}
public APIRequestGetAdAccounts requestBusinessField () {
return this.requestBusinessField(true);
}
public APIRequestGetAdAccounts requestBusinessField (boolean value) {
this.requestField("business", value);
return this;
}
public APIRequestGetAdAccounts requestBusinessCityField () {
return this.requestBusinessCityField(true);
}
public APIRequestGetAdAccounts requestBusinessCityField (boolean value) {
this.requestField("business_city", value);
return this;
}
public APIRequestGetAdAccounts requestBusinessCountryCodeField () {
return this.requestBusinessCountryCodeField(true);
}
public APIRequestGetAdAccounts requestBusinessCountryCodeField (boolean value) {
this.requestField("business_country_code", value);
return this;
}
public APIRequestGetAdAccounts requestBusinessNameField () {
return this.requestBusinessNameField(true);
}
public APIRequestGetAdAccounts requestBusinessNameField (boolean value) {
this.requestField("business_name", value);
return this;
}
public APIRequestGetAdAccounts requestBusinessStateField () {
return this.requestBusinessStateField(true);
}
public APIRequestGetAdAccounts requestBusinessStateField (boolean value) {
this.requestField("business_state", value);
return this;
}
public APIRequestGetAdAccounts requestBusinessStreetField () {
return this.requestBusinessStreetField(true);
}
public APIRequestGetAdAccounts requestBusinessStreetField (boolean value) {
this.requestField("business_street", value);
return this;
}
public APIRequestGetAdAccounts requestBusinessStreet2Field () {
return this.requestBusinessStreet2Field(true);
}
public APIRequestGetAdAccounts requestBusinessStreet2Field (boolean value) {
this.requestField("business_street2", value);
return this;
}
public APIRequestGetAdAccounts requestBusinessZipField () {
return this.requestBusinessZipField(true);
}
public APIRequestGetAdAccounts requestBusinessZipField (boolean value) {
this.requestField("business_zip", value);
return this;
}
public APIRequestGetAdAccounts requestCapabilitiesField () {
return this.requestCapabilitiesField(true);
}
public APIRequestGetAdAccounts requestCapabilitiesField (boolean value) {
this.requestField("capabilities", value);
return this;
}
public APIRequestGetAdAccounts requestCreatedTimeField () {
return this.requestCreatedTimeField(true);
}
public APIRequestGetAdAccounts requestCreatedTimeField (boolean value) {
this.requestField("created_time", value);
return this;
}
public APIRequestGetAdAccounts requestCurrencyField () {
return this.requestCurrencyField(true);
}
public APIRequestGetAdAccounts requestCurrencyField (boolean value) {
this.requestField("currency", value);
return this;
}
public APIRequestGetAdAccounts requestCustomAudienceInfoField () {
return this.requestCustomAudienceInfoField(true);
}
public APIRequestGetAdAccounts requestCustomAudienceInfoField (boolean value) {
this.requestField("custom_audience_info", value);
return this;
}
public APIRequestGetAdAccounts requestDefaultDsaBeneficiaryField () {
return this.requestDefaultDsaBeneficiaryField(true);
}
public APIRequestGetAdAccounts requestDefaultDsaBeneficiaryField (boolean value) {
this.requestField("default_dsa_beneficiary", value);
return this;
}
public APIRequestGetAdAccounts requestDefaultDsaPayorField () {
return this.requestDefaultDsaPayorField(true);
}
public APIRequestGetAdAccounts requestDefaultDsaPayorField (boolean value) {
this.requestField("default_dsa_payor", value);
return this;
}
public APIRequestGetAdAccounts requestDisableReasonField () {
return this.requestDisableReasonField(true);
}
public APIRequestGetAdAccounts requestDisableReasonField (boolean value) {
this.requestField("disable_reason", value);
return this;
}
public APIRequestGetAdAccounts requestEndAdvertiserField () {
return this.requestEndAdvertiserField(true);
}
public APIRequestGetAdAccounts requestEndAdvertiserField (boolean value) {
this.requestField("end_advertiser", value);
return this;
}
public APIRequestGetAdAccounts requestEndAdvertiserNameField () {
return this.requestEndAdvertiserNameField(true);
}
public APIRequestGetAdAccounts requestEndAdvertiserNameField (boolean value) {
this.requestField("end_advertiser_name", value);
return this;
}
public APIRequestGetAdAccounts requestExistingCustomersField () {
return this.requestExistingCustomersField(true);
}
public APIRequestGetAdAccounts requestExistingCustomersField (boolean value) {
this.requestField("existing_customers", value);
return this;
}
public APIRequestGetAdAccounts requestExtendedCreditInvoiceGroupField () {
return this.requestExtendedCreditInvoiceGroupField(true);
}
public APIRequestGetAdAccounts requestExtendedCreditInvoiceGroupField (boolean value) {
this.requestField("extended_credit_invoice_group", value);
return this;
}
public APIRequestGetAdAccounts requestFailedDeliveryChecksField () {
return this.requestFailedDeliveryChecksField(true);
}
public APIRequestGetAdAccounts requestFailedDeliveryChecksField (boolean value) {
this.requestField("failed_delivery_checks", value);
return this;
}
public APIRequestGetAdAccounts requestFbEntityField () {
return this.requestFbEntityField(true);
}
public APIRequestGetAdAccounts requestFbEntityField (boolean value) {
this.requestField("fb_entity", value);
return this;
}
public APIRequestGetAdAccounts requestFundingSourceField () {
return this.requestFundingSourceField(true);
}
public APIRequestGetAdAccounts requestFundingSourceField (boolean value) {
this.requestField("funding_source", value);
return this;
}
public APIRequestGetAdAccounts requestFundingSourceDetailsField () {
return this.requestFundingSourceDetailsField(true);
}
public APIRequestGetAdAccounts requestFundingSourceDetailsField (boolean value) {
this.requestField("funding_source_details", value);
return this;
}
public APIRequestGetAdAccounts requestHasMigratedPermissionsField () {
return this.requestHasMigratedPermissionsField(true);
}
public APIRequestGetAdAccounts requestHasMigratedPermissionsField (boolean value) {
this.requestField("has_migrated_permissions", value);
return this;
}
public APIRequestGetAdAccounts requestHasPageAuthorizedAdaccountField () {
return this.requestHasPageAuthorizedAdaccountField(true);
}
public APIRequestGetAdAccounts requestHasPageAuthorizedAdaccountField (boolean value) {
this.requestField("has_page_authorized_adaccount", value);
return this;
}
public APIRequestGetAdAccounts requestIdField () {
return this.requestIdField(true);
}
public APIRequestGetAdAccounts requestIdField (boolean value) {
this.requestField("id", value);
return this;
}
public APIRequestGetAdAccounts requestIoNumberField () {
return this.requestIoNumberField(true);
}
public APIRequestGetAdAccounts requestIoNumberField (boolean value) {
this.requestField("io_number", value);
return this;
}
public APIRequestGetAdAccounts requestIsAttributionSpecSystemDefaultField () {
return this.requestIsAttributionSpecSystemDefaultField(true);
}
public APIRequestGetAdAccounts requestIsAttributionSpecSystemDefaultField (boolean value) {
this.requestField("is_attribution_spec_system_default", value);
return this;
}
public APIRequestGetAdAccounts requestIsDirectDealsEnabledField () {
return this.requestIsDirectDealsEnabledField(true);
}
public APIRequestGetAdAccounts requestIsDirectDealsEnabledField (boolean value) {
this.requestField("is_direct_deals_enabled", value);
return this;
}
public APIRequestGetAdAccounts requestIsIn3dsAuthorizationEnabledMarketField () {
return this.requestIsIn3dsAuthorizationEnabledMarketField(true);
}
public APIRequestGetAdAccounts requestIsIn3dsAuthorizationEnabledMarketField (boolean value) {
this.requestField("is_in_3ds_authorization_enabled_market", value);
return this;
}
public APIRequestGetAdAccounts requestIsNotificationsEnabledField () {
return this.requestIsNotificationsEnabledField(true);
}
public APIRequestGetAdAccounts requestIsNotificationsEnabledField (boolean value) {
this.requestField("is_notifications_enabled", value);
return this;
}
public APIRequestGetAdAccounts requestIsPersonalField () {
return this.requestIsPersonalField(true);
}
public APIRequestGetAdAccounts requestIsPersonalField (boolean value) {
this.requestField("is_personal", value);
return this;
}
public APIRequestGetAdAccounts requestIsPrepayAccountField () {
return this.requestIsPrepayAccountField(true);
}
public APIRequestGetAdAccounts requestIsPrepayAccountField (boolean value) {
this.requestField("is_prepay_account", value);
return this;
}
public APIRequestGetAdAccounts requestIsTaxIdRequiredField () {
return this.requestIsTaxIdRequiredField(true);
}
public APIRequestGetAdAccounts requestIsTaxIdRequiredField (boolean value) {
this.requestField("is_tax_id_required", value);
return this;
}
public APIRequestGetAdAccounts requestLiableAddressField () {
return this.requestLiableAddressField(true);
}
public APIRequestGetAdAccounts requestLiableAddressField (boolean value) {
this.requestField("liable_address", value);
return this;
}
public APIRequestGetAdAccounts requestLineNumbersField () {
return this.requestLineNumbersField(true);
}
public APIRequestGetAdAccounts requestLineNumbersField (boolean value) {
this.requestField("line_numbers", value);
return this;
}
public APIRequestGetAdAccounts requestMediaAgencyField () {
return this.requestMediaAgencyField(true);
}
public APIRequestGetAdAccounts requestMediaAgencyField (boolean value) {
this.requestField("media_agency", value);
return this;
}
public APIRequestGetAdAccounts requestMinCampaignGroupSpendCapField () {
return this.requestMinCampaignGroupSpendCapField(true);
}
public APIRequestGetAdAccounts requestMinCampaignGroupSpendCapField (boolean value) {
this.requestField("min_campaign_group_spend_cap", value);
return this;
}
public APIRequestGetAdAccounts requestMinDailyBudgetField () {
return this.requestMinDailyBudgetField(true);
}
public APIRequestGetAdAccounts requestMinDailyBudgetField (boolean value) {
this.requestField("min_daily_budget", value);
return this;
}
public APIRequestGetAdAccounts requestNameField () {
return this.requestNameField(true);
}
public APIRequestGetAdAccounts requestNameField (boolean value) {
this.requestField("name", value);
return this;
}
public APIRequestGetAdAccounts requestOffsitePixelsTosAcceptedField () {
return this.requestOffsitePixelsTosAcceptedField(true);
}
public APIRequestGetAdAccounts requestOffsitePixelsTosAcceptedField (boolean value) {
this.requestField("offsite_pixels_tos_accepted", value);
return this;
}
public APIRequestGetAdAccounts requestOwnerField () {
return this.requestOwnerField(true);
}
public APIRequestGetAdAccounts requestOwnerField (boolean value) {
this.requestField("owner", value);
return this;
}
public APIRequestGetAdAccounts requestOwnerBusinessField () {
return this.requestOwnerBusinessField(true);
}
public APIRequestGetAdAccounts requestOwnerBusinessField (boolean value) {
this.requestField("owner_business", value);
return this;
}
public APIRequestGetAdAccounts requestPartnerField () {
return this.requestPartnerField(true);
}
public APIRequestGetAdAccounts requestPartnerField (boolean value) {
this.requestField("partner", value);
return this;
}
public APIRequestGetAdAccounts requestRfSpecField () {
return this.requestRfSpecField(true);
}
public APIRequestGetAdAccounts requestRfSpecField (boolean value) {
this.requestField("rf_spec", value);
return this;
}
public APIRequestGetAdAccounts requestSendBillToAddressField () {
return this.requestSendBillToAddressField(true);
}
public APIRequestGetAdAccounts requestSendBillToAddressField (boolean value) {
this.requestField("send_bill_to_address", value);
return this;
}
public APIRequestGetAdAccounts requestShowCheckoutExperienceField () {
return this.requestShowCheckoutExperienceField(true);
}
public APIRequestGetAdAccounts requestShowCheckoutExperienceField (boolean value) {
this.requestField("show_checkout_experience", value);
return this;
}
public APIRequestGetAdAccounts requestSoldToAddressField () {
return this.requestSoldToAddressField(true);
}
public APIRequestGetAdAccounts requestSoldToAddressField (boolean value) {
this.requestField("sold_to_address", value);
return this;
}
public APIRequestGetAdAccounts requestSpendCapField () {
return this.requestSpendCapField(true);
}
public APIRequestGetAdAccounts requestSpendCapField (boolean value) {
this.requestField("spend_cap", value);
return this;
}
public APIRequestGetAdAccounts requestTaxIdField () {
return this.requestTaxIdField(true);
}
public APIRequestGetAdAccounts requestTaxIdField (boolean value) {
this.requestField("tax_id", value);
return this;
}
public APIRequestGetAdAccounts requestTaxIdStatusField () {
return this.requestTaxIdStatusField(true);
}
public APIRequestGetAdAccounts requestTaxIdStatusField (boolean value) {
this.requestField("tax_id_status", value);
return this;
}
public APIRequestGetAdAccounts requestTaxIdTypeField () {
return this.requestTaxIdTypeField(true);
}
public APIRequestGetAdAccounts requestTaxIdTypeField (boolean value) {
this.requestField("tax_id_type", value);
return this;
}
public APIRequestGetAdAccounts requestTimezoneIdField () {
return this.requestTimezoneIdField(true);
}
public APIRequestGetAdAccounts requestTimezoneIdField (boolean value) {
this.requestField("timezone_id", value);
return this;
}
public APIRequestGetAdAccounts requestTimezoneNameField () {
return this.requestTimezoneNameField(true);
}
public APIRequestGetAdAccounts requestTimezoneNameField (boolean value) {
this.requestField("timezone_name", value);
return this;
}
public APIRequestGetAdAccounts requestTimezoneOffsetHoursUtcField () {
return this.requestTimezoneOffsetHoursUtcField(true);
}
public APIRequestGetAdAccounts requestTimezoneOffsetHoursUtcField (boolean value) {
this.requestField("timezone_offset_hours_utc", value);
return this;
}
public APIRequestGetAdAccounts requestTosAcceptedField () {
return this.requestTosAcceptedField(true);
}
public APIRequestGetAdAccounts requestTosAcceptedField (boolean value) {
this.requestField("tos_accepted", value);
return this;
}
public APIRequestGetAdAccounts requestUserAccessExpireTimeField () {
return this.requestUserAccessExpireTimeField(true);
}
public APIRequestGetAdAccounts requestUserAccessExpireTimeField (boolean value) {
this.requestField("user_access_expire_time", value);
return this;
}
public APIRequestGetAdAccounts requestUserTasksField () {
return this.requestUserTasksField(true);
}
public APIRequestGetAdAccounts requestUserTasksField (boolean value) {
this.requestField("user_tasks", value);
return this;
}
public APIRequestGetAdAccounts requestUserTosAcceptedField () {
return this.requestUserTosAcceptedField(true);
}
public APIRequestGetAdAccounts requestUserTosAcceptedField (boolean value) {
this.requestField("user_tos_accepted", value);
return this;
}
public APIRequestGetAdAccounts requestViewableBusinessField () {
return this.requestViewableBusinessField(true);
}
public APIRequestGetAdAccounts requestViewableBusinessField (boolean value) {
this.requestField("viewable_business", value);
return this;
}
}
public static class APIRequestGetAlbums extends APIRequest {
APINodeList lastResponse = null;
@Override
public APINodeList getLastResponse() {
return lastResponse;
}
public static final String[] PARAMS = {
};
public static final String[] FIELDS = {
"backdated_time",
"backdated_time_granularity",
"can_backdate",
"can_upload",
"count",
"cover_photo",
"created_time",
"description",
"edit_link",
"event",
"from",
"id",
"is_user_facing",
"link",
"location",
"modified_major",
"name",
"photo_count",
"place",
"privacy",
"type",
"updated_time",
"video_count",
};
@Override
public APINodeList parseResponse(String response, String header) throws APIException {
return Album.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 APIRequestGetAlbums.this.parseResponse(result.getBody(), result.getHeader());
} catch (Exception e) {
throw new RuntimeException(e);
}
}
}
);
};
public APIRequestGetAlbums(String nodeId, APIContext context) {
super(context, nodeId, "/albums", "GET", Arrays.asList(PARAMS));
}
@Override
public APIRequestGetAlbums setParam(String param, Object value) {
setParamInternal(param, value);
return this;
}
@Override
public APIRequestGetAlbums setParams(Map params) {
setParamsInternal(params);
return this;
}
public APIRequestGetAlbums requestAllFields () {
return this.requestAllFields(true);
}
public APIRequestGetAlbums requestAllFields (boolean value) {
for (String field : FIELDS) {
this.requestField(field, value);
}
return this;
}
@Override
public APIRequestGetAlbums requestFields (List fields) {
return this.requestFields(fields, true);
}
@Override
public APIRequestGetAlbums requestFields (List fields, boolean value) {
for (String field : fields) {
this.requestField(field, value);
}
return this;
}
@Override
public APIRequestGetAlbums requestField (String field) {
this.requestField(field, true);
return this;
}
@Override
public APIRequestGetAlbums requestField (String field, boolean value) {
this.requestFieldInternal(field, value);
return this;
}
public APIRequestGetAlbums requestBackdatedTimeField () {
return this.requestBackdatedTimeField(true);
}
public APIRequestGetAlbums requestBackdatedTimeField (boolean value) {
this.requestField("backdated_time", value);
return this;
}
public APIRequestGetAlbums requestBackdatedTimeGranularityField () {
return this.requestBackdatedTimeGranularityField(true);
}
public APIRequestGetAlbums requestBackdatedTimeGranularityField (boolean value) {
this.requestField("backdated_time_granularity", value);
return this;
}
public APIRequestGetAlbums requestCanBackdateField () {
return this.requestCanBackdateField(true);
}
public APIRequestGetAlbums requestCanBackdateField (boolean value) {
this.requestField("can_backdate", value);
return this;
}
public APIRequestGetAlbums requestCanUploadField () {
return this.requestCanUploadField(true);
}
public APIRequestGetAlbums requestCanUploadField (boolean value) {
this.requestField("can_upload", value);
return this;
}
public APIRequestGetAlbums requestCountField () {
return this.requestCountField(true);
}
public APIRequestGetAlbums requestCountField (boolean value) {
this.requestField("count", value);
return this;
}
public APIRequestGetAlbums requestCoverPhotoField () {
return this.requestCoverPhotoField(true);
}
public APIRequestGetAlbums requestCoverPhotoField (boolean value) {
this.requestField("cover_photo", value);
return this;
}
public APIRequestGetAlbums requestCreatedTimeField () {
return this.requestCreatedTimeField(true);
}
public APIRequestGetAlbums requestCreatedTimeField (boolean value) {
this.requestField("created_time", value);
return this;
}
public APIRequestGetAlbums requestDescriptionField () {
return this.requestDescriptionField(true);
}
public APIRequestGetAlbums requestDescriptionField (boolean value) {
this.requestField("description", value);
return this;
}
public APIRequestGetAlbums requestEditLinkField () {
return this.requestEditLinkField(true);
}
public APIRequestGetAlbums requestEditLinkField (boolean value) {
this.requestField("edit_link", value);
return this;
}
public APIRequestGetAlbums requestEventField () {
return this.requestEventField(true);
}
public APIRequestGetAlbums requestEventField (boolean value) {
this.requestField("event", value);
return this;
}
public APIRequestGetAlbums requestFromField () {
return this.requestFromField(true);
}
public APIRequestGetAlbums requestFromField (boolean value) {
this.requestField("from", value);
return this;
}
public APIRequestGetAlbums requestIdField () {
return this.requestIdField(true);
}
public APIRequestGetAlbums requestIdField (boolean value) {
this.requestField("id", value);
return this;
}
public APIRequestGetAlbums requestIsUserFacingField () {
return this.requestIsUserFacingField(true);
}
public APIRequestGetAlbums requestIsUserFacingField (boolean value) {
this.requestField("is_user_facing", value);
return this;
}
public APIRequestGetAlbums requestLinkField () {
return this.requestLinkField(true);
}
public APIRequestGetAlbums requestLinkField (boolean value) {
this.requestField("link", value);
return this;
}
public APIRequestGetAlbums requestLocationField () {
return this.requestLocationField(true);
}
public APIRequestGetAlbums requestLocationField (boolean value) {
this.requestField("location", value);
return this;
}
public APIRequestGetAlbums requestModifiedMajorField () {
return this.requestModifiedMajorField(true);
}
public APIRequestGetAlbums requestModifiedMajorField (boolean value) {
this.requestField("modified_major", value);
return this;
}
public APIRequestGetAlbums requestNameField () {
return this.requestNameField(true);
}
public APIRequestGetAlbums requestNameField (boolean value) {
this.requestField("name", value);
return this;
}
public APIRequestGetAlbums requestPhotoCountField () {
return this.requestPhotoCountField(true);
}
public APIRequestGetAlbums requestPhotoCountField (boolean value) {
this.requestField("photo_count", value);
return this;
}
public APIRequestGetAlbums requestPlaceField () {
return this.requestPlaceField(true);
}
public APIRequestGetAlbums requestPlaceField (boolean value) {
this.requestField("place", value);
return this;
}
public APIRequestGetAlbums requestPrivacyField () {
return this.requestPrivacyField(true);
}
public APIRequestGetAlbums requestPrivacyField (boolean value) {
this.requestField("privacy", value);
return this;
}
public APIRequestGetAlbums requestTypeField () {
return this.requestTypeField(true);
}
public APIRequestGetAlbums requestTypeField (boolean value) {
this.requestField("type", value);
return this;
}
public APIRequestGetAlbums requestUpdatedTimeField () {
return this.requestUpdatedTimeField(true);
}
public APIRequestGetAlbums requestUpdatedTimeField (boolean value) {
this.requestField("updated_time", value);
return this;
}
public APIRequestGetAlbums requestVideoCountField () {
return this.requestVideoCountField(true);
}
public APIRequestGetAlbums requestVideoCountField (boolean value) {
this.requestField("video_count", value);
return this;
}
}
public static class APIRequestCreateApplication extends APIRequest {
User lastResponse = null;
@Override
public User getLastResponse() {
return lastResponse;
}
public static final String[] PARAMS = {
"business_app",
};
public static final String[] FIELDS = {
};
@Override
public User parseResponse(String response, String header) throws APIException {
return User.parseResponse(response, getContext(), this, header).head();
}
@Override
public User execute() throws APIException {
return execute(new HashMap());
}
@Override
public User 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 User apply(ResponseWrapper result) {
try {
return APIRequestCreateApplication.this.parseResponse(result.getBody(), result.getHeader());
} catch (Exception e) {
throw new RuntimeException(e);
}
}
}
);
};
public APIRequestCreateApplication(String nodeId, APIContext context) {
super(context, nodeId, "/applications", "POST", Arrays.asList(PARAMS));
}
@Override
public APIRequestCreateApplication setParam(String param, Object value) {
setParamInternal(param, value);
return this;
}
@Override
public APIRequestCreateApplication setParams(Map params) {
setParamsInternal(params);
return this;
}
public APIRequestCreateApplication setBusinessApp (Long businessApp) {
this.setParam("business_app", businessApp);
return this;
}
public APIRequestCreateApplication setBusinessApp (String businessApp) {
this.setParam("business_app", businessApp);
return this;
}
public APIRequestCreateApplication requestAllFields () {
return this.requestAllFields(true);
}
public APIRequestCreateApplication requestAllFields (boolean value) {
for (String field : FIELDS) {
this.requestField(field, value);
}
return this;
}
@Override
public APIRequestCreateApplication requestFields (List fields) {
return this.requestFields(fields, true);
}
@Override
public APIRequestCreateApplication requestFields (List fields, boolean value) {
for (String field : fields) {
this.requestField(field, value);
}
return this;
}
@Override
public APIRequestCreateApplication requestField (String field) {
this.requestField(field, true);
return this;
}
@Override
public APIRequestCreateApplication requestField (String field, boolean value) {
this.requestFieldInternal(field, value);
return this;
}
}
public static class APIRequestGetAppRequestFormerRecipients extends APIRequest {
APINodeList lastResponse = null;
@Override
public APINodeList getLastResponse() {
return lastResponse;
}
public static final String[] PARAMS = {
};
public static final String[] FIELDS = {
"id",
"recipient_id",
};
@Override
public APINodeList parseResponse(String response, String header) throws APIException {
return AppRequestFormerRecipient.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 APIRequestGetAppRequestFormerRecipients.this.parseResponse(result.getBody(), result.getHeader());
} catch (Exception e) {
throw new RuntimeException(e);
}
}
}
);
};
public APIRequestGetAppRequestFormerRecipients(String nodeId, APIContext context) {
super(context, nodeId, "/apprequestformerrecipients", "GET", Arrays.asList(PARAMS));
}
@Override
public APIRequestGetAppRequestFormerRecipients setParam(String param, Object value) {
setParamInternal(param, value);
return this;
}
@Override
public APIRequestGetAppRequestFormerRecipients setParams(Map params) {
setParamsInternal(params);
return this;
}
public APIRequestGetAppRequestFormerRecipients requestAllFields () {
return this.requestAllFields(true);
}
public APIRequestGetAppRequestFormerRecipients requestAllFields (boolean value) {
for (String field : FIELDS) {
this.requestField(field, value);
}
return this;
}
@Override
public APIRequestGetAppRequestFormerRecipients requestFields (List fields) {
return this.requestFields(fields, true);
}
@Override
public APIRequestGetAppRequestFormerRecipients requestFields (List fields, boolean value) {
for (String field : fields) {
this.requestField(field, value);
}
return this;
}
@Override
public APIRequestGetAppRequestFormerRecipients requestField (String field) {
this.requestField(field, true);
return this;
}
@Override
public APIRequestGetAppRequestFormerRecipients requestField (String field, boolean value) {
this.requestFieldInternal(field, value);
return this;
}
public APIRequestGetAppRequestFormerRecipients requestIdField () {
return this.requestIdField(true);
}
public APIRequestGetAppRequestFormerRecipients requestIdField (boolean value) {
this.requestField("id", value);
return this;
}
public APIRequestGetAppRequestFormerRecipients requestRecipientIdField () {
return this.requestRecipientIdField(true);
}
public APIRequestGetAppRequestFormerRecipients requestRecipientIdField (boolean value) {
this.requestField("recipient_id", value);
return this;
}
}
public static class APIRequestGetAppRequests extends APIRequest {
APINodeList lastResponse = null;
@Override
public APINodeList getLastResponse() {
return lastResponse;
}
public static final String[] PARAMS = {
};
public static final String[] FIELDS = {
"action_type",
"application",
"created_time",
"data",
"from",
"id",
"message",
"object",
"to",
};
@Override
public APINodeList parseResponse(String response, String header) throws APIException {
return AppRequest.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 APIRequestGetAppRequests.this.parseResponse(result.getBody(), result.getHeader());
} catch (Exception e) {
throw new RuntimeException(e);
}
}
}
);
};
public APIRequestGetAppRequests(String nodeId, APIContext context) {
super(context, nodeId, "/apprequests", "GET", Arrays.asList(PARAMS));
}
@Override
public APIRequestGetAppRequests setParam(String param, Object value) {
setParamInternal(param, value);
return this;
}
@Override
public APIRequestGetAppRequests setParams(Map params) {
setParamsInternal(params);
return this;
}
public APIRequestGetAppRequests requestAllFields () {
return this.requestAllFields(true);
}
public APIRequestGetAppRequests requestAllFields (boolean value) {
for (String field : FIELDS) {
this.requestField(field, value);
}
return this;
}
@Override
public APIRequestGetAppRequests requestFields (List fields) {
return this.requestFields(fields, true);
}
@Override
public APIRequestGetAppRequests requestFields (List fields, boolean value) {
for (String field : fields) {
this.requestField(field, value);
}
return this;
}
@Override
public APIRequestGetAppRequests requestField (String field) {
this.requestField(field, true);
return this;
}
@Override
public APIRequestGetAppRequests requestField (String field, boolean value) {
this.requestFieldInternal(field, value);
return this;
}
public APIRequestGetAppRequests requestActionTypeField () {
return this.requestActionTypeField(true);
}
public APIRequestGetAppRequests requestActionTypeField (boolean value) {
this.requestField("action_type", value);
return this;
}
public APIRequestGetAppRequests requestApplicationField () {
return this.requestApplicationField(true);
}
public APIRequestGetAppRequests requestApplicationField (boolean value) {
this.requestField("application", value);
return this;
}
public APIRequestGetAppRequests requestCreatedTimeField () {
return this.requestCreatedTimeField(true);
}
public APIRequestGetAppRequests requestCreatedTimeField (boolean value) {
this.requestField("created_time", value);
return this;
}
public APIRequestGetAppRequests requestDataField () {
return this.requestDataField(true);
}
public APIRequestGetAppRequests requestDataField (boolean value) {
this.requestField("data", value);
return this;
}
public APIRequestGetAppRequests requestFromField () {
return this.requestFromField(true);
}
public APIRequestGetAppRequests requestFromField (boolean value) {
this.requestField("from", value);
return this;
}
public APIRequestGetAppRequests requestIdField () {
return this.requestIdField(true);
}
public APIRequestGetAppRequests requestIdField (boolean value) {
this.requestField("id", value);
return this;
}
public APIRequestGetAppRequests requestMessageField () {
return this.requestMessageField(true);
}
public APIRequestGetAppRequests requestMessageField (boolean value) {
this.requestField("message", value);
return this;
}
public APIRequestGetAppRequests requestObjectField () {
return this.requestObjectField(true);
}
public APIRequestGetAppRequests requestObjectField (boolean value) {
this.requestField("object", value);
return this;
}
public APIRequestGetAppRequests requestToField () {
return this.requestToField(true);
}
public APIRequestGetAppRequests requestToField (boolean value) {
this.requestField("to", value);
return this;
}
}
public static class APIRequestGetAssignedAdAccounts extends APIRequest {
APINodeList lastResponse = null;
@Override
public APINodeList getLastResponse() {
return lastResponse;
}
public static final String[] PARAMS = {
};
public static final String[] FIELDS = {
"account_id",
"account_status",
"ad_account_promotable_objects",
"age",
"agency_client_declaration",
"all_capabilities",
"amount_spent",
"attribution_spec",
"balance",
"business",
"business_city",
"business_country_code",
"business_name",
"business_state",
"business_street",
"business_street2",
"business_zip",
"capabilities",
"created_time",
"currency",
"custom_audience_info",
"default_dsa_beneficiary",
"default_dsa_payor",
"disable_reason",
"end_advertiser",
"end_advertiser_name",
"existing_customers",
"extended_credit_invoice_group",
"failed_delivery_checks",
"fb_entity",
"funding_source",
"funding_source_details",
"has_migrated_permissions",
"has_page_authorized_adaccount",
"id",
"io_number",
"is_attribution_spec_system_default",
"is_direct_deals_enabled",
"is_in_3ds_authorization_enabled_market",
"is_notifications_enabled",
"is_personal",
"is_prepay_account",
"is_tax_id_required",
"liable_address",
"line_numbers",
"media_agency",
"min_campaign_group_spend_cap",
"min_daily_budget",
"name",
"offsite_pixels_tos_accepted",
"owner",
"owner_business",
"partner",
"rf_spec",
"send_bill_to_address",
"show_checkout_experience",
"sold_to_address",
"spend_cap",
"tax_id",
"tax_id_status",
"tax_id_type",
"timezone_id",
"timezone_name",
"timezone_offset_hours_utc",
"tos_accepted",
"user_access_expire_time",
"user_tasks",
"user_tos_accepted",
"viewable_business",
};
@Override
public APINodeList parseResponse(String response, String header) throws APIException {
return AdAccount.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 APIRequestGetAssignedAdAccounts.this.parseResponse(result.getBody(), result.getHeader());
} catch (Exception e) {
throw new RuntimeException(e);
}
}
}
);
};
public APIRequestGetAssignedAdAccounts(String nodeId, APIContext context) {
super(context, nodeId, "/assigned_ad_accounts", "GET", Arrays.asList(PARAMS));
}
@Override
public APIRequestGetAssignedAdAccounts setParam(String param, Object value) {
setParamInternal(param, value);
return this;
}
@Override
public APIRequestGetAssignedAdAccounts setParams(Map params) {
setParamsInternal(params);
return this;
}
public APIRequestGetAssignedAdAccounts requestAllFields () {
return this.requestAllFields(true);
}
public APIRequestGetAssignedAdAccounts requestAllFields (boolean value) {
for (String field : FIELDS) {
this.requestField(field, value);
}
return this;
}
@Override
public APIRequestGetAssignedAdAccounts requestFields (List fields) {
return this.requestFields(fields, true);
}
@Override
public APIRequestGetAssignedAdAccounts requestFields (List fields, boolean value) {
for (String field : fields) {
this.requestField(field, value);
}
return this;
}
@Override
public APIRequestGetAssignedAdAccounts requestField (String field) {
this.requestField(field, true);
return this;
}
@Override
public APIRequestGetAssignedAdAccounts requestField (String field, boolean value) {
this.requestFieldInternal(field, value);
return this;
}
public APIRequestGetAssignedAdAccounts requestAccountIdField () {
return this.requestAccountIdField(true);
}
public APIRequestGetAssignedAdAccounts requestAccountIdField (boolean value) {
this.requestField("account_id", value);
return this;
}
public APIRequestGetAssignedAdAccounts requestAccountStatusField () {
return this.requestAccountStatusField(true);
}
public APIRequestGetAssignedAdAccounts requestAccountStatusField (boolean value) {
this.requestField("account_status", value);
return this;
}
public APIRequestGetAssignedAdAccounts requestAdAccountPromotableObjectsField () {
return this.requestAdAccountPromotableObjectsField(true);
}
public APIRequestGetAssignedAdAccounts requestAdAccountPromotableObjectsField (boolean value) {
this.requestField("ad_account_promotable_objects", value);
return this;
}
public APIRequestGetAssignedAdAccounts requestAgeField () {
return this.requestAgeField(true);
}
public APIRequestGetAssignedAdAccounts requestAgeField (boolean value) {
this.requestField("age", value);
return this;
}
public APIRequestGetAssignedAdAccounts requestAgencyClientDeclarationField () {
return this.requestAgencyClientDeclarationField(true);
}
public APIRequestGetAssignedAdAccounts requestAgencyClientDeclarationField (boolean value) {
this.requestField("agency_client_declaration", value);
return this;
}
public APIRequestGetAssignedAdAccounts requestAllCapabilitiesField () {
return this.requestAllCapabilitiesField(true);
}
public APIRequestGetAssignedAdAccounts requestAllCapabilitiesField (boolean value) {
this.requestField("all_capabilities", value);
return this;
}
public APIRequestGetAssignedAdAccounts requestAmountSpentField () {
return this.requestAmountSpentField(true);
}
public APIRequestGetAssignedAdAccounts requestAmountSpentField (boolean value) {
this.requestField("amount_spent", value);
return this;
}
public APIRequestGetAssignedAdAccounts requestAttributionSpecField () {
return this.requestAttributionSpecField(true);
}
public APIRequestGetAssignedAdAccounts requestAttributionSpecField (boolean value) {
this.requestField("attribution_spec", value);
return this;
}
public APIRequestGetAssignedAdAccounts requestBalanceField () {
return this.requestBalanceField(true);
}
public APIRequestGetAssignedAdAccounts requestBalanceField (boolean value) {
this.requestField("balance", value);
return this;
}
public APIRequestGetAssignedAdAccounts requestBusinessField () {
return this.requestBusinessField(true);
}
public APIRequestGetAssignedAdAccounts requestBusinessField (boolean value) {
this.requestField("business", value);
return this;
}
public APIRequestGetAssignedAdAccounts requestBusinessCityField () {
return this.requestBusinessCityField(true);
}
public APIRequestGetAssignedAdAccounts requestBusinessCityField (boolean value) {
this.requestField("business_city", value);
return this;
}
public APIRequestGetAssignedAdAccounts requestBusinessCountryCodeField () {
return this.requestBusinessCountryCodeField(true);
}
public APIRequestGetAssignedAdAccounts requestBusinessCountryCodeField (boolean value) {
this.requestField("business_country_code", value);
return this;
}
public APIRequestGetAssignedAdAccounts requestBusinessNameField () {
return this.requestBusinessNameField(true);
}
public APIRequestGetAssignedAdAccounts requestBusinessNameField (boolean value) {
this.requestField("business_name", value);
return this;
}
public APIRequestGetAssignedAdAccounts requestBusinessStateField () {
return this.requestBusinessStateField(true);
}
public APIRequestGetAssignedAdAccounts requestBusinessStateField (boolean value) {
this.requestField("business_state", value);
return this;
}
public APIRequestGetAssignedAdAccounts requestBusinessStreetField () {
return this.requestBusinessStreetField(true);
}
public APIRequestGetAssignedAdAccounts requestBusinessStreetField (boolean value) {
this.requestField("business_street", value);
return this;
}
public APIRequestGetAssignedAdAccounts requestBusinessStreet2Field () {
return this.requestBusinessStreet2Field(true);
}
public APIRequestGetAssignedAdAccounts requestBusinessStreet2Field (boolean value) {
this.requestField("business_street2", value);
return this;
}
public APIRequestGetAssignedAdAccounts requestBusinessZipField () {
return this.requestBusinessZipField(true);
}
public APIRequestGetAssignedAdAccounts requestBusinessZipField (boolean value) {
this.requestField("business_zip", value);
return this;
}
public APIRequestGetAssignedAdAccounts requestCapabilitiesField () {
return this.requestCapabilitiesField(true);
}
public APIRequestGetAssignedAdAccounts requestCapabilitiesField (boolean value) {
this.requestField("capabilities", value);
return this;
}
public APIRequestGetAssignedAdAccounts requestCreatedTimeField () {
return this.requestCreatedTimeField(true);
}
public APIRequestGetAssignedAdAccounts requestCreatedTimeField (boolean value) {
this.requestField("created_time", value);
return this;
}
public APIRequestGetAssignedAdAccounts requestCurrencyField () {
return this.requestCurrencyField(true);
}
public APIRequestGetAssignedAdAccounts requestCurrencyField (boolean value) {
this.requestField("currency", value);
return this;
}
public APIRequestGetAssignedAdAccounts requestCustomAudienceInfoField () {
return this.requestCustomAudienceInfoField(true);
}
public APIRequestGetAssignedAdAccounts requestCustomAudienceInfoField (boolean value) {
this.requestField("custom_audience_info", value);
return this;
}
public APIRequestGetAssignedAdAccounts requestDefaultDsaBeneficiaryField () {
return this.requestDefaultDsaBeneficiaryField(true);
}
public APIRequestGetAssignedAdAccounts requestDefaultDsaBeneficiaryField (boolean value) {
this.requestField("default_dsa_beneficiary", value);
return this;
}
public APIRequestGetAssignedAdAccounts requestDefaultDsaPayorField () {
return this.requestDefaultDsaPayorField(true);
}
public APIRequestGetAssignedAdAccounts requestDefaultDsaPayorField (boolean value) {
this.requestField("default_dsa_payor", value);
return this;
}
public APIRequestGetAssignedAdAccounts requestDisableReasonField () {
return this.requestDisableReasonField(true);
}
public APIRequestGetAssignedAdAccounts requestDisableReasonField (boolean value) {
this.requestField("disable_reason", value);
return this;
}
public APIRequestGetAssignedAdAccounts requestEndAdvertiserField () {
return this.requestEndAdvertiserField(true);
}
public APIRequestGetAssignedAdAccounts requestEndAdvertiserField (boolean value) {
this.requestField("end_advertiser", value);
return this;
}
public APIRequestGetAssignedAdAccounts requestEndAdvertiserNameField () {
return this.requestEndAdvertiserNameField(true);
}
public APIRequestGetAssignedAdAccounts requestEndAdvertiserNameField (boolean value) {
this.requestField("end_advertiser_name", value);
return this;
}
public APIRequestGetAssignedAdAccounts requestExistingCustomersField () {
return this.requestExistingCustomersField(true);
}
public APIRequestGetAssignedAdAccounts requestExistingCustomersField (boolean value) {
this.requestField("existing_customers", value);
return this;
}
public APIRequestGetAssignedAdAccounts requestExtendedCreditInvoiceGroupField () {
return this.requestExtendedCreditInvoiceGroupField(true);
}
public APIRequestGetAssignedAdAccounts requestExtendedCreditInvoiceGroupField (boolean value) {
this.requestField("extended_credit_invoice_group", value);
return this;
}
public APIRequestGetAssignedAdAccounts requestFailedDeliveryChecksField () {
return this.requestFailedDeliveryChecksField(true);
}
public APIRequestGetAssignedAdAccounts requestFailedDeliveryChecksField (boolean value) {
this.requestField("failed_delivery_checks", value);
return this;
}
public APIRequestGetAssignedAdAccounts requestFbEntityField () {
return this.requestFbEntityField(true);
}
public APIRequestGetAssignedAdAccounts requestFbEntityField (boolean value) {
this.requestField("fb_entity", value);
return this;
}
public APIRequestGetAssignedAdAccounts requestFundingSourceField () {
return this.requestFundingSourceField(true);
}
public APIRequestGetAssignedAdAccounts requestFundingSourceField (boolean value) {
this.requestField("funding_source", value);
return this;
}
public APIRequestGetAssignedAdAccounts requestFundingSourceDetailsField () {
return this.requestFundingSourceDetailsField(true);
}
public APIRequestGetAssignedAdAccounts requestFundingSourceDetailsField (boolean value) {
this.requestField("funding_source_details", value);
return this;
}
public APIRequestGetAssignedAdAccounts requestHasMigratedPermissionsField () {
return this.requestHasMigratedPermissionsField(true);
}
public APIRequestGetAssignedAdAccounts requestHasMigratedPermissionsField (boolean value) {
this.requestField("has_migrated_permissions", value);
return this;
}
public APIRequestGetAssignedAdAccounts requestHasPageAuthorizedAdaccountField () {
return this.requestHasPageAuthorizedAdaccountField(true);
}
public APIRequestGetAssignedAdAccounts requestHasPageAuthorizedAdaccountField (boolean value) {
this.requestField("has_page_authorized_adaccount", value);
return this;
}
public APIRequestGetAssignedAdAccounts requestIdField () {
return this.requestIdField(true);
}
public APIRequestGetAssignedAdAccounts requestIdField (boolean value) {
this.requestField("id", value);
return this;
}
public APIRequestGetAssignedAdAccounts requestIoNumberField () {
return this.requestIoNumberField(true);
}
public APIRequestGetAssignedAdAccounts requestIoNumberField (boolean value) {
this.requestField("io_number", value);
return this;
}
public APIRequestGetAssignedAdAccounts requestIsAttributionSpecSystemDefaultField () {
return this.requestIsAttributionSpecSystemDefaultField(true);
}
public APIRequestGetAssignedAdAccounts requestIsAttributionSpecSystemDefaultField (boolean value) {
this.requestField("is_attribution_spec_system_default", value);
return this;
}
public APIRequestGetAssignedAdAccounts requestIsDirectDealsEnabledField () {
return this.requestIsDirectDealsEnabledField(true);
}
public APIRequestGetAssignedAdAccounts requestIsDirectDealsEnabledField (boolean value) {
this.requestField("is_direct_deals_enabled", value);
return this;
}
public APIRequestGetAssignedAdAccounts requestIsIn3dsAuthorizationEnabledMarketField () {
return this.requestIsIn3dsAuthorizationEnabledMarketField(true);
}
public APIRequestGetAssignedAdAccounts requestIsIn3dsAuthorizationEnabledMarketField (boolean value) {
this.requestField("is_in_3ds_authorization_enabled_market", value);
return this;
}
public APIRequestGetAssignedAdAccounts requestIsNotificationsEnabledField () {
return this.requestIsNotificationsEnabledField(true);
}
public APIRequestGetAssignedAdAccounts requestIsNotificationsEnabledField (boolean value) {
this.requestField("is_notifications_enabled", value);
return this;
}
public APIRequestGetAssignedAdAccounts requestIsPersonalField () {
return this.requestIsPersonalField(true);
}
public APIRequestGetAssignedAdAccounts requestIsPersonalField (boolean value) {
this.requestField("is_personal", value);
return this;
}
public APIRequestGetAssignedAdAccounts requestIsPrepayAccountField () {
return this.requestIsPrepayAccountField(true);
}
public APIRequestGetAssignedAdAccounts requestIsPrepayAccountField (boolean value) {
this.requestField("is_prepay_account", value);
return this;
}
public APIRequestGetAssignedAdAccounts requestIsTaxIdRequiredField () {
return this.requestIsTaxIdRequiredField(true);
}
public APIRequestGetAssignedAdAccounts requestIsTaxIdRequiredField (boolean value) {
this.requestField("is_tax_id_required", value);
return this;
}
public APIRequestGetAssignedAdAccounts requestLiableAddressField () {
return this.requestLiableAddressField(true);
}
public APIRequestGetAssignedAdAccounts requestLiableAddressField (boolean value) {
this.requestField("liable_address", value);
return this;
}
public APIRequestGetAssignedAdAccounts requestLineNumbersField () {
return this.requestLineNumbersField(true);
}
public APIRequestGetAssignedAdAccounts requestLineNumbersField (boolean value) {
this.requestField("line_numbers", value);
return this;
}
public APIRequestGetAssignedAdAccounts requestMediaAgencyField () {
return this.requestMediaAgencyField(true);
}
public APIRequestGetAssignedAdAccounts requestMediaAgencyField (boolean value) {
this.requestField("media_agency", value);
return this;
}
public APIRequestGetAssignedAdAccounts requestMinCampaignGroupSpendCapField () {
return this.requestMinCampaignGroupSpendCapField(true);
}
public APIRequestGetAssignedAdAccounts requestMinCampaignGroupSpendCapField (boolean value) {
this.requestField("min_campaign_group_spend_cap", value);
return this;
}
public APIRequestGetAssignedAdAccounts requestMinDailyBudgetField () {
return this.requestMinDailyBudgetField(true);
}
public APIRequestGetAssignedAdAccounts requestMinDailyBudgetField (boolean value) {
this.requestField("min_daily_budget", value);
return this;
}
public APIRequestGetAssignedAdAccounts requestNameField () {
return this.requestNameField(true);
}
public APIRequestGetAssignedAdAccounts requestNameField (boolean value) {
this.requestField("name", value);
return this;
}
public APIRequestGetAssignedAdAccounts requestOffsitePixelsTosAcceptedField () {
return this.requestOffsitePixelsTosAcceptedField(true);
}
public APIRequestGetAssignedAdAccounts requestOffsitePixelsTosAcceptedField (boolean value) {
this.requestField("offsite_pixels_tos_accepted", value);
return this;
}
public APIRequestGetAssignedAdAccounts requestOwnerField () {
return this.requestOwnerField(true);
}
public APIRequestGetAssignedAdAccounts requestOwnerField (boolean value) {
this.requestField("owner", value);
return this;
}
public APIRequestGetAssignedAdAccounts requestOwnerBusinessField () {
return this.requestOwnerBusinessField(true);
}
public APIRequestGetAssignedAdAccounts requestOwnerBusinessField (boolean value) {
this.requestField("owner_business", value);
return this;
}
public APIRequestGetAssignedAdAccounts requestPartnerField () {
return this.requestPartnerField(true);
}
public APIRequestGetAssignedAdAccounts requestPartnerField (boolean value) {
this.requestField("partner", value);
return this;
}
public APIRequestGetAssignedAdAccounts requestRfSpecField () {
return this.requestRfSpecField(true);
}
public APIRequestGetAssignedAdAccounts requestRfSpecField (boolean value) {
this.requestField("rf_spec", value);
return this;
}
public APIRequestGetAssignedAdAccounts requestSendBillToAddressField () {
return this.requestSendBillToAddressField(true);
}
public APIRequestGetAssignedAdAccounts requestSendBillToAddressField (boolean value) {
this.requestField("send_bill_to_address", value);
return this;
}
public APIRequestGetAssignedAdAccounts requestShowCheckoutExperienceField () {
return this.requestShowCheckoutExperienceField(true);
}
public APIRequestGetAssignedAdAccounts requestShowCheckoutExperienceField (boolean value) {
this.requestField("show_checkout_experience", value);
return this;
}
public APIRequestGetAssignedAdAccounts requestSoldToAddressField () {
return this.requestSoldToAddressField(true);
}
public APIRequestGetAssignedAdAccounts requestSoldToAddressField (boolean value) {
this.requestField("sold_to_address", value);
return this;
}
public APIRequestGetAssignedAdAccounts requestSpendCapField () {
return this.requestSpendCapField(true);
}
public APIRequestGetAssignedAdAccounts requestSpendCapField (boolean value) {
this.requestField("spend_cap", value);
return this;
}
public APIRequestGetAssignedAdAccounts requestTaxIdField () {
return this.requestTaxIdField(true);
}
public APIRequestGetAssignedAdAccounts requestTaxIdField (boolean value) {
this.requestField("tax_id", value);
return this;
}
public APIRequestGetAssignedAdAccounts requestTaxIdStatusField () {
return this.requestTaxIdStatusField(true);
}
public APIRequestGetAssignedAdAccounts requestTaxIdStatusField (boolean value) {
this.requestField("tax_id_status", value);
return this;
}
public APIRequestGetAssignedAdAccounts requestTaxIdTypeField () {
return this.requestTaxIdTypeField(true);
}
public APIRequestGetAssignedAdAccounts requestTaxIdTypeField (boolean value) {
this.requestField("tax_id_type", value);
return this;
}
public APIRequestGetAssignedAdAccounts requestTimezoneIdField () {
return this.requestTimezoneIdField(true);
}
public APIRequestGetAssignedAdAccounts requestTimezoneIdField (boolean value) {
this.requestField("timezone_id", value);
return this;
}
public APIRequestGetAssignedAdAccounts requestTimezoneNameField () {
return this.requestTimezoneNameField(true);
}
public APIRequestGetAssignedAdAccounts requestTimezoneNameField (boolean value) {
this.requestField("timezone_name", value);
return this;
}
public APIRequestGetAssignedAdAccounts requestTimezoneOffsetHoursUtcField () {
return this.requestTimezoneOffsetHoursUtcField(true);
}
public APIRequestGetAssignedAdAccounts requestTimezoneOffsetHoursUtcField (boolean value) {
this.requestField("timezone_offset_hours_utc", value);
return this;
}
public APIRequestGetAssignedAdAccounts requestTosAcceptedField () {
return this.requestTosAcceptedField(true);
}
public APIRequestGetAssignedAdAccounts requestTosAcceptedField (boolean value) {
this.requestField("tos_accepted", value);
return this;
}
public APIRequestGetAssignedAdAccounts requestUserAccessExpireTimeField () {
return this.requestUserAccessExpireTimeField(true);
}
public APIRequestGetAssignedAdAccounts requestUserAccessExpireTimeField (boolean value) {
this.requestField("user_access_expire_time", value);
return this;
}
public APIRequestGetAssignedAdAccounts requestUserTasksField () {
return this.requestUserTasksField(true);
}
public APIRequestGetAssignedAdAccounts requestUserTasksField (boolean value) {
this.requestField("user_tasks", value);
return this;
}
public APIRequestGetAssignedAdAccounts requestUserTosAcceptedField () {
return this.requestUserTosAcceptedField(true);
}
public APIRequestGetAssignedAdAccounts requestUserTosAcceptedField (boolean value) {
this.requestField("user_tos_accepted", value);
return this;
}
public APIRequestGetAssignedAdAccounts requestViewableBusinessField () {
return this.requestViewableBusinessField(true);
}
public APIRequestGetAssignedAdAccounts requestViewableBusinessField (boolean value) {
this.requestField("viewable_business", value);
return this;
}
}
public static class APIRequestGetAssignedBusinessAssetGroups extends APIRequest {
APINodeList lastResponse = null;
@Override
public APINodeList getLastResponse() {
return lastResponse;
}
public static final String[] PARAMS = {
"contained_asset_id",
};
public static final String[] FIELDS = {
"id",
"name",
"owner_business",
};
@Override
public APINodeList parseResponse(String response, String header) throws APIException {
return BusinessAssetGroup.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 APIRequestGetAssignedBusinessAssetGroups.this.parseResponse(result.getBody(), result.getHeader());
} catch (Exception e) {
throw new RuntimeException(e);
}
}
}
);
};
public APIRequestGetAssignedBusinessAssetGroups(String nodeId, APIContext context) {
super(context, nodeId, "/assigned_business_asset_groups", "GET", Arrays.asList(PARAMS));
}
@Override
public APIRequestGetAssignedBusinessAssetGroups setParam(String param, Object value) {
setParamInternal(param, value);
return this;
}
@Override
public APIRequestGetAssignedBusinessAssetGroups setParams(Map params) {
setParamsInternal(params);
return this;
}
public APIRequestGetAssignedBusinessAssetGroups setContainedAssetId (String containedAssetId) {
this.setParam("contained_asset_id", containedAssetId);
return this;
}
public APIRequestGetAssignedBusinessAssetGroups requestAllFields () {
return this.requestAllFields(true);
}
public APIRequestGetAssignedBusinessAssetGroups requestAllFields (boolean value) {
for (String field : FIELDS) {
this.requestField(field, value);
}
return this;
}
@Override
public APIRequestGetAssignedBusinessAssetGroups requestFields (List fields) {
return this.requestFields(fields, true);
}
@Override
public APIRequestGetAssignedBusinessAssetGroups requestFields (List fields, boolean value) {
for (String field : fields) {
this.requestField(field, value);
}
return this;
}
@Override
public APIRequestGetAssignedBusinessAssetGroups requestField (String field) {
this.requestField(field, true);
return this;
}
@Override
public APIRequestGetAssignedBusinessAssetGroups requestField (String field, boolean value) {
this.requestFieldInternal(field, value);
return this;
}
public APIRequestGetAssignedBusinessAssetGroups requestIdField () {
return this.requestIdField(true);
}
public APIRequestGetAssignedBusinessAssetGroups requestIdField (boolean value) {
this.requestField("id", value);
return this;
}
public APIRequestGetAssignedBusinessAssetGroups requestNameField () {
return this.requestNameField(true);
}
public APIRequestGetAssignedBusinessAssetGroups requestNameField (boolean value) {
this.requestField("name", value);
return this;
}
public APIRequestGetAssignedBusinessAssetGroups requestOwnerBusinessField () {
return this.requestOwnerBusinessField(true);
}
public APIRequestGetAssignedBusinessAssetGroups requestOwnerBusinessField (boolean value) {
this.requestField("owner_business", value);
return this;
}
}
public static class APIRequestGetAssignedPages extends APIRequest {
APINodeList lastResponse = null;
@Override
public APINodeList getLastResponse() {
return lastResponse;
}
public static final String[] PARAMS = {
"pages",
};
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",
"does_viewer_have_page_permission_link_ig",
"emails",
"engagement",
"fan_count",
"featured_video",
"features",
"followers_count",
"food_styles",
"founded",
"general_info",
"general_manager",
"genre",
"global_brand_page_name",
"global_brand_root_id",
"has_added_app",
"has_lead_access",
"has_transitioned_to_new_page_experience",
"has_whatsapp_business_number",
"has_whatsapp_enterprise_number_using_cloud_api",
"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_eligible_for_disable_connect_ig_btn_for_non_page_admin_am_web",
"is_messenger_bot_get_started_enabled",
"is_messenger_platform_bot",
"is_owned",
"is_permanently_closed",
"is_published",
"is_unclaimed",
"is_verified",
"is_webhooks_subscribed",
"keywords",
"leadgen_tos_acceptance_time",
"leadgen_tos_accepted",
"leadgen_tos_accepting_user",
"link",
"location",
"members",
"merchant_id",
"merchant_review_status",
"messaging_feature_status",
"messenger_ads_default_icebreakers",
"messenger_ads_default_quick_replies",
"messenger_ads_quick_replies_type",
"mini_shop_storefront",
"mission",
"mpg",
"name",
"name_with_location_descriptor",
"network",
"new_like_count",
"offer_eligible",
"overall_star_rating",
"owner_business",
"page_about_story",
"page_token",
"parent_page",
"parking",
"payment_options",
"personal_info",
"personal_interests",
"pharma_safety_info",
"phone",
"pickup_options",
"place_type",
"plot_outline",
"preferred_audience",
"press_contact",
"price_range",
"privacy_info_url",
"produced_by",
"products",
"promotion_eligible",
"promotion_ineligible_reason",
"public_transit",
"rating_count",
"recipient",
"record_label",
"release_date",
"restaurant_services",
"restaurant_specialties",
"schedule",
"screenplay_by",
"season",
"single_line_address",
"starring",
"start_info",
"store_code",
"store_location_descriptor",
"store_number",
"studio",
"supports_donate_button_in_live_video",
"talking_about_count",
"temporary_status",
"unread_message_count",
"unread_notif_count",
"unseen_message_count",
"user_access_expire_time",
"username",
"verification_status",
"voip_info",
"website",
"were_here_count",
"whatsapp_number",
"written_by",
};
@Override
public APINodeList parseResponse(String response, String header) throws APIException {
return Page.parseResponse(response, getContext(), this, header);
}
@Override
public APINodeList execute() throws APIException {
return execute(new HashMap());
}
@Override
public APINodeList execute(Map extraParams) throws APIException {
ResponseWrapper rw = executeInternal(extraParams);
lastResponse = parseResponse(rw.getBody(),rw.getHeader());
return lastResponse;
}
public ListenableFuture> executeAsync() throws APIException {
return executeAsync(new HashMap());
};
public ListenableFuture> executeAsync(Map extraParams) throws APIException {
return Futures.transform(
executeAsyncInternal(extraParams),
new Function>() {
public APINodeList apply(ResponseWrapper result) {
try {
return APIRequestGetAssignedPages.this.parseResponse(result.getBody(), result.getHeader());
} catch (Exception e) {
throw new RuntimeException(e);
}
}
}
);
};
public APIRequestGetAssignedPages(String nodeId, APIContext context) {
super(context, nodeId, "/assigned_pages", "GET", Arrays.asList(PARAMS));
}
@Override
public APIRequestGetAssignedPages setParam(String param, Object value) {
setParamInternal(param, value);
return this;
}
@Override
public APIRequestGetAssignedPages setParams(Map params) {
setParamsInternal(params);
return this;
}
public APIRequestGetAssignedPages setPages (List pages) {
this.setParam("pages", pages);
return this;
}
public APIRequestGetAssignedPages setPages (String pages) {
this.setParam("pages", pages);
return this;
}
public APIRequestGetAssignedPages requestAllFields () {
return this.requestAllFields(true);
}
public APIRequestGetAssignedPages requestAllFields (boolean value) {
for (String field : FIELDS) {
this.requestField(field, value);
}
return this;
}
@Override
public APIRequestGetAssignedPages requestFields (List fields) {
return this.requestFields(fields, true);
}
@Override
public APIRequestGetAssignedPages requestFields (List fields, boolean value) {
for (String field : fields) {
this.requestField(field, value);
}
return this;
}
@Override
public APIRequestGetAssignedPages requestField (String field) {
this.requestField(field, true);
return this;
}
@Override
public APIRequestGetAssignedPages requestField (String field, boolean value) {
this.requestFieldInternal(field, value);
return this;
}
public APIRequestGetAssignedPages requestAboutField () {
return this.requestAboutField(true);
}
public APIRequestGetAssignedPages requestAboutField (boolean value) {
this.requestField("about", value);
return this;
}
public APIRequestGetAssignedPages requestAccessTokenField () {
return this.requestAccessTokenField(true);
}
public APIRequestGetAssignedPages requestAccessTokenField (boolean value) {
this.requestField("access_token", value);
return this;
}
public APIRequestGetAssignedPages requestAdCampaignField () {
return this.requestAdCampaignField(true);
}
public APIRequestGetAssignedPages requestAdCampaignField (boolean value) {
this.requestField("ad_campaign", value);
return this;
}
public APIRequestGetAssignedPages requestAffiliationField () {
return this.requestAffiliationField(true);
}
public APIRequestGetAssignedPages requestAffiliationField (boolean value) {
this.requestField("affiliation", value);
return this;
}
public APIRequestGetAssignedPages requestAppIdField () {
return this.requestAppIdField(true);
}
public APIRequestGetAssignedPages requestAppIdField (boolean value) {
this.requestField("app_id", value);
return this;
}
public APIRequestGetAssignedPages requestArtistsWeLikeField () {
return this.requestArtistsWeLikeField(true);
}
public APIRequestGetAssignedPages requestArtistsWeLikeField (boolean value) {
this.requestField("artists_we_like", value);
return this;
}
public APIRequestGetAssignedPages requestAttireField () {
return this.requestAttireField(true);
}
public APIRequestGetAssignedPages requestAttireField (boolean value) {
this.requestField("attire", value);
return this;
}
public APIRequestGetAssignedPages requestAwardsField () {
return this.requestAwardsField(true);
}
public APIRequestGetAssignedPages requestAwardsField (boolean value) {
this.requestField("awards", value);
return this;
}
public APIRequestGetAssignedPages requestBandInterestsField () {
return this.requestBandInterestsField(true);
}
public APIRequestGetAssignedPages requestBandInterestsField (boolean value) {
this.requestField("band_interests", value);
return this;
}
public APIRequestGetAssignedPages requestBandMembersField () {
return this.requestBandMembersField(true);
}
public APIRequestGetAssignedPages requestBandMembersField (boolean value) {
this.requestField("band_members", value);
return this;
}
public APIRequestGetAssignedPages requestBestPageField () {
return this.requestBestPageField(true);
}
public APIRequestGetAssignedPages requestBestPageField (boolean value) {
this.requestField("best_page", value);
return this;
}
public APIRequestGetAssignedPages requestBioField () {
return this.requestBioField(true);
}
public APIRequestGetAssignedPages requestBioField (boolean value) {
this.requestField("bio", value);
return this;
}
public APIRequestGetAssignedPages requestBirthdayField () {
return this.requestBirthdayField(true);
}
public APIRequestGetAssignedPages requestBirthdayField (boolean value) {
this.requestField("birthday", value);
return this;
}
public APIRequestGetAssignedPages requestBookingAgentField () {
return this.requestBookingAgentField(true);
}
public APIRequestGetAssignedPages requestBookingAgentField (boolean value) {
this.requestField("booking_agent", value);
return this;
}
public APIRequestGetAssignedPages requestBuiltField () {
return this.requestBuiltField(true);
}
public APIRequestGetAssignedPages requestBuiltField (boolean value) {
this.requestField("built", value);
return this;
}
public APIRequestGetAssignedPages requestBusinessField () {
return this.requestBusinessField(true);
}
public APIRequestGetAssignedPages requestBusinessField (boolean value) {
this.requestField("business", value);
return this;
}
public APIRequestGetAssignedPages requestCanCheckinField () {
return this.requestCanCheckinField(true);
}
public APIRequestGetAssignedPages requestCanCheckinField (boolean value) {
this.requestField("can_checkin", value);
return this;
}
public APIRequestGetAssignedPages requestCanPostField () {
return this.requestCanPostField(true);
}
public APIRequestGetAssignedPages requestCanPostField (boolean value) {
this.requestField("can_post", value);
return this;
}
public APIRequestGetAssignedPages requestCategoryField () {
return this.requestCategoryField(true);
}
public APIRequestGetAssignedPages requestCategoryField (boolean value) {
this.requestField("category", value);
return this;
}
public APIRequestGetAssignedPages requestCategoryListField () {
return this.requestCategoryListField(true);
}
public APIRequestGetAssignedPages requestCategoryListField (boolean value) {
this.requestField("category_list", value);
return this;
}
public APIRequestGetAssignedPages requestCheckinsField () {
return this.requestCheckinsField(true);
}
public APIRequestGetAssignedPages requestCheckinsField (boolean value) {
this.requestField("checkins", value);
return this;
}
public APIRequestGetAssignedPages requestCompanyOverviewField () {
return this.requestCompanyOverviewField(true);
}
public APIRequestGetAssignedPages requestCompanyOverviewField (boolean value) {
this.requestField("company_overview", value);
return this;
}
public APIRequestGetAssignedPages requestConnectedInstagramAccountField () {
return this.requestConnectedInstagramAccountField(true);
}
public APIRequestGetAssignedPages requestConnectedInstagramAccountField (boolean value) {
this.requestField("connected_instagram_account", value);
return this;
}
public APIRequestGetAssignedPages requestConnectedPageBackedInstagramAccountField () {
return this.requestConnectedPageBackedInstagramAccountField(true);
}
public APIRequestGetAssignedPages requestConnectedPageBackedInstagramAccountField (boolean value) {
this.requestField("connected_page_backed_instagram_account", value);
return this;
}
public APIRequestGetAssignedPages requestContactAddressField () {
return this.requestContactAddressField(true);
}
public APIRequestGetAssignedPages requestContactAddressField (boolean value) {
this.requestField("contact_address", value);
return this;
}
public APIRequestGetAssignedPages requestCopyrightWhitelistedIgPartnersField () {
return this.requestCopyrightWhitelistedIgPartnersField(true);
}
public APIRequestGetAssignedPages requestCopyrightWhitelistedIgPartnersField (boolean value) {
this.requestField("copyright_whitelisted_ig_partners", value);
return this;
}
public APIRequestGetAssignedPages requestCountryPageLikesField () {
return this.requestCountryPageLikesField(true);
}
public APIRequestGetAssignedPages requestCountryPageLikesField (boolean value) {
this.requestField("country_page_likes", value);
return this;
}
public APIRequestGetAssignedPages requestCoverField () {
return this.requestCoverField(true);
}
public APIRequestGetAssignedPages requestCoverField (boolean value) {
this.requestField("cover", value);
return this;
}
public APIRequestGetAssignedPages requestCulinaryTeamField () {
return this.requestCulinaryTeamField(true);
}
public APIRequestGetAssignedPages requestCulinaryTeamField (boolean value) {
this.requestField("culinary_team", value);
return this;
}
public APIRequestGetAssignedPages requestCurrentLocationField () {
return this.requestCurrentLocationField(true);
}
public APIRequestGetAssignedPages requestCurrentLocationField (boolean value) {
this.requestField("current_location", value);
return this;
}
public APIRequestGetAssignedPages requestDeliveryAndPickupOptionInfoField () {
return this.requestDeliveryAndPickupOptionInfoField(true);
}
public APIRequestGetAssignedPages requestDeliveryAndPickupOptionInfoField (boolean value) {
this.requestField("delivery_and_pickup_option_info", value);
return this;
}
public APIRequestGetAssignedPages requestDescriptionField () {
return this.requestDescriptionField(true);
}
public APIRequestGetAssignedPages requestDescriptionField (boolean value) {
this.requestField("description", value);
return this;
}
public APIRequestGetAssignedPages requestDescriptionHtmlField () {
return this.requestDescriptionHtmlField(true);
}
public APIRequestGetAssignedPages requestDescriptionHtmlField (boolean value) {
this.requestField("description_html", value);
return this;
}
public APIRequestGetAssignedPages requestDifferentlyOpenOfferingsField () {
return this.requestDifferentlyOpenOfferingsField(true);
}
public APIRequestGetAssignedPages requestDifferentlyOpenOfferingsField (boolean value) {
this.requestField("differently_open_offerings", value);
return this;
}
public APIRequestGetAssignedPages requestDirectedByField () {
return this.requestDirectedByField(true);
}
public APIRequestGetAssignedPages requestDirectedByField (boolean value) {
this.requestField("directed_by", value);
return this;
}
public APIRequestGetAssignedPages requestDisplaySubtextField () {
return this.requestDisplaySubtextField(true);
}
public APIRequestGetAssignedPages requestDisplaySubtextField (boolean value) {
this.requestField("display_subtext", value);
return this;
}
public APIRequestGetAssignedPages requestDisplayedMessageResponseTimeField () {
return this.requestDisplayedMessageResponseTimeField(true);
}
public APIRequestGetAssignedPages requestDisplayedMessageResponseTimeField (boolean value) {
this.requestField("displayed_message_response_time", value);
return this;
}
public APIRequestGetAssignedPages requestDoesViewerHavePagePermissionLinkIgField () {
return this.requestDoesViewerHavePagePermissionLinkIgField(true);
}
public APIRequestGetAssignedPages requestDoesViewerHavePagePermissionLinkIgField (boolean value) {
this.requestField("does_viewer_have_page_permission_link_ig", value);
return this;
}
public APIRequestGetAssignedPages requestEmailsField () {
return this.requestEmailsField(true);
}
public APIRequestGetAssignedPages requestEmailsField (boolean value) {
this.requestField("emails", value);
return this;
}
public APIRequestGetAssignedPages requestEngagementField () {
return this.requestEngagementField(true);
}
public APIRequestGetAssignedPages requestEngagementField (boolean value) {
this.requestField("engagement", value);
return this;
}
public APIRequestGetAssignedPages requestFanCountField () {
return this.requestFanCountField(true);
}
public APIRequestGetAssignedPages requestFanCountField (boolean value) {
this.requestField("fan_count", value);
return this;
}
public APIRequestGetAssignedPages requestFeaturedVideoField () {
return this.requestFeaturedVideoField(true);
}
public APIRequestGetAssignedPages requestFeaturedVideoField (boolean value) {
this.requestField("featured_video", value);
return this;
}
public APIRequestGetAssignedPages requestFeaturesField () {
return this.requestFeaturesField(true);
}
public APIRequestGetAssignedPages requestFeaturesField (boolean value) {
this.requestField("features", value);
return this;
}
public APIRequestGetAssignedPages requestFollowersCountField () {
return this.requestFollowersCountField(true);
}
public APIRequestGetAssignedPages requestFollowersCountField (boolean value) {
this.requestField("followers_count", value);
return this;
}
public APIRequestGetAssignedPages requestFoodStylesField () {
return this.requestFoodStylesField(true);
}
public APIRequestGetAssignedPages requestFoodStylesField (boolean value) {
this.requestField("food_styles", value);
return this;
}
public APIRequestGetAssignedPages requestFoundedField () {
return this.requestFoundedField(true);
}
public APIRequestGetAssignedPages requestFoundedField (boolean value) {
this.requestField("founded", value);
return this;
}
public APIRequestGetAssignedPages requestGeneralInfoField () {
return this.requestGeneralInfoField(true);
}
public APIRequestGetAssignedPages requestGeneralInfoField (boolean value) {
this.requestField("general_info", value);
return this;
}
public APIRequestGetAssignedPages requestGeneralManagerField () {
return this.requestGeneralManagerField(true);
}
public APIRequestGetAssignedPages requestGeneralManagerField (boolean value) {
this.requestField("general_manager", value);
return this;
}
public APIRequestGetAssignedPages requestGenreField () {
return this.requestGenreField(true);
}
public APIRequestGetAssignedPages requestGenreField (boolean value) {
this.requestField("genre", value);
return this;
}
public APIRequestGetAssignedPages requestGlobalBrandPageNameField () {
return this.requestGlobalBrandPageNameField(true);
}
public APIRequestGetAssignedPages requestGlobalBrandPageNameField (boolean value) {
this.requestField("global_brand_page_name", value);
return this;
}
public APIRequestGetAssignedPages requestGlobalBrandRootIdField () {
return this.requestGlobalBrandRootIdField(true);
}
public APIRequestGetAssignedPages requestGlobalBrandRootIdField (boolean value) {
this.requestField("global_brand_root_id", value);
return this;
}
public APIRequestGetAssignedPages requestHasAddedAppField () {
return this.requestHasAddedAppField(true);
}
public APIRequestGetAssignedPages requestHasAddedAppField (boolean value) {
this.requestField("has_added_app", value);
return this;
}
public APIRequestGetAssignedPages requestHasLeadAccessField () {
return this.requestHasLeadAccessField(true);
}
public APIRequestGetAssignedPages requestHasLeadAccessField (boolean value) {
this.requestField("has_lead_access", value);
return this;
}
public APIRequestGetAssignedPages requestHasTransitionedToNewPageExperienceField () {
return this.requestHasTransitionedToNewPageExperienceField(true);
}
public APIRequestGetAssignedPages requestHasTransitionedToNewPageExperienceField (boolean value) {
this.requestField("has_transitioned_to_new_page_experience", value);
return this;
}
public APIRequestGetAssignedPages requestHasWhatsappBusinessNumberField () {
return this.requestHasWhatsappBusinessNumberField(true);
}
public APIRequestGetAssignedPages requestHasWhatsappBusinessNumberField (boolean value) {
this.requestField("has_whatsapp_business_number", value);
return this;
}
public APIRequestGetAssignedPages requestHasWhatsappEnterpriseNumberUsingCloudApiField () {
return this.requestHasWhatsappEnterpriseNumberUsingCloudApiField(true);
}
public APIRequestGetAssignedPages requestHasWhatsappEnterpriseNumberUsingCloudApiField (boolean value) {
this.requestField("has_whatsapp_enterprise_number_using_cloud_api", value);
return this;
}
public APIRequestGetAssignedPages requestHasWhatsappNumberField () {
return this.requestHasWhatsappNumberField(true);
}
public APIRequestGetAssignedPages requestHasWhatsappNumberField (boolean value) {
this.requestField("has_whatsapp_number", value);
return this;
}
public APIRequestGetAssignedPages requestHometownField () {
return this.requestHometownField(true);
}
public APIRequestGetAssignedPages requestHometownField (boolean value) {
this.requestField("hometown", value);
return this;
}
public APIRequestGetAssignedPages requestHoursField () {
return this.requestHoursField(true);
}
public APIRequestGetAssignedPages requestHoursField (boolean value) {
this.requestField("hours", value);
return this;
}
public APIRequestGetAssignedPages requestIdField () {
return this.requestIdField(true);
}
public APIRequestGetAssignedPages requestIdField (boolean value) {
this.requestField("id", value);
return this;
}
public APIRequestGetAssignedPages requestImpressumField () {
return this.requestImpressumField(true);
}
public APIRequestGetAssignedPages requestImpressumField (boolean value) {
this.requestField("impressum", value);
return this;
}
public APIRequestGetAssignedPages requestInfluencesField () {
return this.requestInfluencesField(true);
}
public APIRequestGetAssignedPages requestInfluencesField (boolean value) {
this.requestField("influences", value);
return this;
}
public APIRequestGetAssignedPages requestInstagramBusinessAccountField () {
return this.requestInstagramBusinessAccountField(true);
}
public APIRequestGetAssignedPages requestInstagramBusinessAccountField (boolean value) {
this.requestField("instagram_business_account", value);
return this;
}
public APIRequestGetAssignedPages requestIsAlwaysOpenField () {
return this.requestIsAlwaysOpenField(true);
}
public APIRequestGetAssignedPages requestIsAlwaysOpenField (boolean value) {
this.requestField("is_always_open", value);
return this;
}
public APIRequestGetAssignedPages requestIsChainField () {
return this.requestIsChainField(true);
}
public APIRequestGetAssignedPages requestIsChainField (boolean value) {
this.requestField("is_chain", value);
return this;
}
public APIRequestGetAssignedPages requestIsCommunityPageField () {
return this.requestIsCommunityPageField(true);
}
public APIRequestGetAssignedPages requestIsCommunityPageField (boolean value) {
this.requestField("is_community_page", value);
return this;
}
public APIRequestGetAssignedPages requestIsEligibleForBrandedContentField () {
return this.requestIsEligibleForBrandedContentField(true);
}
public APIRequestGetAssignedPages requestIsEligibleForBrandedContentField (boolean value) {
this.requestField("is_eligible_for_branded_content", value);
return this;
}
public APIRequestGetAssignedPages requestIsEligibleForDisableConnectIgBtnForNonPageAdminAmWebField () {
return this.requestIsEligibleForDisableConnectIgBtnForNonPageAdminAmWebField(true);
}
public APIRequestGetAssignedPages requestIsEligibleForDisableConnectIgBtnForNonPageAdminAmWebField (boolean value) {
this.requestField("is_eligible_for_disable_connect_ig_btn_for_non_page_admin_am_web", value);
return this;
}
public APIRequestGetAssignedPages requestIsMessengerBotGetStartedEnabledField () {
return this.requestIsMessengerBotGetStartedEnabledField(true);
}
public APIRequestGetAssignedPages requestIsMessengerBotGetStartedEnabledField (boolean value) {
this.requestField("is_messenger_bot_get_started_enabled", value);
return this;
}
public APIRequestGetAssignedPages requestIsMessengerPlatformBotField () {
return this.requestIsMessengerPlatformBotField(true);
}
public APIRequestGetAssignedPages requestIsMessengerPlatformBotField (boolean value) {
this.requestField("is_messenger_platform_bot", value);
return this;
}
public APIRequestGetAssignedPages requestIsOwnedField () {
return this.requestIsOwnedField(true);
}
public APIRequestGetAssignedPages requestIsOwnedField (boolean value) {
this.requestField("is_owned", value);
return this;
}
public APIRequestGetAssignedPages requestIsPermanentlyClosedField () {
return this.requestIsPermanentlyClosedField(true);
}
public APIRequestGetAssignedPages requestIsPermanentlyClosedField (boolean value) {
this.requestField("is_permanently_closed", value);
return this;
}
public APIRequestGetAssignedPages requestIsPublishedField () {
return this.requestIsPublishedField(true);
}
public APIRequestGetAssignedPages requestIsPublishedField (boolean value) {
this.requestField("is_published", value);
return this;
}
public APIRequestGetAssignedPages requestIsUnclaimedField () {
return this.requestIsUnclaimedField(true);
}
public APIRequestGetAssignedPages requestIsUnclaimedField (boolean value) {
this.requestField("is_unclaimed", value);
return this;
}
public APIRequestGetAssignedPages requestIsVerifiedField () {
return this.requestIsVerifiedField(true);
}
public APIRequestGetAssignedPages requestIsVerifiedField (boolean value) {
this.requestField("is_verified", value);
return this;
}
public APIRequestGetAssignedPages requestIsWebhooksSubscribedField () {
return this.requestIsWebhooksSubscribedField(true);
}
public APIRequestGetAssignedPages requestIsWebhooksSubscribedField (boolean value) {
this.requestField("is_webhooks_subscribed", value);
return this;
}
public APIRequestGetAssignedPages requestKeywordsField () {
return this.requestKeywordsField(true);
}
public APIRequestGetAssignedPages requestKeywordsField (boolean value) {
this.requestField("keywords", value);
return this;
}
public APIRequestGetAssignedPages requestLeadgenTosAcceptanceTimeField () {
return this.requestLeadgenTosAcceptanceTimeField(true);
}
public APIRequestGetAssignedPages requestLeadgenTosAcceptanceTimeField (boolean value) {
this.requestField("leadgen_tos_acceptance_time", value);
return this;
}
public APIRequestGetAssignedPages requestLeadgenTosAcceptedField () {
return this.requestLeadgenTosAcceptedField(true);
}
public APIRequestGetAssignedPages requestLeadgenTosAcceptedField (boolean value) {
this.requestField("leadgen_tos_accepted", value);
return this;
}
public APIRequestGetAssignedPages requestLeadgenTosAcceptingUserField () {
return this.requestLeadgenTosAcceptingUserField(true);
}
public APIRequestGetAssignedPages requestLeadgenTosAcceptingUserField (boolean value) {
this.requestField("leadgen_tos_accepting_user", value);
return this;
}
public APIRequestGetAssignedPages requestLinkField () {
return this.requestLinkField(true);
}
public APIRequestGetAssignedPages requestLinkField (boolean value) {
this.requestField("link", value);
return this;
}
public APIRequestGetAssignedPages requestLocationField () {
return this.requestLocationField(true);
}
public APIRequestGetAssignedPages requestLocationField (boolean value) {
this.requestField("location", value);
return this;
}
public APIRequestGetAssignedPages requestMembersField () {
return this.requestMembersField(true);
}
public APIRequestGetAssignedPages requestMembersField (boolean value) {
this.requestField("members", value);
return this;
}
public APIRequestGetAssignedPages requestMerchantIdField () {
return this.requestMerchantIdField(true);
}
public APIRequestGetAssignedPages requestMerchantIdField (boolean value) {
this.requestField("merchant_id", value);
return this;
}
public APIRequestGetAssignedPages requestMerchantReviewStatusField () {
return this.requestMerchantReviewStatusField(true);
}
public APIRequestGetAssignedPages requestMerchantReviewStatusField (boolean value) {
this.requestField("merchant_review_status", value);
return this;
}
public APIRequestGetAssignedPages requestMessagingFeatureStatusField () {
return this.requestMessagingFeatureStatusField(true);
}
public APIRequestGetAssignedPages requestMessagingFeatureStatusField (boolean value) {
this.requestField("messaging_feature_status", value);
return this;
}
public APIRequestGetAssignedPages requestMessengerAdsDefaultIcebreakersField () {
return this.requestMessengerAdsDefaultIcebreakersField(true);
}
public APIRequestGetAssignedPages requestMessengerAdsDefaultIcebreakersField (boolean value) {
this.requestField("messenger_ads_default_icebreakers", value);
return this;
}
public APIRequestGetAssignedPages requestMessengerAdsDefaultQuickRepliesField () {
return this.requestMessengerAdsDefaultQuickRepliesField(true);
}
public APIRequestGetAssignedPages requestMessengerAdsDefaultQuickRepliesField (boolean value) {
this.requestField("messenger_ads_default_quick_replies", value);
return this;
}
public APIRequestGetAssignedPages requestMessengerAdsQuickRepliesTypeField () {
return this.requestMessengerAdsQuickRepliesTypeField(true);
}
public APIRequestGetAssignedPages requestMessengerAdsQuickRepliesTypeField (boolean value) {
this.requestField("messenger_ads_quick_replies_type", value);
return this;
}
public APIRequestGetAssignedPages requestMiniShopStorefrontField () {
return this.requestMiniShopStorefrontField(true);
}
public APIRequestGetAssignedPages requestMiniShopStorefrontField (boolean value) {
this.requestField("mini_shop_storefront", value);
return this;
}
public APIRequestGetAssignedPages requestMissionField () {
return this.requestMissionField(true);
}
public APIRequestGetAssignedPages requestMissionField (boolean value) {
this.requestField("mission", value);
return this;
}
public APIRequestGetAssignedPages requestMpgField () {
return this.requestMpgField(true);
}
public APIRequestGetAssignedPages requestMpgField (boolean value) {
this.requestField("mpg", value);
return this;
}
public APIRequestGetAssignedPages requestNameField () {
return this.requestNameField(true);
}
public APIRequestGetAssignedPages requestNameField (boolean value) {
this.requestField("name", value);
return this;
}
public APIRequestGetAssignedPages requestNameWithLocationDescriptorField () {
return this.requestNameWithLocationDescriptorField(true);
}
public APIRequestGetAssignedPages requestNameWithLocationDescriptorField (boolean value) {
this.requestField("name_with_location_descriptor", value);
return this;
}
public APIRequestGetAssignedPages requestNetworkField () {
return this.requestNetworkField(true);
}
public APIRequestGetAssignedPages requestNetworkField (boolean value) {
this.requestField("network", value);
return this;
}
public APIRequestGetAssignedPages requestNewLikeCountField () {
return this.requestNewLikeCountField(true);
}
public APIRequestGetAssignedPages requestNewLikeCountField (boolean value) {
this.requestField("new_like_count", value);
return this;
}
public APIRequestGetAssignedPages requestOfferEligibleField () {
return this.requestOfferEligibleField(true);
}
public APIRequestGetAssignedPages requestOfferEligibleField (boolean value) {
this.requestField("offer_eligible", value);
return this;
}
public APIRequestGetAssignedPages requestOverallStarRatingField () {
return this.requestOverallStarRatingField(true);
}
public APIRequestGetAssignedPages requestOverallStarRatingField (boolean value) {
this.requestField("overall_star_rating", value);
return this;
}
public APIRequestGetAssignedPages requestOwnerBusinessField () {
return this.requestOwnerBusinessField(true);
}
public APIRequestGetAssignedPages requestOwnerBusinessField (boolean value) {
this.requestField("owner_business", value);
return this;
}
public APIRequestGetAssignedPages requestPageAboutStoryField () {
return this.requestPageAboutStoryField(true);
}
public APIRequestGetAssignedPages requestPageAboutStoryField (boolean value) {
this.requestField("page_about_story", value);
return this;
}
public APIRequestGetAssignedPages requestPageTokenField () {
return this.requestPageTokenField(true);
}
public APIRequestGetAssignedPages requestPageTokenField (boolean value) {
this.requestField("page_token", value);
return this;
}
public APIRequestGetAssignedPages requestParentPageField () {
return this.requestParentPageField(true);
}
public APIRequestGetAssignedPages requestParentPageField (boolean value) {
this.requestField("parent_page", value);
return this;
}
public APIRequestGetAssignedPages requestParkingField () {
return this.requestParkingField(true);
}
public APIRequestGetAssignedPages requestParkingField (boolean value) {
this.requestField("parking", value);
return this;
}
public APIRequestGetAssignedPages requestPaymentOptionsField () {
return this.requestPaymentOptionsField(true);
}
public APIRequestGetAssignedPages requestPaymentOptionsField (boolean value) {
this.requestField("payment_options", value);
return this;
}
public APIRequestGetAssignedPages requestPersonalInfoField () {
return this.requestPersonalInfoField(true);
}
public APIRequestGetAssignedPages requestPersonalInfoField (boolean value) {
this.requestField("personal_info", value);
return this;
}
public APIRequestGetAssignedPages requestPersonalInterestsField () {
return this.requestPersonalInterestsField(true);
}
public APIRequestGetAssignedPages requestPersonalInterestsField (boolean value) {
this.requestField("personal_interests", value);
return this;
}
public APIRequestGetAssignedPages requestPharmaSafetyInfoField () {
return this.requestPharmaSafetyInfoField(true);
}
public APIRequestGetAssignedPages requestPharmaSafetyInfoField (boolean value) {
this.requestField("pharma_safety_info", value);
return this;
}
public APIRequestGetAssignedPages requestPhoneField () {
return this.requestPhoneField(true);
}
public APIRequestGetAssignedPages requestPhoneField (boolean value) {
this.requestField("phone", value);
return this;
}
public APIRequestGetAssignedPages requestPickupOptionsField () {
return this.requestPickupOptionsField(true);
}
public APIRequestGetAssignedPages requestPickupOptionsField (boolean value) {
this.requestField("pickup_options", value);
return this;
}
public APIRequestGetAssignedPages requestPlaceTypeField () {
return this.requestPlaceTypeField(true);
}
public APIRequestGetAssignedPages requestPlaceTypeField (boolean value) {
this.requestField("place_type", value);
return this;
}
public APIRequestGetAssignedPages requestPlotOutlineField () {
return this.requestPlotOutlineField(true);
}
public APIRequestGetAssignedPages requestPlotOutlineField (boolean value) {
this.requestField("plot_outline", value);
return this;
}
public APIRequestGetAssignedPages requestPreferredAudienceField () {
return this.requestPreferredAudienceField(true);
}
public APIRequestGetAssignedPages requestPreferredAudienceField (boolean value) {
this.requestField("preferred_audience", value);
return this;
}
public APIRequestGetAssignedPages requestPressContactField () {
return this.requestPressContactField(true);
}
public APIRequestGetAssignedPages requestPressContactField (boolean value) {
this.requestField("press_contact", value);
return this;
}
public APIRequestGetAssignedPages requestPriceRangeField () {
return this.requestPriceRangeField(true);
}
public APIRequestGetAssignedPages requestPriceRangeField (boolean value) {
this.requestField("price_range", value);
return this;
}
public APIRequestGetAssignedPages requestPrivacyInfoUrlField () {
return this.requestPrivacyInfoUrlField(true);
}
public APIRequestGetAssignedPages requestPrivacyInfoUrlField (boolean value) {
this.requestField("privacy_info_url", value);
return this;
}
public APIRequestGetAssignedPages requestProducedByField () {
return this.requestProducedByField(true);
}
public APIRequestGetAssignedPages requestProducedByField (boolean value) {
this.requestField("produced_by", value);
return this;
}
public APIRequestGetAssignedPages requestProductsField () {
return this.requestProductsField(true);
}
public APIRequestGetAssignedPages requestProductsField (boolean value) {
this.requestField("products", value);
return this;
}
public APIRequestGetAssignedPages requestPromotionEligibleField () {
return this.requestPromotionEligibleField(true);
}
public APIRequestGetAssignedPages requestPromotionEligibleField (boolean value) {
this.requestField("promotion_eligible", value);
return this;
}
public APIRequestGetAssignedPages requestPromotionIneligibleReasonField () {
return this.requestPromotionIneligibleReasonField(true);
}
public APIRequestGetAssignedPages requestPromotionIneligibleReasonField (boolean value) {
this.requestField("promotion_ineligible_reason", value);
return this;
}
public APIRequestGetAssignedPages requestPublicTransitField () {
return this.requestPublicTransitField(true);
}
public APIRequestGetAssignedPages requestPublicTransitField (boolean value) {
this.requestField("public_transit", value);
return this;
}
public APIRequestGetAssignedPages requestRatingCountField () {
return this.requestRatingCountField(true);
}
public APIRequestGetAssignedPages requestRatingCountField (boolean value) {
this.requestField("rating_count", value);
return this;
}
public APIRequestGetAssignedPages requestRecipientField () {
return this.requestRecipientField(true);
}
public APIRequestGetAssignedPages requestRecipientField (boolean value) {
this.requestField("recipient", value);
return this;
}
public APIRequestGetAssignedPages requestRecordLabelField () {
return this.requestRecordLabelField(true);
}
public APIRequestGetAssignedPages requestRecordLabelField (boolean value) {
this.requestField("record_label", value);
return this;
}
public APIRequestGetAssignedPages requestReleaseDateField () {
return this.requestReleaseDateField(true);
}
public APIRequestGetAssignedPages requestReleaseDateField (boolean value) {
this.requestField("release_date", value);
return this;
}
public APIRequestGetAssignedPages requestRestaurantServicesField () {
return this.requestRestaurantServicesField(true);
}
public APIRequestGetAssignedPages requestRestaurantServicesField (boolean value) {
this.requestField("restaurant_services", value);
return this;
}
public APIRequestGetAssignedPages requestRestaurantSpecialtiesField () {
return this.requestRestaurantSpecialtiesField(true);
}
public APIRequestGetAssignedPages requestRestaurantSpecialtiesField (boolean value) {
this.requestField("restaurant_specialties", value);
return this;
}
public APIRequestGetAssignedPages requestScheduleField () {
return this.requestScheduleField(true);
}
public APIRequestGetAssignedPages requestScheduleField (boolean value) {
this.requestField("schedule", value);
return this;
}
public APIRequestGetAssignedPages requestScreenplayByField () {
return this.requestScreenplayByField(true);
}
public APIRequestGetAssignedPages requestScreenplayByField (boolean value) {
this.requestField("screenplay_by", value);
return this;
}
public APIRequestGetAssignedPages requestSeasonField () {
return this.requestSeasonField(true);
}
public APIRequestGetAssignedPages requestSeasonField (boolean value) {
this.requestField("season", value);
return this;
}
public APIRequestGetAssignedPages requestSingleLineAddressField () {
return this.requestSingleLineAddressField(true);
}
public APIRequestGetAssignedPages requestSingleLineAddressField (boolean value) {
this.requestField("single_line_address", value);
return this;
}
public APIRequestGetAssignedPages requestStarringField () {
return this.requestStarringField(true);
}
public APIRequestGetAssignedPages requestStarringField (boolean value) {
this.requestField("starring", value);
return this;
}
public APIRequestGetAssignedPages requestStartInfoField () {
return this.requestStartInfoField(true);
}
public APIRequestGetAssignedPages requestStartInfoField (boolean value) {
this.requestField("start_info", value);
return this;
}
public APIRequestGetAssignedPages requestStoreCodeField () {
return this.requestStoreCodeField(true);
}
public APIRequestGetAssignedPages requestStoreCodeField (boolean value) {
this.requestField("store_code", value);
return this;
}
public APIRequestGetAssignedPages requestStoreLocationDescriptorField () {
return this.requestStoreLocationDescriptorField(true);
}
public APIRequestGetAssignedPages requestStoreLocationDescriptorField (boolean value) {
this.requestField("store_location_descriptor", value);
return this;
}
public APIRequestGetAssignedPages requestStoreNumberField () {
return this.requestStoreNumberField(true);
}
public APIRequestGetAssignedPages requestStoreNumberField (boolean value) {
this.requestField("store_number", value);
return this;
}
public APIRequestGetAssignedPages requestStudioField () {
return this.requestStudioField(true);
}
public APIRequestGetAssignedPages requestStudioField (boolean value) {
this.requestField("studio", value);
return this;
}
public APIRequestGetAssignedPages requestSupportsDonateButtonInLiveVideoField () {
return this.requestSupportsDonateButtonInLiveVideoField(true);
}
public APIRequestGetAssignedPages requestSupportsDonateButtonInLiveVideoField (boolean value) {
this.requestField("supports_donate_button_in_live_video", value);
return this;
}
public APIRequestGetAssignedPages requestTalkingAboutCountField () {
return this.requestTalkingAboutCountField(true);
}
public APIRequestGetAssignedPages requestTalkingAboutCountField (boolean value) {
this.requestField("talking_about_count", value);
return this;
}
public APIRequestGetAssignedPages requestTemporaryStatusField () {
return this.requestTemporaryStatusField(true);
}
public APIRequestGetAssignedPages requestTemporaryStatusField (boolean value) {
this.requestField("temporary_status", value);
return this;
}
public APIRequestGetAssignedPages requestUnreadMessageCountField () {
return this.requestUnreadMessageCountField(true);
}
public APIRequestGetAssignedPages requestUnreadMessageCountField (boolean value) {
this.requestField("unread_message_count", value);
return this;
}
public APIRequestGetAssignedPages requestUnreadNotifCountField () {
return this.requestUnreadNotifCountField(true);
}
public APIRequestGetAssignedPages requestUnreadNotifCountField (boolean value) {
this.requestField("unread_notif_count", value);
return this;
}
public APIRequestGetAssignedPages requestUnseenMessageCountField () {
return this.requestUnseenMessageCountField(true);
}
public APIRequestGetAssignedPages requestUnseenMessageCountField (boolean value) {
this.requestField("unseen_message_count", value);
return this;
}
public APIRequestGetAssignedPages requestUserAccessExpireTimeField () {
return this.requestUserAccessExpireTimeField(true);
}
public APIRequestGetAssignedPages requestUserAccessExpireTimeField (boolean value) {
this.requestField("user_access_expire_time", value);
return this;
}
public APIRequestGetAssignedPages requestUsernameField () {
return this.requestUsernameField(true);
}
public APIRequestGetAssignedPages requestUsernameField (boolean value) {
this.requestField("username", value);
return this;
}
public APIRequestGetAssignedPages requestVerificationStatusField () {
return this.requestVerificationStatusField(true);
}
public APIRequestGetAssignedPages requestVerificationStatusField (boolean value) {
this.requestField("verification_status", value);
return this;
}
public APIRequestGetAssignedPages requestVoipInfoField () {
return this.requestVoipInfoField(true);
}
public APIRequestGetAssignedPages requestVoipInfoField (boolean value) {
this.requestField("voip_info", value);
return this;
}
public APIRequestGetAssignedPages requestWebsiteField () {
return this.requestWebsiteField(true);
}
public APIRequestGetAssignedPages requestWebsiteField (boolean value) {
this.requestField("website", value);
return this;
}
public APIRequestGetAssignedPages requestWereHereCountField () {
return this.requestWereHereCountField(true);
}
public APIRequestGetAssignedPages requestWereHereCountField (boolean value) {
this.requestField("were_here_count", value);
return this;
}
public APIRequestGetAssignedPages requestWhatsappNumberField () {
return this.requestWhatsappNumberField(true);
}
public APIRequestGetAssignedPages requestWhatsappNumberField (boolean value) {
this.requestField("whatsapp_number", value);
return this;
}
public APIRequestGetAssignedPages requestWrittenByField () {
return this.requestWrittenByField(true);
}
public APIRequestGetAssignedPages requestWrittenByField (boolean value) {
this.requestField("written_by", value);
return this;
}
}
public static class APIRequestGetAssignedProductCatalogs extends APIRequest {
APINodeList lastResponse = null;
@Override
public APINodeList