Class UiHideRequestModel


  • public class UiHideRequestModel
    extends java.lang.Object
    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 Detail

      • UiHideRequestModel

        public UiHideRequestModel​(UnbluUiHideRequestReason hideReason,
                                  java.lang.String conversationId)
        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 by UnbluUiHideRequestReason.
        conversationId - The ID of the conversation associated with the hide request, or null if not applicable.
    • Method Detail

      • getConversationId

        @Nullable
        public java.lang.String 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

        public static UiHideRequestModel createOnUserInteraction()
        A static method that creates a new instance of UiHideRequestModel for a UI hide request initiated by user interaction. It uses UnbluUiHideRequestReason.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.