public static final class SetRoomSystemPropertiesRequest.ExpectedUserIdsProperty extends Object implements RoomSystemProperty<Set<String>>
修改房间邀请好友列表我们支持四种操作,对应四种 SetRoomSystemPropertiesRequest.Operator:
Operator.ADD 在现有房间邀请好友列表上增加新的待邀请好友。比如房间现有好友 ["a", "b", "c"], 执行 ADD ["c", "d"] 后,房间邀请好友列表结果为 ["a", "b", "c", "d"]
Operator.REMOVE 在现有房间邀请好友列表上删除一组好友 ID。比如房间现有好友 ["a", "b", "c"], 执行 REMOVE ["c", "d"] 后,房间邀请好友列表结果为 ["a", "b"]
Operator.SET 用新的邀请列表替换现有房间邀请好友列表。比如房间现有好友 ["a", "b", "c"],执行 SET ["c", "d"] 后,房间邀请好友列表结果为 ["c", "d"]
Operator.DROP 清空现有房间邀请好友列表。比如房间现有好友 ["a", "b", "c"],执行 DROP 后,房间邀请好友列表结果为 [ ]
| Modifier and Type | Method and Description |
|---|---|
static SetRoomSystemPropertiesRequest.ExpectedUserIdsProperty |
add(Set<String> valueToSet)
在现有房间邀请好友列表上增加新的待邀请好友。比如房间现有好友 ["a", "b", "c"],
参数为 ["c", "d"],执行后房间邀请好友列表结果为 ["a", "b", "c", "d"]
|
static SetRoomSystemPropertiesRequest.ExpectedUserIdsProperty |
drop()
清空现有房间邀请好友列表。比如房间现有好友 ["a", "b", "c"],执行后房间邀请好友列
表结果为 [ ]
|
SetRoomSystemPropertiesRequest.Operator |
getOperator()
获取邀请好友列表操作数,可以是 ADD,REMOVE,SET,DROP 之一。
|
clojure.lang.Keyword |
getPropertyKey()
房间属性 Key,Game Server 使用,Game Plugin 实现者无需使用
|
Set<String> |
getPropertyValueToSet()
房间属性值
|
Object |
getSerializedPropertyValue()
Game Server 内使用的房间属性值,Game Plugin 实现者无需使用
|
static SetRoomSystemPropertiesRequest.ExpectedUserIdsProperty |
remove(Set<String> valueToSet)
在现有房间邀请好友列表中删除一组好友 ID。比如房间现有好友 ["a", "b", "c"],
参数为 ["c", "d"],执行后房间邀请好友列表结果为 ["a", "b"]
|
static SetRoomSystemPropertiesRequest.ExpectedUserIdsProperty |
set(Set<String> valueToSet)
用新的邀请列表替换现有房间邀请好友列表。比如房间现有好友 ["a", "b", "c"],
参数为 ["c", "d"],执行后房间邀请好友列表结果为 ["c", "d"]
|
String |
toString() |
public static SetRoomSystemPropertiesRequest.ExpectedUserIdsProperty add(Set<String> valueToSet)
valueToSet - 待添加新的邀请好友 ID 列表public static SetRoomSystemPropertiesRequest.ExpectedUserIdsProperty remove(Set<String> valueToSet)
valueToSet - 待删除好友 ID 列表public static SetRoomSystemPropertiesRequest.ExpectedUserIdsProperty set(Set<String> valueToSet)
valueToSet - 待删除好友 ID 列表public static SetRoomSystemPropertiesRequest.ExpectedUserIdsProperty drop()
public clojure.lang.Keyword getPropertyKey()
RoomSystemPropertygetPropertyKey in interface RoomSystemProperty<Set<String>>public Set<String> getPropertyValueToSet()
RoomSystemPropertygetPropertyValueToSet in interface RoomSystemProperty<Set<String>>public SetRoomSystemPropertiesRequest.Operator getOperator()
public Object getSerializedPropertyValue()
RoomSystemPropertygetSerializedPropertyValue in interface RoomSystemProperty<Set<String>>Copyright © 2019 LeanCloud. All rights reserved.