Package com.longbridge.agent
Class OtherEvent
- java.lang.Object
-
- com.longbridge.agent.ConversationStreamEvent
-
- com.longbridge.agent.OtherEvent
-
public final class OtherEvent extends ConversationStreamEvent
An event type not recognized by this SDK version, carried as raw JSON text so callers aren't broken by future additions to the API.
-
-
Constructor Summary
Constructors Constructor Description OtherEvent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetEvent()Returns the SSE envelope'seventfield (the event type name) of whatever event type this SDK version doesn't yet recognize as one of the otherConversationStreamEventsubclasses (see its class documentation for the full list).StringgetJson()Returns the raw event payload as JSON text.StringtoString()
-
-
-
Method Detail
-
getEvent
public String getEvent()
Returns the SSE envelope'seventfield (the event type name) of whatever event type this SDK version doesn't yet recognize as one of the otherConversationStreamEventsubclasses (see its class documentation for the full list).- Returns:
- event type name
-
getJson
public String getJson()
Returns the raw event payload as JSON text.- Returns:
- raw event payload (JSON text)
-
-