TIMFriendshipManager.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. //
  2. // TIMFriendshipManager.h
  3. // ImSDK
  4. //
  5. // Created by bodeng on 21/5/15.
  6. // Copyright (c) 2015 tencent. All rights reserved.
  7. //
  8. #ifndef ImSDK_TIMFriendshipManager_h
  9. #define ImSDK_TIMFriendshipManager_h
  10. #import "TIMComm.h"
  11. /**
  12. * 好友管理
  13. */
  14. @interface TIMFriendshipManager : NSObject
  15. /**
  16. * 获取好友管理器实例
  17. *
  18. * @return 管理器实例
  19. */
  20. + (TIMFriendshipManager*)sharedInstance;
  21. /**
  22. * 设置自己的资料
  23. *
  24. * @param option 需要更新的属性
  25. * @param profile 新的资料
  26. * @param succ 成功回调
  27. * @param fail 失败回调
  28. *
  29. * @return 0 发送请求成功
  30. */
  31. - (int)modifySelfProfile:(TIMFriendProfileOption*)option profile:(TIMUserProfile*)profile succ:(TIMSucc)succ fail:(TIMFail)fail;
  32. /**
  33. * 获取自己的资料
  34. *
  35. * @param succ 成功回调,返回 TIMUserProfile
  36. * @param fail 失败回调
  37. *
  38. * @return 0 发送请求成功
  39. */
  40. - (int)getSelfProfile:(TIMGetProfileSucc)succ fail:(TIMFail)fail;
  41. /**
  42. * 获取指定用户资料
  43. *
  44. * @param users 要获取的用户列表 NSString* 列表
  45. * @param succ 成功回调,返回 TIMUserProfile* 列表
  46. * @param fail 失败回调
  47. *
  48. * @return 0 发送请求成功
  49. */
  50. - (int)getUsersProfile:(NSArray*)users succ:(TIMFriendSucc)succ fail:(TIMFail)fail;
  51. @end
  52. #endif