Class MessageData

java.lang.Object
com.unblu.sdk.core.model.MessageData
Direct Known Subclasses:
FileMessageData, TextMessageData

public class MessageData extends Object
Represents the message data object containing the general data for text or file-based messages.
  • Field Details

    • fallbackText

      public final @NonNull String fallbackText
      The fallback text of the message.
    • locale

      public @Nullable String locale
      The language of the message, expressed as a locale string (e.g., "en-US"). If not set, the service attempts to detect the language from the message text, but only if automatic language detection is enabled. If auto-detection is disabled, the locale remains null, no language is set for the message, and the message isn't translated.
    • internal

      public @Nullable Boolean internal
      A flag whether a message is internal or not. For visitors, this flag is always false, as they can't send internal messages.
  • Constructor Details

    • MessageData

      protected MessageData(@NonNull com.unblu.sdk.core.internal.model.EMessageType type, @NonNull String fallbackText)