V2TimFriendshipListener constructor

V2TimFriendshipListener(
  1. {OnFriendApplicationListAddedCallback? onFriendApplicationListAdded,
  2. OnFriendApplicationListDeletedCallback? onFriendApplicationListDeleted,
  3. OnFriendApplicationListReadCallback? onFriendApplicationListRead,
  4. OnFriendListAddedCallback? onFriendListAdded,
  5. OnFriendListDeletedCallback? onFriendListDeleted,
  6. OnBlackListAddCallback? onBlackListAdd,
  7. OnBlackListDeletedCallback? onBlackListDeleted,
  8. OnFriendInfoChangedCallback? onFriendInfoChanged,
  9. OnFriendGroupCreatedCallback? onFriendGroupCreated,
  10. OnFriendGroupDeletedCallback? onFriendGroupDeleted,
  11. OnFriendGroupNameChangedCallback? onFriendGroupNameChanged,
  12. OnFriendsAddedToGroupCallback? onFriendsAddedToGroup,
  13. OnFriendsDeletedFromGroupCallback? onFriendsDeletedFromGroup,
  14. OnOfficialAccountSubscribed? onOfficialAccountSubscribed,
  15. OnOfficialAccountUnsubscribed? onOfficialAccountUnsubscribed,
  16. OnOfficialAccountDeleted? onOfficialAccountDeleted,
  17. OnOfficialAccountInfoChanged? onOfficialAccountInfoChanged,
  18. OnMyFollowingListChanged? onMyFollowingListChanged,
  19. OnMyFollowersListChanged? onMyFollowersListChanged,
  20. OnMutualFollowersListChanged? onMutualFollowersListChanged}
)

Implementation

V2TimFriendshipListener({
  OnFriendApplicationListAddedCallback? onFriendApplicationListAdded,
  OnFriendApplicationListDeletedCallback? onFriendApplicationListDeleted,
  OnFriendApplicationListReadCallback? onFriendApplicationListRead,
  OnFriendListAddedCallback? onFriendListAdded,
  OnFriendListDeletedCallback? onFriendListDeleted,
  OnBlackListAddCallback? onBlackListAdd,
  OnBlackListDeletedCallback? onBlackListDeleted,
  OnFriendInfoChangedCallback? onFriendInfoChanged,
  OnFriendGroupCreatedCallback? onFriendGroupCreated,
  OnFriendGroupDeletedCallback? onFriendGroupDeleted,
  OnFriendGroupNameChangedCallback? onFriendGroupNameChanged,
  OnFriendsAddedToGroupCallback? onFriendsAddedToGroup,
  OnFriendsDeletedFromGroupCallback? onFriendsDeletedFromGroup,
  OnOfficialAccountSubscribed? onOfficialAccountSubscribed,
  OnOfficialAccountUnsubscribed? onOfficialAccountUnsubscribed,
  OnOfficialAccountDeleted? onOfficialAccountDeleted,
  OnOfficialAccountInfoChanged? onOfficialAccountInfoChanged,
  OnMyFollowingListChanged? onMyFollowingListChanged,
  OnMyFollowersListChanged? onMyFollowersListChanged,
  OnMutualFollowersListChanged? onMutualFollowersListChanged,
}) {
  if (onFriendApplicationListAdded != null) {
    this.onFriendApplicationListAdded = onFriendApplicationListAdded;
  }
  if (onFriendApplicationListDeleted != null) {
    this.onFriendApplicationListDeleted = onFriendApplicationListDeleted;
  }
  if (onFriendApplicationListRead != null) {
    this.onFriendApplicationListRead = onFriendApplicationListRead;
  }
  if (onFriendListAdded != null) {
    this.onFriendListAdded = onFriendListAdded;
  }
  if (onFriendListDeleted != null) {
    this.onFriendListDeleted = onFriendListDeleted;
  }
  if (onBlackListAdd != null) {
    this.onBlackListAdd = onBlackListAdd;
  }
  if (onBlackListDeleted != null) {
    this.onBlackListDeleted = onBlackListDeleted;
  }
  if (onFriendInfoChanged != null) {
    this.onFriendInfoChanged = onFriendInfoChanged;
  }

  if (onFriendGroupCreated != null) {
    this.onFriendGroupCreated = onFriendGroupCreated;
  }
  if (onFriendGroupDeleted != null) {
    this.onFriendGroupDeleted = onFriendGroupDeleted;
  }
  if (onFriendGroupNameChanged != null) {
    this.onFriendGroupNameChanged = onFriendGroupNameChanged;
  }
  if (onFriendsAddedToGroup != null) {
    this.onFriendsAddedToGroup = onFriendsAddedToGroup;
  }
  if (onFriendsDeletedFromGroup != null) {
    this.onFriendsDeletedFromGroup = onFriendsDeletedFromGroup;
  }

  if (onOfficialAccountSubscribed != null) {
    this.onOfficialAccountSubscribed = onOfficialAccountSubscribed;
  }
  if (onOfficialAccountUnsubscribed != null) {
    this.onOfficialAccountUnsubscribed = onOfficialAccountUnsubscribed;
  }
  if (onOfficialAccountDeleted != null) {
    this.onOfficialAccountDeleted = onOfficialAccountDeleted;
  }
  if (onOfficialAccountInfoChanged != null) {
    this.onOfficialAccountInfoChanged = onOfficialAccountInfoChanged;
  }
  if (onMyFollowingListChanged != null) {
    this.onMyFollowingListChanged = onMyFollowingListChanged;
  }
  if (onMyFollowersListChanged != null) {
    this.onMyFollowersListChanged = onMyFollowersListChanged;
  }
  if (onMutualFollowersListChanged != null) {
    this.onMutualFollowersListChanged = onMutualFollowersListChanged;
  }
}