Package com.unblu.sdk.core.model
Class UiHideRequestModel
java.lang.Object
com.unblu.sdk.core.model.UiHideRequestModel
Represents a model for requesting the hiding of the Unblu UI component.
It is used within the Unblu system to communicate UI hide requests, allowing for a structured approach to handling
such requests based on the reason provided and the context of the conversation, if applicable.
-
Constructor Summary
ConstructorsConstructorDescriptionUiHideRequestModel
(UnbluUiHideRequestReason hideReason, String conversationId) Constructs a new instance of UiHideRequestModel with a specific hide reason and conversation ID. -
Method Summary
Modifier and TypeMethodDescriptionstatic UiHideRequestModel
A static method that creates a new instance of UiHideRequestModel for a UI hide request initiated by user interaction.Returns the ID of the conversation associated with the UI hide request, if any.Returns the reason for the UI hide request.
-
Constructor Details
-
UiHideRequestModel
Constructs a new instance of UiHideRequestModel with a specific hide reason and conversation ID.- Parameters:
hideReason
- The reason for requesting to hide the UI, as defined byUnbluUiHideRequestReason
.conversationId
- The ID of the conversation associated with the hide request, or null if not applicable.
-
-
Method Details
-
getHideReason
Returns the reason for the UI hide request.- Returns:
- The reason for hiding the UI, as specified by the
UnbluUiHideRequestReason
.
-
getConversationId
Returns the ID of the conversation associated with the UI hide request, if any.- Returns:
- The conversation ID related to the hide request, or null if the request is not associated with a specific conversation.
-
createOnUserInteraction
A static method that creates a new instance of UiHideRequestModel for a UI hide request initiated by user interaction. It usesUnbluUiHideRequestReason.REQUESTED_BY_USER
as the hide reason and does not associate the request with a conversation.- Returns:
- A new instance of UiHideRequestModel for a user-initiated hide request.
-