Class UiVisibilityRequestModel

java.lang.Object
com.unblu.sdk.core.model.UiVisibilityRequestModel

public class UiVisibilityRequestModel extends Object
Encapsulates a request to change the visibility of the Unblu UI component within the app. This model holds information about the reason for the visibility change request, the ID of the associated conversation (if any), and whether the request was initiated by a user action. It provides a structured way to manage and convey requests for showing or hiding the Unblu UI, facilitating the application's ability to respond appropriately based on the context of the request.
  • Constructor Details

    • UiVisibilityRequestModel

      public UiVisibilityRequestModel(UnbluUiRequestReason reason, String conversationId, boolean requestedByUser)
      Constructs a new UiVisibilityRequestModel with the specified parameters for the visibility change request.
      Parameters:
      reason - The reason for the visibility change, categorized by UnbluUiRequestReason.
      conversationId - The ID of the conversation related to the visibility change request, or null if not applicable.
      requestedByUser - A boolean flag indicating whether the request was initiated by a user action (true) or not (false).
  • Method Details

    • getReason

      public UnbluUiRequestReason getReason()
      Returns the reason for the visibility change request.
      Returns:
      The reason for requesting a change in the UI's visibility, as defined by UnbluUiRequestReason.
    • getConversationId

      public String getConversationId()
      Returns the ID of the conversation associated with the visibility change request.
      Returns:
      The conversation ID related to the request, or null if the request is not associated with a specific conversation.
    • isRequestedByUser

      public boolean isRequestedByUser()
      Indicates whether the visibility change request was initiated by a user.
      Returns:
      true if the request was initiated by the user, false otherwise.