public interface ChatRoomParams
ChatRoom
. Core.createDefaultChatRoomParams()
. You can useisValid()
to check if your configuration is valid or not.ChatRoom
backend is ChatRoomBackend.Basic
, then no otherChatMessage
sent and received won't benefitChatRoomBackend.FlexisipChat
can offer likeModifier and Type | Method and Description |
---|---|
ChatRoomBackend |
getBackend()
Get the backend implementation of the chat room associated with the given
parameters. |
ChatRoomEncryptionBackend |
getEncryptionBackend()
Get the encryption implementation of the chat room associated with the given
parameters. |
long |
getEphemeralLifetime()
Get lifetime (in seconds) for all new ephemeral messages in the chat room.
|
ChatRoomEphemeralMode |
getEphemeralMode()
Get the ephemeral message mode of the chat room associated with the given
parameters. |
long |
getNativePointer()
Gets the native pointer used by this class to make native method calls.
|
java.lang.String |
getSubject()
Get the subject of the chat room.
|
java.lang.Object |
getUserData()
Gets the object stored in this object user's data
|
boolean |
isEncryptionEnabled()
Get the encryption status of the chat room associated with the given
parameters. |
boolean |
isGroupEnabled()
Get the group chat status of the chat room associated with the given
parameters. |
boolean |
isRttEnabled()
Get the real time text status of the chat room associated with the given
parameters. |
boolean |
isValid()
Returns whether the given parameters are valid or not.
|
void |
setBackend(ChatRoomBackend backend)
Set the backend implementation of these chat room parameters.
|
void |
setEncryptionBackend(ChatRoomEncryptionBackend backend)
Set the encryption backend implementation of these chat room parameters.
|
void |
setEncryptionEnabled(boolean encrypted)
Enables or disables encryption for the chat room associated with the given
parameters. |
void |
setEphemeralLifetime(long time)
Set lifetime (in seconds) for all new ephemral messages in the chat room.
|
void |
setEphemeralMode(ChatRoomEphemeralMode mode)
Enables or disables forcing of ephemeral messages for the chat room associated
with the given parameters. |
void |
setGroupEnabled(boolean group)
Enables or disables group chat for the chat room associated with the given
parameters. |
void |
setRttEnabled(boolean rtt)
Enables or disables real time text for the chat room associated with the given
parameters. |
void |
setSubject(java.lang.String subject)
Set the subject of the chat room.
|
void |
setUserData(java.lang.Object data)
Sets the object to store in this object user's data
|
java.lang.String |
toString() |
ChatRoomBackend getBackend()
ChatRoomBackend
void setBackend(ChatRoomBackend backend)
backend
- The ChatRoomBackend
enum value ChatRoomEncryptionBackend getEncryptionBackend()
ChatRoomEncryptionBackend
void setEncryptionBackend(ChatRoomEncryptionBackend backend)
backend
- The ChatRoomEncryptionBackend
enum value boolean isEncryptionEnabled()
void setEncryptionEnabled(boolean encrypted)
long getEphemeralLifetime()
void setEphemeralLifetime(long time)
time
- The ephemeral lifetime, default is disabled (0) ChatRoomEphemeralMode getEphemeralMode()
ChatRoomEphemeralMode
void setEphemeralMode(ChatRoomEphemeralMode mode)
mode
- Ephemeral message mode ChatRoomEphemeralMode
. boolean isGroupEnabled()
void setGroupEnabled(boolean group)
boolean isValid()
boolean isRttEnabled()
void setRttEnabled(boolean rtt)
@Nullable java.lang.String getSubject()
void setSubject(@Nullable java.lang.String subject)
subject
- The subject to set. void setUserData(java.lang.Object data)
data
- the object to storejava.lang.Object getUserData()
long getNativePointer()
java.lang.String toString()
toString
in class java.lang.Object