S2CMessagePacket

data class S2CMessagePacket(val id: String, val user: AxoUser, val content: String) : AxochatPacket.S2C

This packet will be sent to every authenticated client if another client successfully sent a message to the server.

Parameters

id

author_id is an ID.

user

author_info is optional and described in detail in UserInfo.

content

content is any message fitting the validation scheme of the server.

Constructors

Link copied to clipboard
constructor(id: String, user: AxoUser, content: String)

Properties

Link copied to clipboard
@SerializedName(value = "content")
val content: String
Link copied to clipboard
@SerializedName(value = "author_id")
val id: String
Link copied to clipboard
@SerializedName(value = "author_info")
val user: AxoUser