User¶
User participation channel inquiry¶
To retrieve the list of channels that the app user has participated in, call the Chat class's getChannelsByUser()
method.
The Channel
object is passed as a response, and the structure is as follows.
Channel¶
Field Name | Description | Type |
---|---|---|
channelId | Channel ID | string |
type | Channel type (PRIVATE , PUBLIC , GROUP ) | enum |
owner | Hive PlayerID of the channel owner | string |
channelName | Channel name | string |
maxMemberCount | Maximum number of channel participants | integer |
regTime | Channel creation date and time (based on UTC+0 , format yyyy-MM-dd'T'HH:mm:ss.SSSZ ) | string |
Here is an example code that retrieves the list of channels the user has participated in.
User block list inquiry¶
To view the list of members blocked by the app user, call the Chat class's getBlockMembers()
method.
The response will include a BlockMember
object, and the structure is as follows.
Blockmember¶
Field Name | Description | Type |
---|---|---|
playerId | Blocked user's PlayerID | long |
blockedTime | Blocked time (based on UTC+0 , format yyyy-MM-dd'T'HH:mm:ss.SSSZ ) | string |
The following is an example code to retrieve the list of members blocked by a user.
User block¶
To block a specific member, the app user calls the Chat class blockMember()
method.
The following is an example code for a user to block a specific member.
Unblock user¶
To unblock a member, call the Chat class unblockMember()
method.
The following is an example code for a user to unblock a member.