DirectMessage

data class DirectMessage(val from: Long = 0, val to: Long = 0, val message: String = "", val extraData: String = "", val timestamp: String = "", val timestampMillis: Long = 0)

1:1 메시지 객체
Direct message object


korean

1:1 메시지 정보는 DirectMessageListener.onDirectMessage 이벤트를 통해 전달된다.


english

The direct message information is delivered through the DirectMessageListener.onDirectMessage event.

Constructors

Link copied to clipboard
constructor(from: Long = 0, to: Long = 0, message: String = "", extraData: String = "", timestamp: String = "", timestampMillis: Long = 0)

Properties

Link copied to clipboard

Message extra data. Up to 256 Bytes (based on UTF-8)

Link copied to clipboard
val from: Long = 0

message sender player id

Link copied to clipboard

message content

Link copied to clipboard

the timestamp when the message was sent (UTC+0, in the format yyyy-MM-dd'T'HH:mm:ss.SSSZ)

Link copied to clipboard

the unix-timestamp when the message was sent (milliseconds)

Link copied to clipboard
val to: Long = 0

receiving user (player id)

Functions

Link copied to clipboard