Public Member Functions | |
| void | Connect () |
| Establish a websocket connection to chat service. | |
| void | Disconnect () |
| Disconnect websocket connection from chat service. | |
| void | RefreshToken (string newToken, ResultCallback callback) |
| Send a new access token to be used in chat service. | |
| void | CreatePersonalTopic (string otherUserId, ResultCallback< ChatActionTopicResponse > callback) |
| Create a private topic with other user. | |
| void | CreateGroupTopic (string groupName, string[] adminUserId, string[] memberUserIds, ResultCallback< ChatActionTopicResponse > callback) |
| Create a group topic It can be used to let multiple users connect to each other. | |
| void | CreateGroupTopic (string groupName, string[] adminUserId, string[] memberUserIds, CreateGroupTopicOptionalParameter optionalParameter, ResultCallback< ChatActionTopicResponse > callback) |
| Create a group topic It can be used to let multiple users connect to each other. | |
| void | JoinTopic (string topicId, ResultCallback< ChatActionTopicResponse > callback) |
| Join a specific topic id. | |
| void | DeleteTopic (string topicId, ResultCallback< ChatActionTopicResponse > callback) |
| Delete a topic. | |
| void | SendChatMessage (string topicId, string message, ResultCallback< SendChatResponse > callback) |
| Send chat message to a topic. | |
| void | QueryGroupTopic (string keyword, ResultCallback< QueryTopicResponse > callback, int offset=0, int limit=20) |
| Query group topics that user is currently a part of. | |
| void | QueryPersonalTopic (string keyword, ResultCallback< QueryTopicResponse > callback, int offset=0, int limit=20) |
| Query personal topics that user is currently a part of. | |
| void | QueryTopic (string keyword, ResultCallback< QueryTopicResponse > callback, int offset=0, int limit=20) |
| Query group and personal topics that user is currently a part of. | |
| void | QueryTopic (string topicId, ResultCallback< QueryTopicByIdResponse > callback) |
| Query group and personal topic by topic ID. | |
| void | QueryChat (string topicId, ResultCallback< QueryChatResponse > callback, int limit=20, DateTime lastChatCreatedAt=default(DateTime)) |
| Query chat messages within a topic. | |
| void | BlockUser (string userId, ResultCallback< BlockUnblockResponse > callback) |
| Block user. | |
| void | UnblockUser (string userId, ResultCallback< BlockUnblockResponse > callback) |
| Unblock user. | |
| void | QuerySystemMessage (ResultCallback< QuerySystemMessagesResponse > callback, QuerySystemMessageRequest request=default) |
| Query system messages in user's system inbox. | |
| void | UpdateSystemMessages (HashSet< ActionUpdateSystemMessage > actionUpdateSystemMessages, ResultCallback< UpdateSystemMessagesResponse > callback) |
| Update system message(s) in user system inbox. | |
| void | DeleteSystemMessages (HashSet< string > messageIds, ResultCallback< DeleteSystemMessagesResponse > callback) |
| Delete system message(s) in user system inbox. | |
| void | GetSystemMessagesStats (ResultCallback< GetSystemMessageStatsResponse > callback, GetSystemMessageStatsRequest request=default) |
| Get system messages stats. | |
| void | DeleteGroupChat (string groupId, string chatId, ResultCallback callback) |
| Delete a message from group chat (used by group moderator). | |
| void | MuteGroupUserChat (string groupId, string userId, int durationInSeconds, ResultCallback callback) |
| Mute user from group chat (used by group moderator). | |
| void | UnmuteGroupUserChat (string groupId, string userId, ResultCallback callback) |
| Unmute user from group chat (used by group moderator). | |
| void | GetGroupChatSnapshot (string groupId, string chatId, ResultCallback< ChatSnapshotResponse > callback) |
| Get chat snapshot (used by group moderator). | |
| void | BanGroupUserChat (string groupId, List< string > userIds, ResultCallback< BanGroupChatResponse > callback) |
| Ban users from group chat (used by group moderator). | |
| void | UnbanGroupUserChat (string groupId, List< string > userIds, ResultCallback< UnbanGroupChatResponse > callback) |
| Unban users from group chat (used by group moderator). | |
| void | GetUserChatConfiguration (ResultCallback< GetUserChatConfigurationResponse > callback) |
| Get chat configuration for current user. | |
| void | SetUserChatConfiguration (bool isProfanityDisabled, ResultCallback< SetUserChatConfigurationResponse > callback) |
| Set chat configuration for current user. | |
Properties | |
| string | SessionId [get] |
| Session Id of the connection to chat service. | |
| bool | IsConnected [get] |
| Properties inherited from AccelByte.Core.WrapperBase | |
| Utils.AccelByteIdValidator | IdValidator [get] |
Events | |
| Action | Connected |
| Event triggered when websocket connection successfully connected. | |
| Action< WsCloseCode > | Disconnected |
| Event triggered when a websocket connection is disconnected. | |
| Action< EventAddRemoveFromTopic > | AddedToTopic |
| Event triggered when user is added to a chat topic. | |
| Action< EventAddRemoveFromTopic > | RemovedFromTopic |
| Event triggered when user is added to a chat topic. | |
| Action< EventTopicUpdated > | TopicDeleted |
| Event triggered when a chat topic is deleted. | |
| Action< EventNewChat > | NewChatMessage |
| Event triggered when a new chat message is received. | |
| Action< UserBannedNotification > | UserChatBanned |
| Event triggered when user is banned from chatting when ban is CHAT_ALL, then user also will not receive new chat events. | |
| Action< UserBannedNotification > | UserChatUnbanned |
| Event triggered when user is unbanned from chatting. | |
| Action< SystemMessageNotif > | NewSystemMessage |
| Event triggered when user receive new system message. | |
| Action< ChatMutedNotif > | ChatMuted |
| Event triggered when user muted from group chat. | |
| Action< ChatUnmutedNotif > | ChatUnmuted |
| Event triggered when user unmuted from group chat. | |
|
inline |
Ban users from group chat (used by group moderator).
| groupId | Id of group from group service. |
| userIds | List of user ids to ban. |
| callback | Function callback when operation is done. |
|
inline |
Block user.
| userId | user ID to block. |
| callback | Function callback when operation is done. |
|
inline |
Create a group topic It can be used to let multiple users connect to each other.
| groupName | group chat name |
| adminUserId | list of moderator/admin for this group chat |
| memberUserIds | list of members for this group chat |
| callback | Result of this operation |
| optionalParameter | optional parameter when create a group topic |
|
inline |
Create a group topic It can be used to let multiple users connect to each other.
| groupName | group chat name |
| adminUserId | list of moderator/admin for this group chat |
| memberUserIds | list of members for this group chat |
| callback | Result of this operation |
|
inline |
Create a private topic with other user.
| otherUserId | other user we want to create a topic with. |
| callback | Result of this operation. |
|
inline |
Delete a message from group chat (used by group moderator).
| groupId | Id of group from group service. |
| chatId | Id of message to delete. |
| callback | Function callback when operation is done. |
|
inline |
Delete system message(s) in user system inbox.
| messageIds | Array of system message id |
| callback | Function callback when operation is done. |
|
inline |
Delete a topic.
| topicId | topic id to be deleted |
| callback | Result of this operation |
|
inline |
Get chat snapshot (used by group moderator).
| groupId | Id of group from group service. |
| chatId | Id of message. |
| callback | Function callback when operation is done. |
|
inline |
Get system messages stats.
| callback | Function callback when operation is done. |
| request | Optional request parameter |
|
inline |
Get chat configuration for current user.
| callback | Callback for retrieved chat configuration or error |
|
inline |
Join a specific topic id.
| topicId | topic id to be joined |
| callback | Result of this operation |
|
inline |
Mute user from group chat (used by group moderator).
| groupId | Id of group from group service. |
| userId | Id of the user to be muted. |
| durationInSeconds | Duration of mute in seconds. |
| callback | Function callback when operation is done. |
|
inline |
Query chat messages within a topic.
| topicId | Topic ID to query. |
| callback | Function callback when operation is done. |
| limit | Max returned data count. |
| lastChatCreatedAt | Oldest message date to fetch. |
|
inline |
Query group topics that user is currently a part of.
| keyword | Topic name keyword to filter. |
| callback | Function callback when operation is done. |
| offset | Page offset based on limit number, start from 0. (ex. offset 1 with limit 20 will give item number 21-40) |
| limit | Count limit of item returned in one request. |
|
inline |
Query personal topics that user is currently a part of.
| keyword | Topic name keyword to filter. |
| callback | Function callback when operation is done. |
| offset | Page offset based on limit number, start from 0. (ex. offset 1 with limit 20 will give item number 21-40) |
| limit | Count limit of item returned in one request. |
|
inline |
Query system messages in user's system inbox.
| callback | Function callback when operation is done. |
| request | Optional request parameter |
|
inline |
Query group and personal topics that user is currently a part of.
| keyword | Topic name keyword to filter. |
| callback | Function callback when operation is done. |
| offset | Page offset based on limit number, start from 0. (ex. offset 1 with limit 20 will give item number 21-40) |
| limit | Count limit of item returned in one request. |
|
inline |
Query group and personal topic by topic ID.
| topicId | Topic ID to search. |
| callback | Function callback when operation is done. |
|
inline |
Send a new access token to be used in chat service.
| newToken | The new token to be used. |
| callback | Result of this operation. |
|
inline |
Send chat message to a topic.
| topicId | ID of the topic. |
| message | Chat message to send. |
| callback | Function callback when operation is done. |
|
inline |
Set chat configuration for current user.
| isProfanityDisabled | Bool config for profanity filter |
| callback | Callback for successful processing or error |
|
inline |
Unban users from group chat (used by group moderator).
| groupId | Id of group from group service. |
| userIds | List of user ids to ban. |
| callback | Function callback when operation is done. |
|
inline |
Unblock user.
| userId | user ID to unblock. |
| callback | Function callback when operation is done. |
|
inline |
Unmute user from group chat (used by group moderator).
| groupId | Id of group from group service. |
| userId | Id of the user to be muted. |
| callback | Function callback when operation is done. |
|
inline |
Update system message(s) in user system inbox.
| actionUpdateSystemMessages | Array of ActionUpdateSystemMessage containing action to mark read/unread and keep system messages. |
| callback | Function callback when operation is done. |