FeatureStringMessage

@Serializable
data class FeatureStringMessage(val message: String) : FeatureMessage(source)

Represents a detailed implementation of FeatureMessage that encapsulates a string message.

This class associates a string content with a specific feature-related message type, along with a timestamp indicating when the message was created. It is primarily utilized for text-based feature messages and integrates with the FeatureMessage interface to define its structure.

Instances of this type are timestamped at the moment of their creation, ensuring consistent temporal tracking for feature messages.

Constructors

Link copied to clipboard
constructor(message: String)

Properties

Link copied to clipboard

The textual message content encapsulated by this feature message.

Link copied to clipboard
open override val messageType: FeatureMessage.Type

Represents the type of the feature message, identifying the message's purpose or category.

Link copied to clipboard
open override val timestamp: Long

The timestamp, represented in milliseconds since the epoch, indicating when the feature message was created.