Package com.relaypro.sdk.types
Class InteractionLifecycleEvent
- java.lang.Object
-
- com.relaypro.sdk.types.InteractionLifecycleEvent
-
public class InteractionLifecycleEvent extends java.lang.ObjectAn interaction lifecycle event has occurred. This could indicate that an interaction has started, resumed, been suspended, ended, or failed.
-
-
Constructor Summary
Constructors Constructor Description InteractionLifecycleEvent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisTypeEnded()Returns whether the InteractionLifecycleEvent has a type of "ended".booleanisTypeResumed()Returns whether the InteractionLifecycleEvent has a type of "resumed".booleanisTypeStarted()Returns whether the InteractionLifecycleEvent has a type of "started".booleanisTypeSuspended()Returns whether the InteractionLifecycleEvent has a type of "suspended".
-
-
-
Field Detail
-
type
@SerializedName("type") public java.lang.String typeCan be either "started", "resumed", "suspended", "ended" or "failed".
-
reason
@SerializedName("reason") public java.lang.String reasonOnly set if type is "failed". Reason for failure.
-
sourceUri
@SerializedName("source_uri") public java.lang.String sourceUriThe interaction URN.
-
-
Method Detail
-
isTypeStarted
public boolean isTypeStarted()
Returns whether the InteractionLifecycleEvent has a type of "started".- Returns:
- true if the type is "started", false otherwise.
-
isTypeEnded
public boolean isTypeEnded()
Returns whether the InteractionLifecycleEvent has a type of "ended".- Returns:
- true if the type is "ended", false otherwise.
-
isTypeResumed
public boolean isTypeResumed()
Returns whether the InteractionLifecycleEvent has a type of "resumed".- Returns:
- true if the type is "resumed", false otherwise.
-
isTypeSuspended
public boolean isTypeSuspended()
Returns whether the InteractionLifecycleEvent has a type of "suspended".- Returns:
- true if the type is "suspended", false otherwise.
-
-