Class ToDeviceMessageContent
- java.lang.Object
-
- io.github.ma1uta.matrix.server.model.federation.edu.content.ToDeviceMessageContent
-
- All Implemented Interfaces:
EphemeralDataUnitContent
public class ToDeviceMessageContent extends Object implements EphemeralDataUnitContent
Direct device message content.
-
-
Constructor Summary
Constructors Constructor Description ToDeviceMessageContent()
-
Method Summary
Modifier and Type Method Description String
getMessageId()
Map<String,Map<String,RoomMessageContent>>
getMessages()
String
getSender()
String
getType()
void
setMessageId(String messageId)
void
setMessages(Map<String,Map<String,RoomMessageContent>> messages)
void
setSender(String sender)
void
setType(String type)
-
-
-
Field Detail
-
sender
private String sender
Required. User ID of the sender.
-
type
private String type
Required. Event type for the message.
-
messageId
private String messageId
Required. Unique ID for the message, used for idempotence. Arbitrary utf8 string, of maximum length 32 codepoints.
-
messages
private Map<String,Map<String,RoomMessageContent>> messages
Required. The contents of the messages to be sent. These are arranged in a map of user IDs to a map of device IDs to message bodies. The device ID may also be *, meaning all known devices for the user.
-
-
Method Detail
-
getSender
public String getSender()
-
setSender
public void setSender(String sender)
-
getType
public String getType()
-
setType
public void setType(String type)
-
getMessageId
public String getMessageId()
-
setMessageId
public void setMessageId(String messageId)
-
getMessages
public Map<String,Map<String,RoomMessageContent>> getMessages()
-
setMessages
public void setMessages(Map<String,Map<String,RoomMessageContent>> messages)
-
-