1 package com.netease.nimlib.sdk.v2.team.option;
16 private final String keyword;
27 private final String teamId;
33 private final String nextToken;
47 private final int limit;
52 private final boolean searchAccountId;
59 this(null, null, null, TEAM_MEMBER_SEARCH_OPTION_PAGETOKEN_DEFAULT, TEAM_MEMBER_SEARCH_OPTION_ORDER_DEFAULT,
60 TEAM_MEMBER_SEARCH_OPTION_LIMIT_DEFAULT,TEAM_MEMBER_SEARCH_OPTION_SEARCH_ACCOUNT_ID);
75 this.keyword = keyword;
76 this.teamType = teamType;
78 this.nextToken = nextToken;
81 this.searchAccountId = searchAccountId;
144 return searchAccountId;
149 return "V2NIMTeamMemberSearchOption{" +
"keyword='" + keyword +
'\'' +
", teamType=" + teamType +
", teamId='" + teamId +
'\'' +
", nextToken='" 150 + nextToken +
'\'' +
", order=" + order +
", limit=" + limit +
", searchAccountId=" + searchAccountId +
'}';
161 private static final int TEAM_MEMBER_SEARCH_OPTION_LIMIT_DEFAULT = 10;
166 private static final String TEAM_MEMBER_SEARCH_OPTION_PAGETOKEN_DEFAULT =
"";
168 private static final boolean TEAM_MEMBER_SEARCH_OPTION_SEARCH_ACCOUNT_ID =
false;
173 public static final class V2NIMTeamMemberSearchOptionBuilder {
175 private final String keyword;
177 private String teamId;
178 private final String nextToken;
179 private V2NIMSortOrder order = TEAM_MEMBER_SEARCH_OPTION_ORDER_DEFAULT;
180 private int limit = TEAM_MEMBER_SEARCH_OPTION_LIMIT_DEFAULT;
181 private boolean searchAccountId = TEAM_MEMBER_SEARCH_OPTION_SEARCH_ACCOUNT_ID;
190 public V2NIMTeamMemberSearchOptionBuilder(String keyword,
V2NIMTeamType teamType, String nextToken) {
191 this.keyword = keyword;
192 this.teamType = teamType;
193 this.nextToken = nextToken;
202 this.keyword = other.keyword;
203 this.teamType = other.teamType;
204 this.teamId = other.teamId;
205 this.nextToken = other.nextToken;
206 this.order = other.order;
207 this.limit = other.limit;
219 public static V2NIMTeamMemberSearchOptionBuilder builder(String keyword,
V2NIMTeamType teamType, String nextToken) {
220 return new V2NIMTeamMemberSearchOptionBuilder(keyword, teamType, nextToken);
230 public V2NIMTeamMemberSearchOptionBuilder withTeamId(String teamId) {
231 this.teamId = teamId;
242 public V2NIMTeamMemberSearchOptionBuilder withOrder(
V2NIMSortOrder order) {
254 public V2NIMTeamMemberSearchOptionBuilder withLimit(
int limit) {
266 public V2NIMTeamMemberSearchOptionBuilder withSearchAccountId(
boolean searchAccountId) {
267 this.searchAccountId = searchAccountId;
String getKeyword()
获取搜索关键词
boolean isSearchAccountId()
获取是否搜索用户账号
String getNextToken()
获取起始位置
V2NIMTeamType getTeamType()
获取群组类型
群成员搜索选项类 用于设置群成员搜索的各种参数 当前只检索群昵称,不连表查询
V2NIMSortOrder getOrder()
获取排序方式