# Class SmartReplyMessage

java.lang.Object
com.codename1.ai.language.SmartReplyMessage

public final class SmartReplyMessage extends Object
One message supplied to the on-device smart-reply model.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `SmartReplyMessage(String text, String participantId, boolean localUser, long timestampMillis)`
  Creates one conversation turn used to generate reply suggestions.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `String`
  `getParticipantId()`
  `String`
  `getText()`
  `long`
  `getTimestampMillis()`
  `boolean`
  `isLocalUser()`

  ### Methods inherited from class Object

  `clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### SmartReplyMessage

    public SmartReplyMessage(String text, String participantId, boolean localUser, long timestampMillis)
    Creates one conversation turn used to generate reply suggestions.
    Parameters:
      `text` - message body; `null` becomes an empty string
      `participantId` - stable speaker id used to group conversation turns; `null` becomes `"remote"`
      `localUser` - whether this message was written by the current user
      `timestampMillis` - message time in Unix epoch milliseconds

- ## Method Details

  - ### getText

    public String getText()
    Returns:
      message text supplied to the local model

  - ### getParticipantId

    public String getParticipantId()
    Returns:
      stable participant identifier used to group remote speakers, never `null`

  - ### isLocalUser

    public boolean isLocalUser()
    Returns:
      whether this message was authored by the device user

  - ### getTimestampMillis

    public long getTimestampMillis()
    Returns:
      conversation timestamp in milliseconds since the epoch