Package com.mypurecloud.sdk.v2.model
Class Session
java.lang.Object
com.mypurecloud.sdk.v2.model.Session
- All Implemented Interfaces:
Serializable
Session
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumLast ACD outcome for the conversation.static enumDisconnect reason for the last user connected to the conversation.static enumThe original direction of the conversation. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapp(JourneyApp app) Application that the customer is interacting with (for app sessions).attributeLists(Map<String, CustomEventAttributeList> attributeLists) List-type attributes projected from the session's event stream.attributes(Map<String, CustomEventAttribute> attributes) Attributes projected from the session's event stream.authenticated(Boolean authenticated) Indicates whether or not the session is authenticated.Timestamp indicating when the visitor should be considered as away.Customer's browser.conversationChannels(List<ConversationChannel> conversationChannels) Represents the channels used for this conversation.conversationSubject(String conversationSubject) The subject for the conversation, for example an email subject.createdDate(Date createdDate) Timestamp indicating when the session was created.customerId(String customerId) Primary identifier of the customer in the source where the events for the session originate from.customerIdType(String customerIdType) Type of source customer identifier (e.g.Customer's device.durationInSeconds(Integer durationInSeconds) Indicates how long the session has been active (valid for an individual device).Timestamp indicating when the session was ended.booleaneventCount(Integer eventCount) The count of all events performed during the session.externalId(String externalId) Unique identifier in the external system where the events for the session originate from.externalUrl(String externalUrl) A URL that identifies an external system-of-record resource that may have more detailed information on the session.geolocation(JourneyGeolocation geolocation) Customer's geolocation.getApp()getId()getType()inthashCode()The ID of the session.Timestamp indicating when the visitor should be considered as idle.Customer's IP address.ipOrganization(String ipOrganization) Customer's IP-based organization or ISP name.lastAcdOutcome(Session.LastAcdOutcomeEnum lastAcdOutcome) Last ACD outcome for the conversation.lastConnectedQueue(ConnectedQueue lastConnectedQueue) The last queue connected to this session.lastConnectedUser(ConnectedUser lastConnectedUser) The last user connected to this session.lastEvent(SessionLastEvent lastEvent) Information about the most recent event in this session.lastPage(JourneyPage lastPage) The webpage where the customer's last web interaction occurred.lastUserDisconnectType(Session.LastUserDisconnectTypeEnum lastUserDisconnectType) Disconnect reason for the last user connected to the conversation.lastUserDisposition(ConversationUserDisposition lastUserDisposition) The last user disposition connected to this session.mktCampaign(JourneyCampaign mktCampaign) Marketing / traffic source information.networkConnectivity(NetworkConnectivity networkConnectivity) Information relating to the device's network connectivity (for app sessions).originatingDirection(Session.OriginatingDirectionEnum originatingDirection) The original direction of the conversation.outcomeAchievements(List<OutcomeAchievement> outcomeAchievements) List of the outcome achievements by the customer in this session.pageviewCount(Integer pageviewCount) The count of all pageviews performed during the session.Identifies the page URL that originally generated the request for the current page being viewed.screenviewCount(Integer screenviewCount) The count of all screenviews performed during the session.sdkLibrary(SdkLibrary sdkLibrary) SDK library used to generate the events for the session (for app and web sessions).searchTerms(List<String> searchTerms) Search terms associated with the session.segmentAssignments(List<SessionSegmentAssignment> segmentAssignments) List of the segment assignments to the customer in this session.voidsetApp(JourneyApp app) voidsetAttributeLists(Map<String, CustomEventAttributeList> attributeLists) voidsetAttributes(Map<String, CustomEventAttribute> attributes) voidsetAuthenticated(Boolean authenticated) voidsetAwayDate(Date awayDate) voidsetBrowser(Browser browser) voidsetConversationChannels(List<ConversationChannel> conversationChannels) voidsetConversationSubject(String conversationSubject) voidsetCreatedDate(Date createdDate) voidsetCustomerId(String customerId) voidsetCustomerIdType(String customerIdType) voidvoidsetDurationInSeconds(Integer durationInSeconds) voidsetEndedDate(Date endedDate) voidsetEventCount(Integer eventCount) voidsetExternalId(String externalId) voidsetExternalUrl(String externalUrl) voidsetGeolocation(JourneyGeolocation geolocation) voidvoidsetIdleDate(Date idleDate) voidsetIpAddress(String ipAddress) voidsetIpOrganization(String ipOrganization) voidsetLastAcdOutcome(Session.LastAcdOutcomeEnum lastAcdOutcome) voidsetLastConnectedQueue(ConnectedQueue lastConnectedQueue) voidsetLastConnectedUser(ConnectedUser lastConnectedUser) voidsetLastEvent(SessionLastEvent lastEvent) voidsetLastPage(JourneyPage lastPage) voidsetLastUserDisconnectType(Session.LastUserDisconnectTypeEnum lastUserDisconnectType) voidsetLastUserDisposition(ConversationUserDisposition lastUserDisposition) voidsetMktCampaign(JourneyCampaign mktCampaign) voidsetNetworkConnectivity(NetworkConnectivity networkConnectivity) voidsetOriginatingDirection(Session.OriginatingDirectionEnum originatingDirection) voidsetOutcomeAchievements(List<OutcomeAchievement> outcomeAchievements) voidsetPageviewCount(Integer pageviewCount) voidsetReferrer(Referrer referrer) voidsetScreenviewCount(Integer screenviewCount) voidsetSdkLibrary(SdkLibrary sdkLibrary) voidsetSearchTerms(List<String> searchTerms) voidsetSegmentAssignments(List<SessionSegmentAssignment> segmentAssignments) voidsetShortId(String shortId) voidvoidsetUserAgentString(String userAgentString) Shortened numeric identifier of 4-6 digits.toString()Session types indicate the type or category of sessions (e.g.userAgentString(String userAgentString) String identifying the user agent.
-
Constructor Details
-
Session
public Session()
-
-
Method Details
-
id
The ID of the session. -
getId
-
setId
-
customerId
Primary identifier of the customer in the source where the events for the session originate from. -
getCustomerId
-
setCustomerId
-
customerIdType
Type of source customer identifier (e.g. cookie, email, phone). -
getCustomerIdType
-
setCustomerIdType
-
type
Session types indicate the type or category of sessions (e.g. web, app). -
getType
-
setType
-
externalId
Unique identifier in the external system where the events for the session originate from. -
getExternalId
-
setExternalId
-
externalUrl
A URL that identifies an external system-of-record resource that may have more detailed information on the session. -
getExternalUrl
-
setExternalUrl
-
shortId
Shortened numeric identifier of 4-6 digits. -
getShortId
-
setShortId
-
outcomeAchievements
List of the outcome achievements by the customer in this session. -
getOutcomeAchievements
-
setOutcomeAchievements
-
segmentAssignments
List of the segment assignments to the customer in this session. -
getSegmentAssignments
-
setSegmentAssignments
-
attributes
Attributes projected from the session's event stream. -
getAttributes
-
setAttributes
-
attributeLists
List-type attributes projected from the session's event stream. -
getAttributeLists
-
setAttributeLists
-
browser
Customer's browser. -
getBrowser
-
setBrowser
-
device
Customer's device. -
getDevice
-
setDevice
-
geolocation
Customer's geolocation. -
getGeolocation
-
setGeolocation
-
ipAddress
Customer's IP address. -
getIpAddress
-
setIpAddress
-
ipOrganization
Customer's IP-based organization or ISP name. -
getIpOrganization
-
setIpOrganization
-
lastPage
The webpage where the customer's last web interaction occurred. -
getLastPage
-
setLastPage
-
mktCampaign
Marketing / traffic source information. -
getMktCampaign
-
setMktCampaign
-
referrer
Identifies the page URL that originally generated the request for the current page being viewed. -
getReferrer
-
setReferrer
-
app
Application that the customer is interacting with (for app sessions). -
getApp
-
setApp
-
sdkLibrary
SDK library used to generate the events for the session (for app and web sessions). -
getSdkLibrary
-
setSdkLibrary
-
networkConnectivity
Information relating to the device's network connectivity (for app sessions). -
getNetworkConnectivity
-
setNetworkConnectivity
-
searchTerms
Search terms associated with the session. -
getSearchTerms
-
setSearchTerms
-
userAgentString
String identifying the user agent. -
getUserAgentString
-
setUserAgentString
-
durationInSeconds
Indicates how long the session has been active (valid for an individual device). -
getDurationInSeconds
-
setDurationInSeconds
-
eventCount
The count of all events performed during the session. -
getEventCount
-
setEventCount
-
pageviewCount
The count of all pageviews performed during the session. -
getPageviewCount
-
setPageviewCount
-
screenviewCount
The count of all screenviews performed during the session. -
getScreenviewCount
-
setScreenviewCount
-
lastEvent
Information about the most recent event in this session. -
getLastEvent
-
setLastEvent
-
lastConnectedQueue
The last queue connected to this session. -
getLastConnectedQueue
-
setLastConnectedQueue
-
lastConnectedUser
The last user connected to this session. -
getLastConnectedUser
-
setLastConnectedUser
-
lastUserDisposition
The last user disposition connected to this session. -
getLastUserDisposition
-
setLastUserDisposition
-
conversationChannels
Represents the channels used for this conversation. -
getConversationChannels
-
setConversationChannels
-
originatingDirection
The original direction of the conversation. -
getOriginatingDirection
-
setOriginatingDirection
-
conversationSubject
The subject for the conversation, for example an email subject. -
getConversationSubject
-
setConversationSubject
-
lastUserDisconnectType
Disconnect reason for the last user connected to the conversation. -
getLastUserDisconnectType
-
setLastUserDisconnectType
-
lastAcdOutcome
Last ACD outcome for the conversation. -
getLastAcdOutcome
-
setLastAcdOutcome
-
authenticated
Indicates whether or not the session is authenticated. -
getAuthenticated
-
setAuthenticated
-
getSelfUri
-
createdDate
Timestamp indicating when the session was created. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss[.mmm]Z -
getCreatedDate
-
setCreatedDate
-
endedDate
Timestamp indicating when the session was ended. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss[.mmm]Z -
getEndedDate
-
setEndedDate
-
getExternalContact
-
awayDate
Timestamp indicating when the visitor should be considered as away. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss[.mmm]Z -
getAwayDate
-
setAwayDate
-
idleDate
Timestamp indicating when the visitor should be considered as idle. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss[.mmm]Z -
getIdleDate
-
setIdleDate
-
getConversation
-
equals
-
hashCode
public int hashCode() -
toString
-