1 package com.netease.nimlib.sdk.v2.team.option;
14 private long timestamp;
25 this.timestamp = NtpTimeUtil.getServerNow();
53 this.timestamp = timestamp;
54 if (this.timestamp <= 0) {
55 this.timestamp = NtpTimeUtil.getServerNow();
74 if (this.type == null) {
85 final StringBuilder sb =
new StringBuilder(
"V2NIMTeamClearJoinActionInfoOption{");
86 sb.append(
"timestamp=").append(timestamp);
87 sb.append(
", type=").append(type);
V2NIMTeamClearJoinActionInfoOption(long timestamp, V2NIMTeamJoinActionTeamType type)
带参数的构造函数
V2NIMTeamClearJoinActionInfoOption()
默认构造函数 初始化时间戳为当前时间,群类型为全部
V2NIMTeamJoinActionTeamType getType()
获取群类型
String toString()
重写toString方法
void setType(V2NIMTeamJoinActionTeamType type)
设置群类型 如果设置的群类型为null,则使用默认值(全部)
V2NIM_TEAM_JOIN_ACTION_TEAM_TYPE_ALL
void setTimestamp(long timestamp)
设置时间戳 如果设置的时间戳小于等于0,则使用当前时间戳