1 package com.netease.nimlib.sdk.v2.friend.option;
13 private long timestamp;
20 this.timestamp = System.currentTimeMillis();
43 this.timestamp = timestamp;
44 if(this.timestamp <= 0){
45 this.timestamp = System.currentTimeMillis();
63 if(this.type == null){
70 final StringBuilder sb =
new StringBuilder(
"V2NIMFriendClearAddApplicationOption{");
71 sb.append(
"timestamp=").append(timestamp);
72 sb.append(
", type=").append(type);
void setType(V2NIMFriendAddApplicationType type)
设置好友申请类型,默认全部 V2NIMFriendAddApplicationType, 不支持 V2NIMFriendAddApplicationType#V2NIM_...
V2NIMFriendClearAddApplicationOption()
V2NIMFriendClearAddApplicationOption(long timestamp, V2NIMFriendAddApplicationType type)
V2NIMFriendAddApplicationType getType()
获取好友申请类型,默认全部 V2NIMFriendAddApplicationType, 不支持 V2NIMFriendAddApplicationType#V2NIM_...
void setTimestamp(long timestamp)
设置时间戳,默认当前时间戳,会删除这个时间之前的所有记录
V2NIM_FRIEND_ADD_APPLICATION_TYPE_ALL
所有好友申请
long getTimestamp()
获取时间戳,默认当前时间戳,会删除这个时间之前的所有记录