public class EventRequest extends Object
| Constructor and Description |
|---|
EventRequest(String pageId,
APIContext context)
Constructor.
|
EventRequest(String pageId,
APIContext context,
List<Event> data,
String partnerAgent)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
EventRequest |
data(List<Event> data)
Set a list of Business Data Event objects
|
EventResponse |
execute()
Synchronously send Event to Facebook GraphAPI.
|
List<Event> |
getData()
A list of Business Data Event objects
|
com.google.gson.Gson |
getGson() |
String |
getPartnerAgent()
A value that represents the platform that is sending the event.
|
EventRequest |
partnerAgent(String partnerAgent)
Sets a value that represents the platform that is sending the event.
|
void |
setData(List<Event> data)
Set a list of Business Data Event objects
|
void |
setPartnerAgent(String partnerAgent)
Set a value that represents the platform that is sending the event.
|
public EventRequest(String pageId, APIContext context)
pageId - Ad pixel idcontext - Api contextpublic EventRequest(String pageId, APIContext context, List<Event> data, String partnerAgent)
pageId - Page idcontext - Api contextdata - list of eventpartnerAgent - A value that represents the platform that is sending the
eventpublic com.google.gson.Gson getGson()
public EventRequest data(List<Event> data)
data - list of Server Eventpublic void setData(List<Event> data)
data - list of Business Data Eventpublic EventRequest partnerAgent(String partnerAgent)
partnerAgent - a value that represents the platform that is sending the
eventpublic String getPartnerAgent()
public void setPartnerAgent(String partnerAgent)
partnerAgent - a value that represents the platform that is sending the
eventpublic EventResponse execute() throws APIException
APIException - Api ExceptionCopyright © 2024. All rights reserved.