Package com.unblu.sdk.core.model
Class MessageData
java.lang.Object
com.unblu.sdk.core.model.MessageData
- Direct Known Subclasses:
FileMessageData,TextMessageData
Represents the message data object containing the general data for text or file-based messages.
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedMessageData(@NonNull com.unblu.sdk.core.internal.model.EMessageType type, @NonNull String fallbackText) -
Method Summary
-
Field Details
-
fallbackText
The fallback text of the message. -
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
A flag whether a message is internal or not. For visitors, this flag is alwaysfalse, as they can't send internal messages.
-
-
Constructor Details
-
MessageData
protected MessageData(@NonNull com.unblu.sdk.core.internal.model.EMessageType type, @NonNull String fallbackText)
-