public class EnterChatRoomData
extends java.lang.Object
Constructor and Description |
---|
EnterChatRoomData(java.lang.String roomId) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAccount()
Get the user account in independent login mode
|
AntiSpamConfig |
getAntiSpamConfig() |
java.lang.String |
getAppKey()
Get the AppKey of a chat room
|
java.lang.String |
getAvatar()
Get the avatar in a chat room
|
ChatRoomAuthProvider |
getChatRoomAuthProvider() |
ChatRoomSpatialLocation |
getChatRoomSpatialLocation() |
java.util.Map<java.lang.String,java.lang.Object> |
getExtension()
Get the extension field after joining a chat room
|
ChatRoomIndependentCallback |
getIndependentModeCallback() |
java.lang.Integer |
getLoginAuthType()
Get the authentication type.
|
java.lang.String |
getLoginExt()
Get the custom field for login
|
java.lang.String |
getNick()
Get the nick name in a chat room
|
java.util.Map<java.lang.String,java.lang.Object> |
getNotifyExtension()
Get the extension field for notification in a chat room
|
java.lang.String |
getNotifyTargetTags()
Get target tags for login and logout notifications
|
java.lang.String |
getRoomId()
Get the chat room ID
|
java.lang.String |
getTags()
Get the login tags
|
java.lang.String |
getToken()
Get the login token in independent login mode
|
boolean |
isAnonymousMode() |
boolean |
isIndependentMode()
Check whether it is an independent login
|
boolean |
isValid() |
void |
setAntiSpamConfig(AntiSpamConfig antiSpamConfig) |
void |
setAppKey(java.lang.String appKey)
Set the chat room AppKey, only enabled in independent login mode.
|
void |
setAvatar(java.lang.String avatar)
Set the avatar in a chat room
|
void |
setChatRoomAuthProvider(ChatRoomAuthProvider chatRoomAuthProvider) |
void |
setChatRoomSpatialLocation(ChatRoomSpatialLocation chatRoomSpatialLocation) |
void |
setExtension(java.util.Map<java.lang.String,java.lang.Object> extension)
Set the extension field displayed after joining a chat room.
|
void |
setIndependentMode(ChatRoomIndependentCallback cb,
java.lang.String account,
java.lang.String token)
Set an independent login mode for chat rooms
|
void |
setIndependentMode(ChatRoomIndependentCallback cb,
java.lang.String account,
java.lang.String token,
boolean isAnonymousMode)
Set an independent login mode for chat rooms
|
void |
setLoginAuthType(java.lang.Integer loginAuthType)
Set the authentication type
|
void |
setLoginExt(java.lang.String loginExt)
Set a custom field for login
|
void |
setNick(java.lang.String nick)
Set the nick name in a chat room.
|
void |
setNotifyExtension(java.util.Map<java.lang.String,java.lang.Object> notifyExtension)
Set the extension field for notifications after joining a chat room.
|
void |
setNotifyTargetTags(java.lang.String notifyTargetTags)
Set target tags for login and logout notifications
|
void |
setRoomId(java.lang.String roomId)
Set a chat room ID
|
void |
setTags(java.lang.String tags)
Set login tags
|
public java.lang.String getRoomId()
public void setRoomId(java.lang.String roomId)
roomId
- public java.lang.String getAppKey()
public void setAppKey(java.lang.String appKey)
appKey
- public java.lang.String getNick()
public void setNick(java.lang.String nick)
nick
- public java.lang.String getAvatar()
public void setAvatar(java.lang.String avatar)
avatar
- public java.util.Map<java.lang.String,java.lang.Object> getExtension()
public void setExtension(java.util.Map<java.lang.String,java.lang.Object> extension)
extension
- public java.util.Map<java.lang.String,java.lang.Object> getNotifyExtension()
public void setNotifyExtension(java.util.Map<java.lang.String,java.lang.Object> notifyExtension)
notifyExtension
- public java.lang.String getTags()
public void setTags(java.lang.String tags)
tags
- public java.lang.String getNotifyTargetTags()
public void setNotifyTargetTags(java.lang.String notifyTargetTags)
notifyTargetTags
- public boolean isIndependentMode()
public boolean isAnonymousMode()
public java.lang.String getAccount()
public java.lang.String getToken()
public java.lang.Integer getLoginAuthType()
public void setLoginAuthType(java.lang.Integer loginAuthType)
loginAuthType
- public java.lang.String getLoginExt()
public void setLoginExt(java.lang.String loginExt)
loginExt
- public ChatRoomSpatialLocation getChatRoomSpatialLocation()
public void setChatRoomSpatialLocation(ChatRoomSpatialLocation chatRoomSpatialLocation)
public ChatRoomAuthProvider getChatRoomAuthProvider()
public void setChatRoomAuthProvider(ChatRoomAuthProvider chatRoomAuthProvider)
public ChatRoomIndependentCallback getIndependentModeCallback()
public AntiSpamConfig getAntiSpamConfig()
public void setAntiSpamConfig(AntiSpamConfig antiSpamConfig)
public void setIndependentMode(ChatRoomIndependentCallback cb, java.lang.String account, java.lang.String token)
cb
- callback for the independent login mode. The SDK can obtain the chat room URL from the appaccount
- account for independent login. If unspecified, anonymous login is allowedtoken
- password in independent login modepublic void setIndependentMode(ChatRoomIndependentCallback cb, java.lang.String account, java.lang.String token, boolean isAnonymousMode)
cb
- callback for the independent login mode. The SDK can obtain the chat room URL from the appaccount
- account for independent login.token
- password in independent login modeisAnonymousMode
- anonymous mode. If the value is set ot false, the account parameter cannot be empty.public boolean isValid()