com.facebook.ads.sdk.Event Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of facebook-java-business-sdk Show documentation
Show all versions of facebook-java-business-sdk Show documentation
Facebook Business Solutions SDK for Java
/**
* Copyright (c) 2015-present, Facebook, Inc. All rights reserved.
*
* You are hereby granted a non-exclusive, worldwide, royalty-free license to
* use, copy, modify, and distribute this software in source code or binary
* form for use in connection with the web services and APIs provided by
* Facebook.
*
* As with any software that integrates with the Facebook platform, your use
* of this software is subject to the Facebook Developer Principles and
* Policies [http://developers.facebook.com/policy/]. This copyright notice
* shall be included in all copies or substantial portions of the software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
* DEALINGS IN THE SOFTWARE.
*
*/
package com.facebook.ads.sdk;
import java.io.File;
import java.lang.reflect.Modifier;
import java.lang.reflect.Type;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import com.google.common.base.Function;
import com.google.common.util.concurrent.Futures;
import com.google.common.util.concurrent.ListenableFuture;
import com.google.common.util.concurrent.SettableFuture;
import com.google.gson.JsonObject;
import com.google.gson.JsonArray;
import com.google.gson.annotations.SerializedName;
import com.google.gson.reflect.TypeToken;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.google.gson.JsonElement;
import com.google.gson.JsonParser;
import com.facebook.ads.sdk.APIException.MalformedResponseException;
/**
* This class is auto-generated.
*
* For any issues or feature requests related to this class, please let us know
* on github and we'll fix in our codegen framework. We'll not be able to accept
* pull request for this class.
*
*/
public class Event extends APINode {
@SerializedName("attending_count")
private Long mAttendingCount = null;
@SerializedName("can_guests_invite")
private Boolean mCanGuestsInvite = null;
@SerializedName("category")
private String mCategory = null;
@SerializedName("cover")
private CoverPhoto mCover = null;
@SerializedName("declined_count")
private Long mDeclinedCount = null;
@SerializedName("description")
private String mDescription = null;
@SerializedName("discount_code_enabled")
private Boolean mDiscountCodeEnabled = null;
@SerializedName("end_time")
private String mEndTime = null;
@SerializedName("event_times")
private List mEventTimes = null;
@SerializedName("guest_list_enabled")
private Boolean mGuestListEnabled = null;
@SerializedName("id")
private String mId = null;
@SerializedName("interested_count")
private Long mInterestedCount = null;
@SerializedName("is_canceled")
private Boolean mIsCanceled = null;
@SerializedName("is_draft")
private Boolean mIsDraft = null;
@SerializedName("is_page_owned")
private Boolean mIsPageOwned = null;
@SerializedName("maybe_count")
private Long mMaybeCount = null;
@SerializedName("name")
private String mName = null;
@SerializedName("noreply_count")
private Long mNoreplyCount = null;
@SerializedName("owner")
private Object mOwner = null;
@SerializedName("parent_group")
private Group mParentGroup = null;
@SerializedName("place")
private Place mPlace = null;
@SerializedName("scheduled_publish_time")
private String mScheduledPublishTime = null;
@SerializedName("start_time")
private String mStartTime = null;
@SerializedName("ticket_uri")
private String mTicketUri = null;
@SerializedName("ticket_uri_start_sales_time")
private String mTicketUriStartSalesTime = null;
@SerializedName("ticketing_privacy_uri")
private String mTicketingPrivacyUri = null;
@SerializedName("ticketing_terms_uri")
private String mTicketingTermsUri = null;
@SerializedName("timezone")
private String mTimezone = null;
@SerializedName("type")
private EnumType mType = null;
@SerializedName("updated_time")
private String mUpdatedTime = null;
protected static Gson gson = null;
Event() {
}
public Event(Long id, APIContext context) {
this(id.toString(), context);
}
public Event(String id, APIContext context) {
this.mId = id;
this.context = context;
}
public Event fetch() throws APIException{
Event newInstance = fetchById(this.getPrefixedId().toString(), this.context);
this.copyFrom(newInstance);
return this;
}
public static Event 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 Event 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", Event.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", Event.getParser())
.setParam("ids", APIRequest.joinStringList(ids))
.requestFields(fields)
.executeAsyncBase();
}
private String getPrefixedId() {
return getId();
}
public String getId() {
return getFieldId().toString();
}
public static Event loadJSON(String json, APIContext context, String header) {
Event event = getGson().fromJson(json, Event.class);
if (context.isDebug()) {
JsonParser parser = new JsonParser();
JsonElement o1 = parser.parse(json);
JsonElement o2 = parser.parse(event.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);
};
}
event.context = context;
event.rawValue = json;
event.header = header;
return event;
}
public static APINodeList parseResponse(String json, APIContext context, APIRequest request, String header) throws MalformedResponseException {
APINodeList events = 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++) {
events.add(loadJSON(arr.get(i).getAsJsonObject().toString(), context, header));
};
return events;
} 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;
events.setCursors(before, after);
}
String previous = paging.has("previous") ? paging.get("previous").getAsString() : null;
String next = paging.has("next") ? paging.get("next").getAsString() : null;
events.setPaging(previous, next);
if (context.hasAppSecret()) {
events.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++) {
events.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()) {
events.add(loadJSON(entry.getValue().toString(), context, header));
}
break;
}
}
if (!isRedownload) {
events.add(loadJSON(obj.toString(), context, header));
}
}
return events;
} 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()) {
events.add(loadJSON(entry.getValue().toString(), context, header));
}
return events;
} 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)
) {
events.add(loadJSON(value.toString(), context, header));
} else {
isIdIndexedArray = false;
break;
}
}
if (isIdIndexedArray) {
return events;
}
// Sixth, check if it's pure JsonObject
events.clear();
events.add(loadJSON(json, context, header));
return events;
}
}
} 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 APIRequestGetAdmins getAdmins() {
return new APIRequestGetAdmins(this.getPrefixedId().toString(), context);
}
public APIRequestGetAttending getAttending() {
return new APIRequestGetAttending(this.getPrefixedId().toString(), context);
}
public APIRequestCreateAttending createAttending() {
return new APIRequestCreateAttending(this.getPrefixedId().toString(), context);
}
public APIRequestGetComments getComments() {
return new APIRequestGetComments(this.getPrefixedId().toString(), context);
}
public APIRequestCreateComment createComment() {
return new APIRequestCreateComment(this.getPrefixedId().toString(), context);
}
public APIRequestGetDeclined getDeclined() {
return new APIRequestGetDeclined(this.getPrefixedId().toString(), context);
}
public APIRequestCreateDeclined createDeclined() {
return new APIRequestCreateDeclined(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 APIRequestGetInterested getInterested() {
return new APIRequestGetInterested(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 APIRequestGetMaybe getMaybe() {
return new APIRequestGetMaybe(this.getPrefixedId().toString(), context);
}
public APIRequestCreateMaybe createMaybe() {
return new APIRequestCreateMaybe(this.getPrefixedId().toString(), context);
}
public APIRequestGetNoreply getNoreply() {
return new APIRequestGetNoreply(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 APIRequestGetRoles getRoles() {
return new APIRequestGetRoles(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 Long getFieldAttendingCount() {
return mAttendingCount;
}
public Boolean getFieldCanGuestsInvite() {
return mCanGuestsInvite;
}
public String getFieldCategory() {
return mCategory;
}
public CoverPhoto getFieldCover() {
return mCover;
}
public Long getFieldDeclinedCount() {
return mDeclinedCount;
}
public String getFieldDescription() {
return mDescription;
}
public Boolean getFieldDiscountCodeEnabled() {
return mDiscountCodeEnabled;
}
public String getFieldEndTime() {
return mEndTime;
}
public List getFieldEventTimes() {
return mEventTimes;
}
public Boolean getFieldGuestListEnabled() {
return mGuestListEnabled;
}
public String getFieldId() {
return mId;
}
public Long getFieldInterestedCount() {
return mInterestedCount;
}
public Boolean getFieldIsCanceled() {
return mIsCanceled;
}
public Boolean getFieldIsDraft() {
return mIsDraft;
}
public Boolean getFieldIsPageOwned() {
return mIsPageOwned;
}
public Long getFieldMaybeCount() {
return mMaybeCount;
}
public String getFieldName() {
return mName;
}
public Long getFieldNoreplyCount() {
return mNoreplyCount;
}
public Object getFieldOwner() {
return mOwner;
}
public Group getFieldParentGroup() {
if (mParentGroup != null) {
mParentGroup.context = getContext();
}
return mParentGroup;
}
public Place getFieldPlace() {
if (mPlace != null) {
mPlace.context = getContext();
}
return mPlace;
}
public String getFieldScheduledPublishTime() {
return mScheduledPublishTime;
}
public String getFieldStartTime() {
return mStartTime;
}
public String getFieldTicketUri() {
return mTicketUri;
}
public String getFieldTicketUriStartSalesTime() {
return mTicketUriStartSalesTime;
}
public String getFieldTicketingPrivacyUri() {
return mTicketingPrivacyUri;
}
public String getFieldTicketingTermsUri() {
return mTicketingTermsUri;
}
public String getFieldTimezone() {
return mTimezone;
}
public EnumType getFieldType() {
return mType;
}
public String getFieldUpdatedTime() {
return mUpdatedTime;
}
public static class APIRequestGetAdmins extends APIRequest {
APINodeList lastResponse = null;
@Override
public APINodeList getLastResponse() {
return lastResponse;
}
public static final String[] PARAMS = {
};
public static final String[] FIELDS = {
"can_post",
"id",
"link",
"name",
"pic",
"pic_crop",
"pic_large",
"pic_small",
"pic_square",
"profile_type",
"username",
};
@Override
public APINodeList parseResponse(String response, String header) throws APIException {
return Profile.parseResponse(response, getContext(), this, header);
}
@Override
public APINodeList execute() throws APIException {
return execute(new HashMap());
}
@Override
public APINodeList execute(Map extraParams) throws APIException {
ResponseWrapper rw = executeInternal(extraParams);
lastResponse = parseResponse(rw.getBody(),rw.getHeader());
return lastResponse;
}
public ListenableFuture> executeAsync() throws APIException {
return executeAsync(new HashMap());
};
public ListenableFuture> executeAsync(Map extraParams) throws APIException {
return Futures.transform(
executeAsyncInternal(extraParams),
new Function>() {
public APINodeList apply(ResponseWrapper result) {
try {
return APIRequestGetAdmins.this.parseResponse(result.getBody(), result.getHeader());
} catch (Exception e) {
throw new RuntimeException(e);
}
}
}
);
};
public APIRequestGetAdmins(String nodeId, APIContext context) {
super(context, nodeId, "/admins", "GET", Arrays.asList(PARAMS));
}
@Override
public APIRequestGetAdmins setParam(String param, Object value) {
setParamInternal(param, value);
return this;
}
@Override
public APIRequestGetAdmins setParams(Map params) {
setParamsInternal(params);
return this;
}
public APIRequestGetAdmins requestAllFields () {
return this.requestAllFields(true);
}
public APIRequestGetAdmins requestAllFields (boolean value) {
for (String field : FIELDS) {
this.requestField(field, value);
}
return this;
}
@Override
public APIRequestGetAdmins requestFields (List fields) {
return this.requestFields(fields, true);
}
@Override
public APIRequestGetAdmins requestFields (List fields, boolean value) {
for (String field : fields) {
this.requestField(field, value);
}
return this;
}
@Override
public APIRequestGetAdmins requestField (String field) {
this.requestField(field, true);
return this;
}
@Override
public APIRequestGetAdmins requestField (String field, boolean value) {
this.requestFieldInternal(field, value);
return this;
}
public APIRequestGetAdmins requestCanPostField () {
return this.requestCanPostField(true);
}
public APIRequestGetAdmins requestCanPostField (boolean value) {
this.requestField("can_post", value);
return this;
}
public APIRequestGetAdmins requestIdField () {
return this.requestIdField(true);
}
public APIRequestGetAdmins requestIdField (boolean value) {
this.requestField("id", value);
return this;
}
public APIRequestGetAdmins requestLinkField () {
return this.requestLinkField(true);
}
public APIRequestGetAdmins requestLinkField (boolean value) {
this.requestField("link", value);
return this;
}
public APIRequestGetAdmins requestNameField () {
return this.requestNameField(true);
}
public APIRequestGetAdmins requestNameField (boolean value) {
this.requestField("name", value);
return this;
}
public APIRequestGetAdmins requestPicField () {
return this.requestPicField(true);
}
public APIRequestGetAdmins requestPicField (boolean value) {
this.requestField("pic", value);
return this;
}
public APIRequestGetAdmins requestPicCropField () {
return this.requestPicCropField(true);
}
public APIRequestGetAdmins requestPicCropField (boolean value) {
this.requestField("pic_crop", value);
return this;
}
public APIRequestGetAdmins requestPicLargeField () {
return this.requestPicLargeField(true);
}
public APIRequestGetAdmins requestPicLargeField (boolean value) {
this.requestField("pic_large", value);
return this;
}
public APIRequestGetAdmins requestPicSmallField () {
return this.requestPicSmallField(true);
}
public APIRequestGetAdmins requestPicSmallField (boolean value) {
this.requestField("pic_small", value);
return this;
}
public APIRequestGetAdmins requestPicSquareField () {
return this.requestPicSquareField(true);
}
public APIRequestGetAdmins requestPicSquareField (boolean value) {
this.requestField("pic_square", value);
return this;
}
public APIRequestGetAdmins requestProfileTypeField () {
return this.requestProfileTypeField(true);
}
public APIRequestGetAdmins requestProfileTypeField (boolean value) {
this.requestField("profile_type", value);
return this;
}
public APIRequestGetAdmins requestUsernameField () {
return this.requestUsernameField(true);
}
public APIRequestGetAdmins requestUsernameField (boolean value) {
this.requestField("username", value);
return this;
}
}
public static class APIRequestGetAttending extends APIRequest {
APINodeList lastResponse = null;
@Override
public APINodeList getLastResponse() {
return lastResponse;
}
public static final String[] PARAMS = {
"user",
};
public static final String[] FIELDS = {
"about",
"address",
"admin_notes",
"age_range",
"birthday",
"can_review_measurement_request",
"context",
"cover",
"currency",
"devices",
"education",
"email",
"employee_number",
"favorite_athletes",
"favorite_teams",
"first_name",
"gender",
"hometown",
"id",
"inspirational_people",
"install_type",
"installed",
"interested_in",
"is_famedeeplinkinguser",
"is_shared_login",
"is_verified",
"labels",
"languages",
"last_name",
"link",
"local_news_megaphone_dismiss_status",
"local_news_subscription_status",
"locale",
"location",
"meeting_for",
"middle_name",
"name",
"name_format",
"payment_pricepoints",
"political",
"profile_pic",
"public_key",
"quotes",
"relationship_status",
"religion",
"security_settings",
"shared_login_upgrade_required_by",
"short_name",
"significant_other",
"sports",
"test_group",
"third_party_id",
"timezone",
"token_for_business",
"updated_time",
"verified",
"video_upload_limits",
"viewer_can_send_gift",
"website",
"work",
};
@Override
public APINodeList parseResponse(String response, String header) throws APIException {
return User.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 APIRequestGetAttending.this.parseResponse(result.getBody(), result.getHeader());
} catch (Exception e) {
throw new RuntimeException(e);
}
}
}
);
};
public APIRequestGetAttending(String nodeId, APIContext context) {
super(context, nodeId, "/attending", "GET", Arrays.asList(PARAMS));
}
@Override
public APIRequestGetAttending setParam(String param, Object value) {
setParamInternal(param, value);
return this;
}
@Override
public APIRequestGetAttending setParams(Map params) {
setParamsInternal(params);
return this;
}
public APIRequestGetAttending setUser (Long user) {
this.setParam("user", user);
return this;
}
public APIRequestGetAttending setUser (String user) {
this.setParam("user", user);
return this;
}
public APIRequestGetAttending requestAllFields () {
return this.requestAllFields(true);
}
public APIRequestGetAttending requestAllFields (boolean value) {
for (String field : FIELDS) {
this.requestField(field, value);
}
return this;
}
@Override
public APIRequestGetAttending requestFields (List fields) {
return this.requestFields(fields, true);
}
@Override
public APIRequestGetAttending requestFields (List fields, boolean value) {
for (String field : fields) {
this.requestField(field, value);
}
return this;
}
@Override
public APIRequestGetAttending requestField (String field) {
this.requestField(field, true);
return this;
}
@Override
public APIRequestGetAttending requestField (String field, boolean value) {
this.requestFieldInternal(field, value);
return this;
}
public APIRequestGetAttending requestAboutField () {
return this.requestAboutField(true);
}
public APIRequestGetAttending requestAboutField (boolean value) {
this.requestField("about", value);
return this;
}
public APIRequestGetAttending requestAddressField () {
return this.requestAddressField(true);
}
public APIRequestGetAttending requestAddressField (boolean value) {
this.requestField("address", value);
return this;
}
public APIRequestGetAttending requestAdminNotesField () {
return this.requestAdminNotesField(true);
}
public APIRequestGetAttending requestAdminNotesField (boolean value) {
this.requestField("admin_notes", value);
return this;
}
public APIRequestGetAttending requestAgeRangeField () {
return this.requestAgeRangeField(true);
}
public APIRequestGetAttending requestAgeRangeField (boolean value) {
this.requestField("age_range", value);
return this;
}
public APIRequestGetAttending requestBirthdayField () {
return this.requestBirthdayField(true);
}
public APIRequestGetAttending requestBirthdayField (boolean value) {
this.requestField("birthday", value);
return this;
}
public APIRequestGetAttending requestCanReviewMeasurementRequestField () {
return this.requestCanReviewMeasurementRequestField(true);
}
public APIRequestGetAttending requestCanReviewMeasurementRequestField (boolean value) {
this.requestField("can_review_measurement_request", value);
return this;
}
public APIRequestGetAttending requestContextField () {
return this.requestContextField(true);
}
public APIRequestGetAttending requestContextField (boolean value) {
this.requestField("context", value);
return this;
}
public APIRequestGetAttending requestCoverField () {
return this.requestCoverField(true);
}
public APIRequestGetAttending requestCoverField (boolean value) {
this.requestField("cover", value);
return this;
}
public APIRequestGetAttending requestCurrencyField () {
return this.requestCurrencyField(true);
}
public APIRequestGetAttending requestCurrencyField (boolean value) {
this.requestField("currency", value);
return this;
}
public APIRequestGetAttending requestDevicesField () {
return this.requestDevicesField(true);
}
public APIRequestGetAttending requestDevicesField (boolean value) {
this.requestField("devices", value);
return this;
}
public APIRequestGetAttending requestEducationField () {
return this.requestEducationField(true);
}
public APIRequestGetAttending requestEducationField (boolean value) {
this.requestField("education", value);
return this;
}
public APIRequestGetAttending requestEmailField () {
return this.requestEmailField(true);
}
public APIRequestGetAttending requestEmailField (boolean value) {
this.requestField("email", value);
return this;
}
public APIRequestGetAttending requestEmployeeNumberField () {
return this.requestEmployeeNumberField(true);
}
public APIRequestGetAttending requestEmployeeNumberField (boolean value) {
this.requestField("employee_number", value);
return this;
}
public APIRequestGetAttending requestFavoriteAthletesField () {
return this.requestFavoriteAthletesField(true);
}
public APIRequestGetAttending requestFavoriteAthletesField (boolean value) {
this.requestField("favorite_athletes", value);
return this;
}
public APIRequestGetAttending requestFavoriteTeamsField () {
return this.requestFavoriteTeamsField(true);
}
public APIRequestGetAttending requestFavoriteTeamsField (boolean value) {
this.requestField("favorite_teams", value);
return this;
}
public APIRequestGetAttending requestFirstNameField () {
return this.requestFirstNameField(true);
}
public APIRequestGetAttending requestFirstNameField (boolean value) {
this.requestField("first_name", value);
return this;
}
public APIRequestGetAttending requestGenderField () {
return this.requestGenderField(true);
}
public APIRequestGetAttending requestGenderField (boolean value) {
this.requestField("gender", value);
return this;
}
public APIRequestGetAttending requestHometownField () {
return this.requestHometownField(true);
}
public APIRequestGetAttending requestHometownField (boolean value) {
this.requestField("hometown", value);
return this;
}
public APIRequestGetAttending requestIdField () {
return this.requestIdField(true);
}
public APIRequestGetAttending requestIdField (boolean value) {
this.requestField("id", value);
return this;
}
public APIRequestGetAttending requestInspirationalPeopleField () {
return this.requestInspirationalPeopleField(true);
}
public APIRequestGetAttending requestInspirationalPeopleField (boolean value) {
this.requestField("inspirational_people", value);
return this;
}
public APIRequestGetAttending requestInstallTypeField () {
return this.requestInstallTypeField(true);
}
public APIRequestGetAttending requestInstallTypeField (boolean value) {
this.requestField("install_type", value);
return this;
}
public APIRequestGetAttending requestInstalledField () {
return this.requestInstalledField(true);
}
public APIRequestGetAttending requestInstalledField (boolean value) {
this.requestField("installed", value);
return this;
}
public APIRequestGetAttending requestInterestedInField () {
return this.requestInterestedInField(true);
}
public APIRequestGetAttending requestInterestedInField (boolean value) {
this.requestField("interested_in", value);
return this;
}
public APIRequestGetAttending requestIsFamedeeplinkinguserField () {
return this.requestIsFamedeeplinkinguserField(true);
}
public APIRequestGetAttending requestIsFamedeeplinkinguserField (boolean value) {
this.requestField("is_famedeeplinkinguser", value);
return this;
}
public APIRequestGetAttending requestIsSharedLoginField () {
return this.requestIsSharedLoginField(true);
}
public APIRequestGetAttending requestIsSharedLoginField (boolean value) {
this.requestField("is_shared_login", value);
return this;
}
public APIRequestGetAttending requestIsVerifiedField () {
return this.requestIsVerifiedField(true);
}
public APIRequestGetAttending requestIsVerifiedField (boolean value) {
this.requestField("is_verified", value);
return this;
}
public APIRequestGetAttending requestLabelsField () {
return this.requestLabelsField(true);
}
public APIRequestGetAttending requestLabelsField (boolean value) {
this.requestField("labels", value);
return this;
}
public APIRequestGetAttending requestLanguagesField () {
return this.requestLanguagesField(true);
}
public APIRequestGetAttending requestLanguagesField (boolean value) {
this.requestField("languages", value);
return this;
}
public APIRequestGetAttending requestLastNameField () {
return this.requestLastNameField(true);
}
public APIRequestGetAttending requestLastNameField (boolean value) {
this.requestField("last_name", value);
return this;
}
public APIRequestGetAttending requestLinkField () {
return this.requestLinkField(true);
}
public APIRequestGetAttending requestLinkField (boolean value) {
this.requestField("link", value);
return this;
}
public APIRequestGetAttending requestLocalNewsMegaphoneDismissStatusField () {
return this.requestLocalNewsMegaphoneDismissStatusField(true);
}
public APIRequestGetAttending requestLocalNewsMegaphoneDismissStatusField (boolean value) {
this.requestField("local_news_megaphone_dismiss_status", value);
return this;
}
public APIRequestGetAttending requestLocalNewsSubscriptionStatusField () {
return this.requestLocalNewsSubscriptionStatusField(true);
}
public APIRequestGetAttending requestLocalNewsSubscriptionStatusField (boolean value) {
this.requestField("local_news_subscription_status", value);
return this;
}
public APIRequestGetAttending requestLocaleField () {
return this.requestLocaleField(true);
}
public APIRequestGetAttending requestLocaleField (boolean value) {
this.requestField("locale", value);
return this;
}
public APIRequestGetAttending requestLocationField () {
return this.requestLocationField(true);
}
public APIRequestGetAttending requestLocationField (boolean value) {
this.requestField("location", value);
return this;
}
public APIRequestGetAttending requestMeetingForField () {
return this.requestMeetingForField(true);
}
public APIRequestGetAttending requestMeetingForField (boolean value) {
this.requestField("meeting_for", value);
return this;
}
public APIRequestGetAttending requestMiddleNameField () {
return this.requestMiddleNameField(true);
}
public APIRequestGetAttending requestMiddleNameField (boolean value) {
this.requestField("middle_name", value);
return this;
}
public APIRequestGetAttending requestNameField () {
return this.requestNameField(true);
}
public APIRequestGetAttending requestNameField (boolean value) {
this.requestField("name", value);
return this;
}
public APIRequestGetAttending requestNameFormatField () {
return this.requestNameFormatField(true);
}
public APIRequestGetAttending requestNameFormatField (boolean value) {
this.requestField("name_format", value);
return this;
}
public APIRequestGetAttending requestPaymentPricepointsField () {
return this.requestPaymentPricepointsField(true);
}
public APIRequestGetAttending requestPaymentPricepointsField (boolean value) {
this.requestField("payment_pricepoints", value);
return this;
}
public APIRequestGetAttending requestPoliticalField () {
return this.requestPoliticalField(true);
}
public APIRequestGetAttending requestPoliticalField (boolean value) {
this.requestField("political", value);
return this;
}
public APIRequestGetAttending requestProfilePicField () {
return this.requestProfilePicField(true);
}
public APIRequestGetAttending requestProfilePicField (boolean value) {
this.requestField("profile_pic", value);
return this;
}
public APIRequestGetAttending requestPublicKeyField () {
return this.requestPublicKeyField(true);
}
public APIRequestGetAttending requestPublicKeyField (boolean value) {
this.requestField("public_key", value);
return this;
}
public APIRequestGetAttending requestQuotesField () {
return this.requestQuotesField(true);
}
public APIRequestGetAttending requestQuotesField (boolean value) {
this.requestField("quotes", value);
return this;
}
public APIRequestGetAttending requestRelationshipStatusField () {
return this.requestRelationshipStatusField(true);
}
public APIRequestGetAttending requestRelationshipStatusField (boolean value) {
this.requestField("relationship_status", value);
return this;
}
public APIRequestGetAttending requestReligionField () {
return this.requestReligionField(true);
}
public APIRequestGetAttending requestReligionField (boolean value) {
this.requestField("religion", value);
return this;
}
public APIRequestGetAttending requestSecuritySettingsField () {
return this.requestSecuritySettingsField(true);
}
public APIRequestGetAttending requestSecuritySettingsField (boolean value) {
this.requestField("security_settings", value);
return this;
}
public APIRequestGetAttending requestSharedLoginUpgradeRequiredByField () {
return this.requestSharedLoginUpgradeRequiredByField(true);
}
public APIRequestGetAttending requestSharedLoginUpgradeRequiredByField (boolean value) {
this.requestField("shared_login_upgrade_required_by", value);
return this;
}
public APIRequestGetAttending requestShortNameField () {
return this.requestShortNameField(true);
}
public APIRequestGetAttending requestShortNameField (boolean value) {
this.requestField("short_name", value);
return this;
}
public APIRequestGetAttending requestSignificantOtherField () {
return this.requestSignificantOtherField(true);
}
public APIRequestGetAttending requestSignificantOtherField (boolean value) {
this.requestField("significant_other", value);
return this;
}
public APIRequestGetAttending requestSportsField () {
return this.requestSportsField(true);
}
public APIRequestGetAttending requestSportsField (boolean value) {
this.requestField("sports", value);
return this;
}
public APIRequestGetAttending requestTestGroupField () {
return this.requestTestGroupField(true);
}
public APIRequestGetAttending requestTestGroupField (boolean value) {
this.requestField("test_group", value);
return this;
}
public APIRequestGetAttending requestThirdPartyIdField () {
return this.requestThirdPartyIdField(true);
}
public APIRequestGetAttending requestThirdPartyIdField (boolean value) {
this.requestField("third_party_id", value);
return this;
}
public APIRequestGetAttending requestTimezoneField () {
return this.requestTimezoneField(true);
}
public APIRequestGetAttending requestTimezoneField (boolean value) {
this.requestField("timezone", value);
return this;
}
public APIRequestGetAttending requestTokenForBusinessField () {
return this.requestTokenForBusinessField(true);
}
public APIRequestGetAttending requestTokenForBusinessField (boolean value) {
this.requestField("token_for_business", value);
return this;
}
public APIRequestGetAttending requestUpdatedTimeField () {
return this.requestUpdatedTimeField(true);
}
public APIRequestGetAttending requestUpdatedTimeField (boolean value) {
this.requestField("updated_time", value);
return this;
}
public APIRequestGetAttending requestVerifiedField () {
return this.requestVerifiedField(true);
}
public APIRequestGetAttending requestVerifiedField (boolean value) {
this.requestField("verified", value);
return this;
}
public APIRequestGetAttending requestVideoUploadLimitsField () {
return this.requestVideoUploadLimitsField(true);
}
public APIRequestGetAttending requestVideoUploadLimitsField (boolean value) {
this.requestField("video_upload_limits", value);
return this;
}
public APIRequestGetAttending requestViewerCanSendGiftField () {
return this.requestViewerCanSendGiftField(true);
}
public APIRequestGetAttending requestViewerCanSendGiftField (boolean value) {
this.requestField("viewer_can_send_gift", value);
return this;
}
public APIRequestGetAttending requestWebsiteField () {
return this.requestWebsiteField(true);
}
public APIRequestGetAttending requestWebsiteField (boolean value) {
this.requestField("website", value);
return this;
}
public APIRequestGetAttending requestWorkField () {
return this.requestWorkField(true);
}
public APIRequestGetAttending requestWorkField (boolean value) {
this.requestField("work", value);
return this;
}
}
public static class APIRequestCreateAttending extends APIRequest {
Event lastResponse = null;
@Override
public Event getLastResponse() {
return lastResponse;
}
public static final String[] PARAMS = {
"eid",
"action_context",
"app_context",
"tracking",
"uid",
};
public static final String[] FIELDS = {
};
@Override
public Event parseResponse(String response, String header) throws APIException {
return Event.parseResponse(response, getContext(), this, header).head();
}
@Override
public Event execute() throws APIException {
return execute(new HashMap());
}
@Override
public Event 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 Event apply(ResponseWrapper result) {
try {
return APIRequestCreateAttending.this.parseResponse(result.getBody(), result.getHeader());
} catch (Exception e) {
throw new RuntimeException(e);
}
}
}
);
};
public APIRequestCreateAttending(String nodeId, APIContext context) {
super(context, nodeId, "/attending", "POST", Arrays.asList(PARAMS));
}
@Override
public APIRequestCreateAttending setParam(String param, Object value) {
setParamInternal(param, value);
return this;
}
@Override
public APIRequestCreateAttending setParams(Map params) {
setParamsInternal(params);
return this;
}
public APIRequestCreateAttending setEid (String eid) {
this.setParam("eid", eid);
return this;
}
public APIRequestCreateAttending setActionContext (Object actionContext) {
this.setParam("action_context", actionContext);
return this;
}
public APIRequestCreateAttending setActionContext (String actionContext) {
this.setParam("action_context", actionContext);
return this;
}
public APIRequestCreateAttending setAppContext (Object appContext) {
this.setParam("app_context", appContext);
return this;
}
public APIRequestCreateAttending setAppContext (String appContext) {
this.setParam("app_context", appContext);
return this;
}
public APIRequestCreateAttending setTracking (String tracking) {
this.setParam("tracking", tracking);
return this;
}
public APIRequestCreateAttending setUid (Long uid) {
this.setParam("uid", uid);
return this;
}
public APIRequestCreateAttending setUid (String uid) {
this.setParam("uid", uid);
return this;
}
public APIRequestCreateAttending requestAllFields () {
return this.requestAllFields(true);
}
public APIRequestCreateAttending requestAllFields (boolean value) {
for (String field : FIELDS) {
this.requestField(field, value);
}
return this;
}
@Override
public APIRequestCreateAttending requestFields (List fields) {
return this.requestFields(fields, true);
}
@Override
public APIRequestCreateAttending requestFields (List fields, boolean value) {
for (String field : fields) {
this.requestField(field, value);
}
return this;
}
@Override
public APIRequestCreateAttending requestField (String field) {
this.requestField(field, true);
return this;
}
@Override
public APIRequestCreateAttending requestField (String field, boolean value) {
this.requestFieldInternal(field, value);
return this;
}
}
public static class APIRequestGetComments extends APIRequest {
APINodeList lastResponse = null;
@Override
public APINodeList getLastResponse() {
return lastResponse;
}
public static final String[] PARAMS = {
};
public static final String[] FIELDS = {
"id",
};
@Override
public APINodeList parseResponse(String response, String header) throws APIException {
return NullNode.parseResponse(response, getContext(), this, header);
}
@Override
public APINodeList execute() throws APIException {
return execute(new HashMap());
}
@Override
public APINodeList execute(Map extraParams) throws APIException {
ResponseWrapper rw = executeInternal(extraParams);
lastResponse = parseResponse(rw.getBody(),rw.getHeader());
return lastResponse;
}
public ListenableFuture> executeAsync() throws APIException {
return executeAsync(new HashMap());
};
public ListenableFuture> executeAsync(Map extraParams) throws APIException {
return Futures.transform(
executeAsyncInternal(extraParams),
new Function>() {
public APINodeList apply(ResponseWrapper result) {
try {
return APIRequestGetComments.this.parseResponse(result.getBody(), result.getHeader());
} catch (Exception e) {
throw new RuntimeException(e);
}
}
}
);
};
public APIRequestGetComments(String nodeId, APIContext context) {
super(context, nodeId, "/comments", "GET", Arrays.asList(PARAMS));
}
@Override
public APIRequestGetComments setParam(String param, Object value) {
setParamInternal(param, value);
return this;
}
@Override
public APIRequestGetComments setParams(Map params) {
setParamsInternal(params);
return this;
}
public APIRequestGetComments requestAllFields () {
return this.requestAllFields(true);
}
public APIRequestGetComments requestAllFields (boolean value) {
for (String field : FIELDS) {
this.requestField(field, value);
}
return this;
}
@Override
public APIRequestGetComments requestFields (List fields) {
return this.requestFields(fields, true);
}
@Override
public APIRequestGetComments requestFields (List fields, boolean value) {
for (String field : fields) {
this.requestField(field, value);
}
return this;
}
@Override
public APIRequestGetComments requestField (String field) {
this.requestField(field, true);
return this;
}
@Override
public APIRequestGetComments requestField (String field, boolean value) {
this.requestFieldInternal(field, value);
return this;
}
public APIRequestGetComments requestIdField () {
return this.requestIdField(true);
}
public APIRequestGetComments requestIdField (boolean value) {
this.requestField("id", value);
return this;
}
}
public static class APIRequestCreateComment extends APIRequest {
Comment lastResponse = null;
@Override
public Comment getLastResponse() {
return lastResponse;
}
public static final String[] PARAMS = {
"object_id",
"parent_comment_id",
"nectar_module",
"attachment_id",
"attachment_url",
"attachment_share_url",
"feedback_source",
"facepile_mentioned_ids",
"is_offline",
"comment_privacy_value",
"message",
"text",
"tracking",
};
public static final String[] FIELDS = {
};
@Override
public Comment parseResponse(String response, String header) throws APIException {
return Comment.parseResponse(response, getContext(), this, header).head();
}
@Override
public Comment execute() throws APIException {
return execute(new HashMap());
}
@Override
public Comment execute(Map extraParams) throws APIException {
ResponseWrapper rw = executeInternal(extraParams);
lastResponse = parseResponse(rw.getBody(), rw.getHeader());
return lastResponse;
}
public ListenableFuture executeAsync() throws APIException {
return executeAsync(new HashMap());
};
public ListenableFuture executeAsync(Map extraParams) throws APIException {
return Futures.transform(
executeAsyncInternal(extraParams),
new Function() {
public Comment apply(ResponseWrapper result) {
try {
return APIRequestCreateComment.this.parseResponse(result.getBody(), result.getHeader());
} catch (Exception e) {
throw new RuntimeException(e);
}
}
}
);
};
public APIRequestCreateComment(String nodeId, APIContext context) {
super(context, nodeId, "/comments", "POST", Arrays.asList(PARAMS));
}
@Override
public APIRequestCreateComment setParam(String param, Object value) {
setParamInternal(param, value);
return this;
}
@Override
public APIRequestCreateComment setParams(Map params) {
setParamsInternal(params);
return this;
}
public APIRequestCreateComment setObjectId (String objectId) {
this.setParam("object_id", objectId);
return this;
}
public APIRequestCreateComment setParentCommentId (Object parentCommentId) {
this.setParam("parent_comment_id", parentCommentId);
return this;
}
public APIRequestCreateComment setParentCommentId (String parentCommentId) {
this.setParam("parent_comment_id", parentCommentId);
return this;
}
public APIRequestCreateComment setNectarModule (String nectarModule) {
this.setParam("nectar_module", nectarModule);
return this;
}
public APIRequestCreateComment setAttachmentId (String attachmentId) {
this.setParam("attachment_id", attachmentId);
return this;
}
public APIRequestCreateComment setAttachmentUrl (String attachmentUrl) {
this.setParam("attachment_url", attachmentUrl);
return this;
}
public APIRequestCreateComment setAttachmentShareUrl (String attachmentShareUrl) {
this.setParam("attachment_share_url", attachmentShareUrl);
return this;
}
public APIRequestCreateComment setFeedbackSource (String feedbackSource) {
this.setParam("feedback_source", feedbackSource);
return this;
}
public APIRequestCreateComment setFacepileMentionedIds (List facepileMentionedIds) {
this.setParam("facepile_mentioned_ids", facepileMentionedIds);
return this;
}
public APIRequestCreateComment setFacepileMentionedIds (String facepileMentionedIds) {
this.setParam("facepile_mentioned_ids", facepileMentionedIds);
return this;
}
public APIRequestCreateComment setIsOffline (Boolean isOffline) {
this.setParam("is_offline", isOffline);
return this;
}
public APIRequestCreateComment setIsOffline (String isOffline) {
this.setParam("is_offline", isOffline);
return this;
}
public APIRequestCreateComment setCommentPrivacyValue (Comment.EnumCommentPrivacyValue commentPrivacyValue) {
this.setParam("comment_privacy_value", commentPrivacyValue);
return this;
}
public APIRequestCreateComment setCommentPrivacyValue (String commentPrivacyValue) {
this.setParam("comment_privacy_value", commentPrivacyValue);
return this;
}
public APIRequestCreateComment setMessage (String message) {
this.setParam("message", message);
return this;
}
public APIRequestCreateComment setText (String text) {
this.setParam("text", text);
return this;
}
public APIRequestCreateComment setTracking (String tracking) {
this.setParam("tracking", tracking);
return this;
}
public APIRequestCreateComment requestAllFields () {
return this.requestAllFields(true);
}
public APIRequestCreateComment requestAllFields (boolean value) {
for (String field : FIELDS) {
this.requestField(field, value);
}
return this;
}
@Override
public APIRequestCreateComment requestFields (List fields) {
return this.requestFields(fields, true);
}
@Override
public APIRequestCreateComment requestFields (List fields, boolean value) {
for (String field : fields) {
this.requestField(field, value);
}
return this;
}
@Override
public APIRequestCreateComment requestField (String field) {
this.requestField(field, true);
return this;
}
@Override
public APIRequestCreateComment requestField (String field, boolean value) {
this.requestFieldInternal(field, value);
return this;
}
}
public static class APIRequestGetDeclined extends APIRequest {
APINodeList lastResponse = null;
@Override
public APINodeList getLastResponse() {
return lastResponse;
}
public static final String[] PARAMS = {
"user",
};
public static final String[] FIELDS = {
"about",
"address",
"admin_notes",
"age_range",
"birthday",
"can_review_measurement_request",
"context",
"cover",
"currency",
"devices",
"education",
"email",
"employee_number",
"favorite_athletes",
"favorite_teams",
"first_name",
"gender",
"hometown",
"id",
"inspirational_people",
"install_type",
"installed",
"interested_in",
"is_famedeeplinkinguser",
"is_shared_login",
"is_verified",
"labels",
"languages",
"last_name",
"link",
"local_news_megaphone_dismiss_status",
"local_news_subscription_status",
"locale",
"location",
"meeting_for",
"middle_name",
"name",
"name_format",
"payment_pricepoints",
"political",
"profile_pic",
"public_key",
"quotes",
"relationship_status",
"religion",
"security_settings",
"shared_login_upgrade_required_by",
"short_name",
"significant_other",
"sports",
"test_group",
"third_party_id",
"timezone",
"token_for_business",
"updated_time",
"verified",
"video_upload_limits",
"viewer_can_send_gift",
"website",
"work",
};
@Override
public APINodeList parseResponse(String response, String header) throws APIException {
return User.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 APIRequestGetDeclined.this.parseResponse(result.getBody(), result.getHeader());
} catch (Exception e) {
throw new RuntimeException(e);
}
}
}
);
};
public APIRequestGetDeclined(String nodeId, APIContext context) {
super(context, nodeId, "/declined", "GET", Arrays.asList(PARAMS));
}
@Override
public APIRequestGetDeclined setParam(String param, Object value) {
setParamInternal(param, value);
return this;
}
@Override
public APIRequestGetDeclined setParams(Map params) {
setParamsInternal(params);
return this;
}
public APIRequestGetDeclined setUser (Long user) {
this.setParam("user", user);
return this;
}
public APIRequestGetDeclined setUser (String user) {
this.setParam("user", user);
return this;
}
public APIRequestGetDeclined requestAllFields () {
return this.requestAllFields(true);
}
public APIRequestGetDeclined requestAllFields (boolean value) {
for (String field : FIELDS) {
this.requestField(field, value);
}
return this;
}
@Override
public APIRequestGetDeclined requestFields (List fields) {
return this.requestFields(fields, true);
}
@Override
public APIRequestGetDeclined requestFields (List fields, boolean value) {
for (String field : fields) {
this.requestField(field, value);
}
return this;
}
@Override
public APIRequestGetDeclined requestField (String field) {
this.requestField(field, true);
return this;
}
@Override
public APIRequestGetDeclined requestField (String field, boolean value) {
this.requestFieldInternal(field, value);
return this;
}
public APIRequestGetDeclined requestAboutField () {
return this.requestAboutField(true);
}
public APIRequestGetDeclined requestAboutField (boolean value) {
this.requestField("about", value);
return this;
}
public APIRequestGetDeclined requestAddressField () {
return this.requestAddressField(true);
}
public APIRequestGetDeclined requestAddressField (boolean value) {
this.requestField("address", value);
return this;
}
public APIRequestGetDeclined requestAdminNotesField () {
return this.requestAdminNotesField(true);
}
public APIRequestGetDeclined requestAdminNotesField (boolean value) {
this.requestField("admin_notes", value);
return this;
}
public APIRequestGetDeclined requestAgeRangeField () {
return this.requestAgeRangeField(true);
}
public APIRequestGetDeclined requestAgeRangeField (boolean value) {
this.requestField("age_range", value);
return this;
}
public APIRequestGetDeclined requestBirthdayField () {
return this.requestBirthdayField(true);
}
public APIRequestGetDeclined requestBirthdayField (boolean value) {
this.requestField("birthday", value);
return this;
}
public APIRequestGetDeclined requestCanReviewMeasurementRequestField () {
return this.requestCanReviewMeasurementRequestField(true);
}
public APIRequestGetDeclined requestCanReviewMeasurementRequestField (boolean value) {
this.requestField("can_review_measurement_request", value);
return this;
}
public APIRequestGetDeclined requestContextField () {
return this.requestContextField(true);
}
public APIRequestGetDeclined requestContextField (boolean value) {
this.requestField("context", value);
return this;
}
public APIRequestGetDeclined requestCoverField () {
return this.requestCoverField(true);
}
public APIRequestGetDeclined requestCoverField (boolean value) {
this.requestField("cover", value);
return this;
}
public APIRequestGetDeclined requestCurrencyField () {
return this.requestCurrencyField(true);
}
public APIRequestGetDeclined requestCurrencyField (boolean value) {
this.requestField("currency", value);
return this;
}
public APIRequestGetDeclined requestDevicesField () {
return this.requestDevicesField(true);
}
public APIRequestGetDeclined requestDevicesField (boolean value) {
this.requestField("devices", value);
return this;
}
public APIRequestGetDeclined requestEducationField () {
return this.requestEducationField(true);
}
public APIRequestGetDeclined requestEducationField (boolean value) {
this.requestField("education", value);
return this;
}
public APIRequestGetDeclined requestEmailField () {
return this.requestEmailField(true);
}
public APIRequestGetDeclined requestEmailField (boolean value) {
this.requestField("email", value);
return this;
}
public APIRequestGetDeclined requestEmployeeNumberField () {
return this.requestEmployeeNumberField(true);
}
public APIRequestGetDeclined requestEmployeeNumberField (boolean value) {
this.requestField("employee_number", value);
return this;
}
public APIRequestGetDeclined requestFavoriteAthletesField () {
return this.requestFavoriteAthletesField(true);
}
public APIRequestGetDeclined requestFavoriteAthletesField (boolean value) {
this.requestField("favorite_athletes", value);
return this;
}
public APIRequestGetDeclined requestFavoriteTeamsField () {
return this.requestFavoriteTeamsField(true);
}
public APIRequestGetDeclined requestFavoriteTeamsField (boolean value) {
this.requestField("favorite_teams", value);
return this;
}
public APIRequestGetDeclined requestFirstNameField () {
return this.requestFirstNameField(true);
}
public APIRequestGetDeclined requestFirstNameField (boolean value) {
this.requestField("first_name", value);
return this;
}
public APIRequestGetDeclined requestGenderField () {
return this.requestGenderField(true);
}
public APIRequestGetDeclined requestGenderField (boolean value) {
this.requestField("gender", value);
return this;
}
public APIRequestGetDeclined requestHometownField () {
return this.requestHometownField(true);
}
public APIRequestGetDeclined requestHometownField (boolean value) {
this.requestField("hometown", value);
return this;
}
public APIRequestGetDeclined requestIdField () {
return this.requestIdField(true);
}
public APIRequestGetDeclined requestIdField (boolean value) {
this.requestField("id", value);
return this;
}
public APIRequestGetDeclined requestInspirationalPeopleField () {
return this.requestInspirationalPeopleField(true);
}
public APIRequestGetDeclined requestInspirationalPeopleField (boolean value) {
this.requestField("inspirational_people", value);
return this;
}
public APIRequestGetDeclined requestInstallTypeField () {
return this.requestInstallTypeField(true);
}
public APIRequestGetDeclined requestInstallTypeField (boolean value) {
this.requestField("install_type", value);
return this;
}
public APIRequestGetDeclined requestInstalledField () {
return this.requestInstalledField(true);
}
public APIRequestGetDeclined requestInstalledField (boolean value) {
this.requestField("installed", value);
return this;
}
public APIRequestGetDeclined requestInterestedInField () {
return this.requestInterestedInField(true);
}
public APIRequestGetDeclined requestInterestedInField (boolean value) {
this.requestField("interested_in", value);
return this;
}
public APIRequestGetDeclined requestIsFamedeeplinkinguserField () {
return this.requestIsFamedeeplinkinguserField(true);
}
public APIRequestGetDeclined requestIsFamedeeplinkinguserField (boolean value) {
this.requestField("is_famedeeplinkinguser", value);
return this;
}
public APIRequestGetDeclined requestIsSharedLoginField () {
return this.requestIsSharedLoginField(true);
}
public APIRequestGetDeclined requestIsSharedLoginField (boolean value) {
this.requestField("is_shared_login", value);
return this;
}
public APIRequestGetDeclined requestIsVerifiedField () {
return this.requestIsVerifiedField(true);
}
public APIRequestGetDeclined requestIsVerifiedField (boolean value) {
this.requestField("is_verified", value);
return this;
}
public APIRequestGetDeclined requestLabelsField () {
return this.requestLabelsField(true);
}
public APIRequestGetDeclined requestLabelsField (boolean value) {
this.requestField("labels", value);
return this;
}
public APIRequestGetDeclined requestLanguagesField () {
return this.requestLanguagesField(true);
}
public APIRequestGetDeclined requestLanguagesField (boolean value) {
this.requestField("languages", value);
return this;
}
public APIRequestGetDeclined requestLastNameField () {
return this.requestLastNameField(true);
}
public APIRequestGetDeclined requestLastNameField (boolean value) {
this.requestField("last_name", value);
return this;
}
public APIRequestGetDeclined requestLinkField () {
return this.requestLinkField(true);
}
public APIRequestGetDeclined requestLinkField (boolean value) {
this.requestField("link", value);
return this;
}
public APIRequestGetDeclined requestLocalNewsMegaphoneDismissStatusField () {
return this.requestLocalNewsMegaphoneDismissStatusField(true);
}
public APIRequestGetDeclined requestLocalNewsMegaphoneDismissStatusField (boolean value) {
this.requestField("local_news_megaphone_dismiss_status", value);
return this;
}
public APIRequestGetDeclined requestLocalNewsSubscriptionStatusField () {
return this.requestLocalNewsSubscriptionStatusField(true);
}
public APIRequestGetDeclined requestLocalNewsSubscriptionStatusField (boolean value) {
this.requestField("local_news_subscription_status", value);
return this;
}
public APIRequestGetDeclined requestLocaleField () {
return this.requestLocaleField(true);
}
public APIRequestGetDeclined requestLocaleField (boolean value) {
this.requestField("locale", value);
return this;
}
public APIRequestGetDeclined requestLocationField () {
return this.requestLocationField(true);
}
public APIRequestGetDeclined requestLocationField (boolean value) {
this.requestField("location", value);
return this;
}
public APIRequestGetDeclined requestMeetingForField () {
return this.requestMeetingForField(true);
}
public APIRequestGetDeclined requestMeetingForField (boolean value) {
this.requestField("meeting_for", value);
return this;
}
public APIRequestGetDeclined requestMiddleNameField () {
return this.requestMiddleNameField(true);
}
public APIRequestGetDeclined requestMiddleNameField (boolean value) {
this.requestField("middle_name", value);
return this;
}
public APIRequestGetDeclined requestNameField () {
return this.requestNameField(true);
}
public APIRequestGetDeclined requestNameField (boolean value) {
this.requestField("name", value);
return this;
}
public APIRequestGetDeclined requestNameFormatField () {
return this.requestNameFormatField(true);
}
public APIRequestGetDeclined requestNameFormatField (boolean value) {
this.requestField("name_format", value);
return this;
}
public APIRequestGetDeclined requestPaymentPricepointsField () {
return this.requestPaymentPricepointsField(true);
}
public APIRequestGetDeclined requestPaymentPricepointsField (boolean value) {
this.requestField("payment_pricepoints", value);
return this;
}
public APIRequestGetDeclined requestPoliticalField () {
return this.requestPoliticalField(true);
}
public APIRequestGetDeclined requestPoliticalField (boolean value) {
this.requestField("political", value);
return this;
}
public APIRequestGetDeclined requestProfilePicField () {
return this.requestProfilePicField(true);
}
public APIRequestGetDeclined requestProfilePicField (boolean value) {
this.requestField("profile_pic", value);
return this;
}
public APIRequestGetDeclined requestPublicKeyField () {
return this.requestPublicKeyField(true);
}
public APIRequestGetDeclined requestPublicKeyField (boolean value) {
this.requestField("public_key", value);
return this;
}
public APIRequestGetDeclined requestQuotesField () {
return this.requestQuotesField(true);
}
public APIRequestGetDeclined requestQuotesField (boolean value) {
this.requestField("quotes", value);
return this;
}
public APIRequestGetDeclined requestRelationshipStatusField () {
return this.requestRelationshipStatusField(true);
}
public APIRequestGetDeclined requestRelationshipStatusField (boolean value) {
this.requestField("relationship_status", value);
return this;
}
public APIRequestGetDeclined requestReligionField () {
return this.requestReligionField(true);
}
public APIRequestGetDeclined requestReligionField (boolean value) {
this.requestField("religion", value);
return this;
}
public APIRequestGetDeclined requestSecuritySettingsField () {
return this.requestSecuritySettingsField(true);
}
public APIRequestGetDeclined requestSecuritySettingsField (boolean value) {
this.requestField("security_settings", value);
return this;
}
public APIRequestGetDeclined requestSharedLoginUpgradeRequiredByField () {
return this.requestSharedLoginUpgradeRequiredByField(true);
}
public APIRequestGetDeclined requestSharedLoginUpgradeRequiredByField (boolean value) {
this.requestField("shared_login_upgrade_required_by", value);
return this;
}
public APIRequestGetDeclined requestShortNameField () {
return this.requestShortNameField(true);
}
public APIRequestGetDeclined requestShortNameField (boolean value) {
this.requestField("short_name", value);
return this;
}
public APIRequestGetDeclined requestSignificantOtherField () {
return this.requestSignificantOtherField(true);
}
public APIRequestGetDeclined requestSignificantOtherField (boolean value) {
this.requestField("significant_other", value);
return this;
}
public APIRequestGetDeclined requestSportsField () {
return this.requestSportsField(true);
}
public APIRequestGetDeclined requestSportsField (boolean value) {
this.requestField("sports", value);
return this;
}
public APIRequestGetDeclined requestTestGroupField () {
return this.requestTestGroupField(true);
}
public APIRequestGetDeclined requestTestGroupField (boolean value) {
this.requestField("test_group", value);
return this;
}
public APIRequestGetDeclined requestThirdPartyIdField () {
return this.requestThirdPartyIdField(true);
}
public APIRequestGetDeclined requestThirdPartyIdField (boolean value) {
this.requestField("third_party_id", value);
return this;
}
public APIRequestGetDeclined requestTimezoneField () {
return this.requestTimezoneField(true);
}
public APIRequestGetDeclined requestTimezoneField (boolean value) {
this.requestField("timezone", value);
return this;
}
public APIRequestGetDeclined requestTokenForBusinessField () {
return this.requestTokenForBusinessField(true);
}
public APIRequestGetDeclined requestTokenForBusinessField (boolean value) {
this.requestField("token_for_business", value);
return this;
}
public APIRequestGetDeclined requestUpdatedTimeField () {
return this.requestUpdatedTimeField(true);
}
public APIRequestGetDeclined requestUpdatedTimeField (boolean value) {
this.requestField("updated_time", value);
return this;
}
public APIRequestGetDeclined requestVerifiedField () {
return this.requestVerifiedField(true);
}
public APIRequestGetDeclined requestVerifiedField (boolean value) {
this.requestField("verified", value);
return this;
}
public APIRequestGetDeclined requestVideoUploadLimitsField () {
return this.requestVideoUploadLimitsField(true);
}
public APIRequestGetDeclined requestVideoUploadLimitsField (boolean value) {
this.requestField("video_upload_limits", value);
return this;
}
public APIRequestGetDeclined requestViewerCanSendGiftField () {
return this.requestViewerCanSendGiftField(true);
}
public APIRequestGetDeclined requestViewerCanSendGiftField (boolean value) {
this.requestField("viewer_can_send_gift", value);
return this;
}
public APIRequestGetDeclined requestWebsiteField () {
return this.requestWebsiteField(true);
}
public APIRequestGetDeclined requestWebsiteField (boolean value) {
this.requestField("website", value);
return this;
}
public APIRequestGetDeclined requestWorkField () {
return this.requestWorkField(true);
}
public APIRequestGetDeclined requestWorkField (boolean value) {
this.requestField("work", value);
return this;
}
}
public static class APIRequestCreateDeclined extends APIRequest {
Event lastResponse = null;
@Override
public Event getLastResponse() {
return lastResponse;
}
public static final String[] PARAMS = {
"eid",
"action_context",
"app_context",
"tracking",
"uid",
};
public static final String[] FIELDS = {
};
@Override
public Event parseResponse(String response, String header) throws APIException {
return Event.parseResponse(response, getContext(), this, header).head();
}
@Override
public Event execute() throws APIException {
return execute(new HashMap());
}
@Override
public Event 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 Event apply(ResponseWrapper result) {
try {
return APIRequestCreateDeclined.this.parseResponse(result.getBody(), result.getHeader());
} catch (Exception e) {
throw new RuntimeException(e);
}
}
}
);
};
public APIRequestCreateDeclined(String nodeId, APIContext context) {
super(context, nodeId, "/declined", "POST", Arrays.asList(PARAMS));
}
@Override
public APIRequestCreateDeclined setParam(String param, Object value) {
setParamInternal(param, value);
return this;
}
@Override
public APIRequestCreateDeclined setParams(Map params) {
setParamsInternal(params);
return this;
}
public APIRequestCreateDeclined setEid (String eid) {
this.setParam("eid", eid);
return this;
}
public APIRequestCreateDeclined setActionContext (Object actionContext) {
this.setParam("action_context", actionContext);
return this;
}
public APIRequestCreateDeclined setActionContext (String actionContext) {
this.setParam("action_context", actionContext);
return this;
}
public APIRequestCreateDeclined setAppContext (Object appContext) {
this.setParam("app_context", appContext);
return this;
}
public APIRequestCreateDeclined setAppContext (String appContext) {
this.setParam("app_context", appContext);
return this;
}
public APIRequestCreateDeclined setTracking (String tracking) {
this.setParam("tracking", tracking);
return this;
}
public APIRequestCreateDeclined setUid (Long uid) {
this.setParam("uid", uid);
return this;
}
public APIRequestCreateDeclined setUid (String uid) {
this.setParam("uid", uid);
return this;
}
public APIRequestCreateDeclined requestAllFields () {
return this.requestAllFields(true);
}
public APIRequestCreateDeclined requestAllFields (boolean value) {
for (String field : FIELDS) {
this.requestField(field, value);
}
return this;
}
@Override
public APIRequestCreateDeclined requestFields (List fields) {
return this.requestFields(fields, true);
}
@Override
public APIRequestCreateDeclined requestFields (List fields, boolean value) {
for (String field : fields) {
this.requestField(field, value);
}
return this;
}
@Override
public APIRequestCreateDeclined requestField (String field) {
this.requestField(field, true);
return this;
}
@Override
public APIRequestCreateDeclined requestField (String field, boolean value) {
this.requestFieldInternal(field, value);
return this;
}
}
public static class APIRequestGetFeed extends APIRequest {
APINodeList lastResponse = null;
@Override
public APINodeList getLastResponse() {
return lastResponse;
}
public static final String[] PARAMS = {
};
public static final String[] FIELDS = {
"id",
};
@Override
public APINodeList parseResponse(String response, String header) throws APIException {
return NullNode.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 APIRequestGetFeed.this.parseResponse(result.getBody(), result.getHeader());
} catch (Exception e) {
throw new RuntimeException(e);
}
}
}
);
};
public APIRequestGetFeed(String nodeId, APIContext context) {
super(context, nodeId, "/feed", "GET", Arrays.asList(PARAMS));
}
@Override
public APIRequestGetFeed setParam(String param, Object value) {
setParamInternal(param, value);
return this;
}
@Override
public APIRequestGetFeed setParams(Map params) {
setParamsInternal(params);
return this;
}
public APIRequestGetFeed requestAllFields () {
return this.requestAllFields(true);
}
public APIRequestGetFeed requestAllFields (boolean value) {
for (String field : FIELDS) {
this.requestField(field, value);
}
return this;
}
@Override
public APIRequestGetFeed requestFields (List fields) {
return this.requestFields(fields, true);
}
@Override
public APIRequestGetFeed requestFields (List fields, boolean value) {
for (String field : fields) {
this.requestField(field, value);
}
return this;
}
@Override
public APIRequestGetFeed requestField (String field) {
this.requestField(field, true);
return this;
}
@Override
public APIRequestGetFeed requestField (String field, boolean value) {
this.requestFieldInternal(field, value);
return this;
}
public APIRequestGetFeed requestIdField () {
return this.requestIdField(true);
}
public APIRequestGetFeed requestIdField (boolean value) {
this.requestField("id", value);
return this;
}
}
public static class APIRequestCreateFeed extends APIRequest {
APINode lastResponse = null;
@Override
public APINode getLastResponse() {
return lastResponse;
}
public static final String[] PARAMS = {
"picture",
"name",
"link",
"caption",
"description",
"quote",
"source",
"properties",
"object_attachment",
"height",
"width",
"expanded_height",
"expanded_width",
"referral_id",
"thumbnail",
"image_crops",
"call_to_action",
"time_since_original_post",
"client_mutation_id",
"privacy",
"composer_session_id",
"content_attachment",
"actions",
"targeting",
"feed_targeting",
"ref",
"tags",
"place",
"is_explicit_location",
"og_action_type_id",
"og_object_id",
"og_phrase",
"og_icon_id",
"og_set_profile_badge",
"og_suggestion_mechanism",
"og_hide_object_attachment",
"backdated_time",
"backdated_time_granularity",
"published",
"scheduled_publish_time",
"unpublished_content_type",
"application_id",
"proxied_app_id",
"ios_bundle_id",
"android_key_hash",
"user_selected_tags",
"nectar_module",
"manual_privacy",
"audience_exp",
"coordinates",
"is_explicit_share",
"is_photo_container",
"implicit_with_tags",
"child_attachments",
"suggested_place_id",
"attach_place_suggestion",
"viewer_coordinates",
"album_id",
"multi_share_optimized",
"multi_share_end_card",
"title",
"attached_media",
"home_checkin_city_id",
"text_only_place",
"connection_class",
"associated_id",
"posting_to_redspace",
"place_attachment_setting",
"checkin_entry_point",
"is_backout_draft",
"sponsor_id",
"direct_share_status",
"sponsor_relationship",
"referenceable_image_ids",
"prompt_id",
"prompt_tracking_string",
"post_surfaces_blacklist",
"tracking_info",
"text_format_preset_id",
"cta_link",
"cta_type",
"place_list_data",
"formatting",
"target_surface",
"adaptive_type",
"animated_effect_id",
"asked_fun_fact_prompt_id",
"asset3d_id",
"composer_entry_picker",
"composer_entry_point",
"composer_entry_time",
"composer_session_events_log",
"composer_source_surface",
"composer_type",
"fun_fact_prompt_id",
"fun_fact_toastee_id",
"is_group_linking_post",
"has_nickname",
"holiday_card",
"instant_game_entry_point_data",
"is_boost_intended",
"location_source_id",
"message",
"offer_like_post_id",
"page_recommendation",
"place_list",
"publish_event_id",
"react_mode_metadata",
"sales_promo_id",
"text_format_metadata",
"throwback_camera_roll_media",
"video_start_time_ms",
};
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 APIRequestCreateFeed.this.parseResponse(result.getBody(), result.getHeader());
} catch (Exception e) {
throw new RuntimeException(e);
}
}
}
);
};
public APIRequestCreateFeed(String nodeId, APIContext context) {
super(context, nodeId, "/feed", "POST", Arrays.asList(PARAMS));
}
@Override
public APIRequestCreateFeed setParam(String param, Object value) {
setParamInternal(param, value);
return this;
}
@Override
public APIRequestCreateFeed setParams(Map params) {
setParamsInternal(params);
return this;
}
public APIRequestCreateFeed setPicture (String picture) {
this.setParam("picture", picture);
return this;
}
public APIRequestCreateFeed setName (String name) {
this.setParam("name", name);
return this;
}
public APIRequestCreateFeed setLink (String link) {
this.setParam("link", link);
return this;
}
public APIRequestCreateFeed setCaption (String caption) {
this.setParam("caption", caption);
return this;
}
public APIRequestCreateFeed setDescription (String description) {
this.setParam("description", description);
return this;
}
public APIRequestCreateFeed setQuote (String quote) {
this.setParam("quote", quote);
return this;
}
public APIRequestCreateFeed setSource (String source) {
this.setParam("source", source);
return this;
}
public APIRequestCreateFeed setProperties (Object properties) {
this.setParam("properties", properties);
return this;
}
public APIRequestCreateFeed setProperties (String properties) {
this.setParam("properties", properties);
return this;
}
public APIRequestCreateFeed setObjectAttachment (String objectAttachment) {
this.setParam("object_attachment", objectAttachment);
return this;
}
public APIRequestCreateFeed setHeight (Long height) {
this.setParam("height", height);
return this;
}
public APIRequestCreateFeed setHeight (String height) {
this.setParam("height", height);
return this;
}
public APIRequestCreateFeed setWidth (Long width) {
this.setParam("width", width);
return this;
}
public APIRequestCreateFeed setWidth (String width) {
this.setParam("width", width);
return this;
}
public APIRequestCreateFeed setExpandedHeight (Long expandedHeight) {
this.setParam("expanded_height", expandedHeight);
return this;
}
public APIRequestCreateFeed setExpandedHeight (String expandedHeight) {
this.setParam("expanded_height", expandedHeight);
return this;
}
public APIRequestCreateFeed setExpandedWidth (Long expandedWidth) {
this.setParam("expanded_width", expandedWidth);
return this;
}
public APIRequestCreateFeed setExpandedWidth (String expandedWidth) {
this.setParam("expanded_width", expandedWidth);
return this;
}
public APIRequestCreateFeed setReferralId (String referralId) {
this.setParam("referral_id", referralId);
return this;
}
public APIRequestCreateFeed setThumbnail (File thumbnail) {
this.setParam("thumbnail", thumbnail);
return this;
}
public APIRequestCreateFeed setThumbnail (String thumbnail) {
this.setParam("thumbnail", thumbnail);
return this;
}
public APIRequestCreateFeed setImageCrops (Map imageCrops) {
this.setParam("image_crops", imageCrops);
return this;
}
public APIRequestCreateFeed setImageCrops (String imageCrops) {
this.setParam("image_crops", imageCrops);
return this;
}
public APIRequestCreateFeed setCallToAction (Object callToAction) {
this.setParam("call_to_action", callToAction);
return this;
}
public APIRequestCreateFeed setCallToAction (String callToAction) {
this.setParam("call_to_action", callToAction);
return this;
}
public APIRequestCreateFeed setTimeSinceOriginalPost (Long timeSinceOriginalPost) {
this.setParam("time_since_original_post", timeSinceOriginalPost);
return this;
}
public APIRequestCreateFeed setTimeSinceOriginalPost (String timeSinceOriginalPost) {
this.setParam("time_since_original_post", timeSinceOriginalPost);
return this;
}
public APIRequestCreateFeed setClientMutationId (String clientMutationId) {
this.setParam("client_mutation_id", clientMutationId);
return this;
}
public APIRequestCreateFeed setPrivacy (Object privacy) {
this.setParam("privacy", privacy);
return this;
}
public APIRequestCreateFeed setPrivacy (String privacy) {
this.setParam("privacy", privacy);
return this;
}
public APIRequestCreateFeed setComposerSessionId (String composerSessionId) {
this.setParam("composer_session_id", composerSessionId);
return this;
}
public APIRequestCreateFeed setContentAttachment (String contentAttachment) {
this.setParam("content_attachment", contentAttachment);
return this;
}
public APIRequestCreateFeed setActions (Object actions) {
this.setParam("actions", actions);
return this;
}
public APIRequestCreateFeed setActions (String actions) {
this.setParam("actions", actions);
return this;
}
public APIRequestCreateFeed setTargeting (Object targeting) {
this.setParam("targeting", targeting);
return this;
}
public APIRequestCreateFeed setTargeting (String targeting) {
this.setParam("targeting", targeting);
return this;
}
public APIRequestCreateFeed setFeedTargeting (Object feedTargeting) {
this.setParam("feed_targeting", feedTargeting);
return this;
}
public APIRequestCreateFeed setFeedTargeting (String feedTargeting) {
this.setParam("feed_targeting", feedTargeting);
return this;
}
public APIRequestCreateFeed setRef (List ref) {
this.setParam("ref", ref);
return this;
}
public APIRequestCreateFeed setRef (String ref) {
this.setParam("ref", ref);
return this;
}
public APIRequestCreateFeed setTags (List tags) {
this.setParam("tags", tags);
return this;
}
public APIRequestCreateFeed setTags (String tags) {
this.setParam("tags", tags);
return this;
}
public APIRequestCreateFeed setPlace (Object place) {
this.setParam("place", place);
return this;
}
public APIRequestCreateFeed setPlace (String place) {
this.setParam("place", place);
return this;
}
public APIRequestCreateFeed setIsExplicitLocation (Boolean isExplicitLocation) {
this.setParam("is_explicit_location", isExplicitLocation);
return this;
}
public APIRequestCreateFeed setIsExplicitLocation (String isExplicitLocation) {
this.setParam("is_explicit_location", isExplicitLocation);
return this;
}
public APIRequestCreateFeed setOgActionTypeId (String ogActionTypeId) {
this.setParam("og_action_type_id", ogActionTypeId);
return this;
}
public APIRequestCreateFeed setOgObjectId (String ogObjectId) {
this.setParam("og_object_id", ogObjectId);
return this;
}
public APIRequestCreateFeed setOgPhrase (String ogPhrase) {
this.setParam("og_phrase", ogPhrase);
return this;
}
public APIRequestCreateFeed setOgIconId (String ogIconId) {
this.setParam("og_icon_id", ogIconId);
return this;
}
public APIRequestCreateFeed setOgSetProfileBadge (Boolean ogSetProfileBadge) {
this.setParam("og_set_profile_badge", ogSetProfileBadge);
return this;
}
public APIRequestCreateFeed setOgSetProfileBadge (String ogSetProfileBadge) {
this.setParam("og_set_profile_badge", ogSetProfileBadge);
return this;
}
public APIRequestCreateFeed setOgSuggestionMechanism (String ogSuggestionMechanism) {
this.setParam("og_suggestion_mechanism", ogSuggestionMechanism);
return this;
}
public APIRequestCreateFeed setOgHideObjectAttachment (Boolean ogHideObjectAttachment) {
this.setParam("og_hide_object_attachment", ogHideObjectAttachment);
return this;
}
public APIRequestCreateFeed setOgHideObjectAttachment (String ogHideObjectAttachment) {
this.setParam("og_hide_object_attachment", ogHideObjectAttachment);
return this;
}
public APIRequestCreateFeed setBackdatedTime (String backdatedTime) {
this.setParam("backdated_time", backdatedTime);
return this;
}
public APIRequestCreateFeed setBackdatedTimeGranularity (EnumBackdatedTimeGranularity backdatedTimeGranularity) {
this.setParam("backdated_time_granularity", backdatedTimeGranularity);
return this;
}
public APIRequestCreateFeed setBackdatedTimeGranularity (String backdatedTimeGranularity) {
this.setParam("backdated_time_granularity", backdatedTimeGranularity);
return this;
}
public APIRequestCreateFeed setPublished (Boolean published) {
this.setParam("published", published);
return this;
}
public APIRequestCreateFeed setPublished (String published) {
this.setParam("published", published);
return this;
}
public APIRequestCreateFeed setScheduledPublishTime (String scheduledPublishTime) {
this.setParam("scheduled_publish_time", scheduledPublishTime);
return this;
}
public APIRequestCreateFeed setUnpublishedContentType (EnumUnpublishedContentType unpublishedContentType) {
this.setParam("unpublished_content_type", unpublishedContentType);
return this;
}
public APIRequestCreateFeed setUnpublishedContentType (String unpublishedContentType) {
this.setParam("unpublished_content_type", unpublishedContentType);
return this;
}
public APIRequestCreateFeed setApplicationId (String applicationId) {
this.setParam("application_id", applicationId);
return this;
}
public APIRequestCreateFeed setProxiedAppId (String proxiedAppId) {
this.setParam("proxied_app_id", proxiedAppId);
return this;
}
public APIRequestCreateFeed setIosBundleId (String iosBundleId) {
this.setParam("ios_bundle_id", iosBundleId);
return this;
}
public APIRequestCreateFeed setAndroidKeyHash (String androidKeyHash) {
this.setParam("android_key_hash", androidKeyHash);
return this;
}
public APIRequestCreateFeed setUserSelectedTags (Boolean userSelectedTags) {
this.setParam("user_selected_tags", userSelectedTags);
return this;
}
public APIRequestCreateFeed setUserSelectedTags (String userSelectedTags) {
this.setParam("user_selected_tags", userSelectedTags);
return this;
}
public APIRequestCreateFeed setNectarModule (String nectarModule) {
this.setParam("nectar_module", nectarModule);
return this;
}
public APIRequestCreateFeed setManualPrivacy (Boolean manualPrivacy) {
this.setParam("manual_privacy", manualPrivacy);
return this;
}
public APIRequestCreateFeed setManualPrivacy (String manualPrivacy) {
this.setParam("manual_privacy", manualPrivacy);
return this;
}
public APIRequestCreateFeed setAudienceExp (Boolean audienceExp) {
this.setParam("audience_exp", audienceExp);
return this;
}
public APIRequestCreateFeed setAudienceExp (String audienceExp) {
this.setParam("audience_exp", audienceExp);
return this;
}
public APIRequestCreateFeed setCoordinates (Object coordinates) {
this.setParam("coordinates", coordinates);
return this;
}
public APIRequestCreateFeed setCoordinates (String coordinates) {
this.setParam("coordinates", coordinates);
return this;
}
public APIRequestCreateFeed setIsExplicitShare (Boolean isExplicitShare) {
this.setParam("is_explicit_share", isExplicitShare);
return this;
}
public APIRequestCreateFeed setIsExplicitShare (String isExplicitShare) {
this.setParam("is_explicit_share", isExplicitShare);
return this;
}
public APIRequestCreateFeed setIsPhotoContainer (Boolean isPhotoContainer) {
this.setParam("is_photo_container", isPhotoContainer);
return this;
}
public APIRequestCreateFeed setIsPhotoContainer (String isPhotoContainer) {
this.setParam("is_photo_container", isPhotoContainer);
return this;
}
public APIRequestCreateFeed setImplicitWithTags (List implicitWithTags) {
this.setParam("implicit_with_tags", implicitWithTags);
return this;
}
public APIRequestCreateFeed setImplicitWithTags (String implicitWithTags) {
this.setParam("implicit_with_tags", implicitWithTags);
return this;
}
public APIRequestCreateFeed setChildAttachments (List