Interface FriendInterface
Methods
addFriend
- addFriend(options: { account: string; ps?: string; done?: any }): void
Parameters
options: { account: string; ps?: string; done?: any }
account: string
Optional ps?: string
done?:function
Returns void
applyFriend
- applyFriend(options: { account: string; ps?: string; done?: any }): void
Parameters
options: { account: string; ps?: string; done?: any }
account: string
Optional ps?: string
done?:function
Returns void
deleteFriend
- deleteFriend(options: { account: string; delAlias?: boolean; done?: any }): void
Parameters
options: { account: string; delAlias?: boolean; done?: any }
account: string
Optional delAlias?: boolean
done?:function
Returns void
getFriends
- getFriends(options: { updateTime?: number; done?: any }): void
Parameters
options: { updateTime?: number; done?: any }
Optional updateTime?: number
done?:function
Returns void
getFriendsFromDB
- getFriendsFromDB(options: { accountIds?: string[]; done?: any }): void
Parameters
options: { accountIds?: string[]; done?: any }
Optional accountIds?: string[]
done?:function
Returns void
isMyFriend
- isMyFriend(options: { account: string; done?: any }): void
Parameters
options: { account: string; done?: any }
account: string
done?:function
Returns void
passFriendApply
- passFriendApply(options: { account: string; idServer: string; ps?: string; done?: any }): void
Parameters
options: { account: string; idServer: string; ps?: string; done?: any }
account: string
idServer: string
Optional ps?: string
done?:function
Returns void
rejectFriendApply
- rejectFriendApply(options: { account: string; idServer: string; ps: string; done?: any }): void
Parameters
options: { account: string; idServer: string; ps: string; done?: any }
account: string
idServer: string
ps: string
done?:function
Returns void
updateFriend
- updateFriend(options: { account: string; alias?: string; custom?: string; done?: any }): void
Parameters
options: { account: string; alias?: string; custom?: string; done?: any }
account: string
Optional alias?: string
Optional custom?: string
done?:function
Returns void
好友相关 API