Package com.mypurecloud.sdk.v2.model
Class AppEventRequest
java.lang.Object
com.mypurecloud.sdk.v2.model.AppEventRequest
- All Implemented Interfaces:
Serializable
AppEventRequest
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapp(JourneyApp app) Application that the customer is interacting with.attributes(Map<String, CustomEventAttribute> attributes) User-defined attributes associated with a particular event.createdDate(Date createdDate) UTC timestamp indicating when the event actually took place, events older than an hour will be rejected.customerCookieId(String customerCookieId) A UUID representing the customer associated with the app event.device(RequestDevice device) Customer's device.booleanRepresents the action the customer performed.externalId(String externalId) An external identifier for the customer.getApp()inthashCode()networkConnectivity(NetworkConnectivity networkConnectivity) Information relating to the device's network connectivity.referrerUrl(String referrerUrl) The referrer URL of the first event in the app session.screenName(String screenName) The name of the screen, view, or fragment in the app where the event took place.sdkLibrary(SdkLibrary sdkLibrary) SDK library used to generate the event.searchQuery(String searchQuery) Represents the keywords in a customer search query.voidsetApp(JourneyApp app) voidsetAttributes(Map<String, CustomEventAttribute> attributes) voidsetCreatedDate(Date createdDate) voidsetCustomerCookieId(String customerCookieId) voidsetDevice(RequestDevice device) voidsetEventName(String eventName) voidsetExternalId(String externalId) voidsetNetworkConnectivity(NetworkConnectivity networkConnectivity) voidsetReferrerUrl(String referrerUrl) voidsetScreenName(String screenName) voidsetSdkLibrary(SdkLibrary sdkLibrary) voidsetSearchQuery(String searchQuery) voidsetTraits(Map<String, CustomEventAttribute> traits) toString()traits(Map<String, CustomEventAttribute> traits) Traits are attributes intrinsic to the customer that may be sent in selected events, (e.g. email, givenName, cellPhone).
-
Constructor Details
-
AppEventRequest
public AppEventRequest() -
AppEventRequest
-
-
Method Details
-
eventName
Represents the action the customer performed. Event types are created for each unique event name and can be faceted on in segment and outcome conditions. A valid event name must only contain alphanumeric characters and underscores. A good event name is typically an object followed by the action performed in past tense, e.g. screen_viewed, search_performed, user_registered. -
getEventName
-
setEventName
-
screenName
The name of the screen, view, or fragment in the app where the event took place. -
getScreenName
-
setScreenName
-
app
Application that the customer is interacting with. -
getApp
-
setApp
-
device
Customer's device. -
getDevice
-
setDevice
-
sdkLibrary
SDK library used to generate the event. -
getSdkLibrary
-
setSdkLibrary
-
networkConnectivity
Information relating to the device's network connectivity. -
getNetworkConnectivity
-
setNetworkConnectivity
-
referrerUrl
The referrer URL of the first event in the app session. -
getReferrerUrl
-
setReferrerUrl
-
searchQuery
Represents the keywords in a customer search query. -
getSearchQuery
-
setSearchQuery
-
attributes
User-defined attributes associated with a particular event. These attributes provide additional context about the event. For example, items_in_cart or subscription_level. -
getAttributes
-
setAttributes
-
traits
Traits are attributes intrinsic to the customer that may be sent in selected events, (e.g. email, givenName, cellPhone). Traits are used to collect information for identity resolution. For example, the same person might be using an application on different devices which might create two sessions with different customerIds. Additional information can be provided as traits to help link those two sessions and customers to a single external contact through common identifiers that were submitted via a form fill, message, or other input in both sessions. -
getTraits
-
setTraits
-
externalId
An external identifier for the customer. -
getExternalId
-
setExternalId
-
customerCookieId
A UUID representing the customer associated with the app event. This is expected to be set per application install or device and can be used to identify a single customer across multiple sessions. This identifier, along with others passed as traits, is used for identity resolution. -
getCustomerCookieId
-
setCustomerCookieId
-
createdDate
UTC timestamp indicating when the event actually took place, events older than an hour will be rejected. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss[.mmm]Z -
getCreatedDate
-
setCreatedDate
-
equals
-
hashCode
public int hashCode() -
toString
-