P2PMessage

@Serializable
data class P2PMessage(    val from: String?,     val to: String?,     val text: String?,     val timeStamp: Long?,     @BsonId val id: String = ObjectId().toString())

Represents a peer-to-peer message.

Parameters

from

the sender of the message.

to

the recipient of the message.

text

the content of the message.

timeStamp

the timestamp of the message.

id

the unique identifier of the message.

Constructors

Link copied to clipboard
constructor(    from: String?,     to: String?,     text: String?,     timeStamp: Long?,     @BsonId id: String = ObjectId().toString())

Properties

Link copied to clipboard
val from: String?
Link copied to clipboard
val id: String
Link copied to clipboard
val text: String?
Link copied to clipboard
Link copied to clipboard
val to: String?