1 package com.netease.nimlib.sdk.friend.model;
3 import java.io.Serializable;
4 import java.util.ArrayList;
12 private List<Friend> updatedFriends =
new ArrayList<>();
14 private List<String> deletedFriends =
new ArrayList<>();
17 if (updatedFriends != null && !updatedFriends.isEmpty()) {
18 this.updatedFriends.addAll(updatedFriends);
21 if (deletedFriends != null && !deletedFriends.isEmpty()) {
22 this.deletedFriends.addAll(deletedFriends);
27 if (updatedFriend != null) {
28 this.updatedFriends.add(updatedFriend);
31 if (deletedFriend != null) {
32 this.deletedFriends.add(deletedFriend);
42 return updatedFriends;
51 return deletedFriends;
FriendChangedNotify(List< Friend > updatedFriends, List< String > deletedFriends)
List< Friend > getAddedOrUpdatedFriends()
返回增加或者发生变更的好友关系
FriendChangedNotify(Friend updatedFriend, String deletedFriend)
List< String > getDeletedFriends()
返回被删除的的好友关系