IMSDK+ShowAble.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. //
  2. // IMSDK+ShowAble.h
  3. // TIMChat
  4. //
  5. // Created by AlexiChen on 16/3/1.
  6. // Copyright © 2016年 AlexiChen. All rights reserved.
  7. //
  8. #import <ImSDK/ImSDK.h>
  9. #import <IMFriendshipExt/IMFriendshipExt.h>
  10. #import <IMGroupExt/IMGroupExt.h>
  11. // 为方便界面使用IMSDK里面的对象
  12. // 将需要的转换成界面显示的接口
  13. @interface TIMUserProfile (ShowAble)<IMAUserShowAble>
  14. - (NSString *)getAllowType;
  15. + (NSDictionary *)allowTypeTips;
  16. @end
  17. @interface TIMFriendPendencyItem (ShowAble)<IMAUserShowAble>
  18. // 申请理由
  19. - (NSString *)applyInfo;
  20. - (BOOL)isSendByMe;
  21. @end
  22. @interface TIMFriendFutureItem (ShowAble)<IMAUserShowAble>
  23. // 申请理由
  24. - (NSString *)detaiInfo;
  25. - (BOOL)isMyFriend;
  26. - (BOOL)isSendByMe;
  27. - (BOOL)isPendency;
  28. - (BOOL)isDecide;
  29. - (BOOL)isRecormend;
  30. @end
  31. @interface TIMGroupPendencyItem (ShowAble)<IMAUserShowAble>
  32. // 申请理由
  33. - (NSString *)applyInfo;
  34. - (NSString *)detailInfo;
  35. - (NSString *)actionTitle;
  36. - (BOOL)actionEnable;
  37. @end
  38. @interface TIMGroupInfo (ShowAble)<IMAGroupShowAble>
  39. + (instancetype)instanceFrom:(TIMCreateGroupInfo *)info;
  40. @end
  41. @interface TIMGroupMemberInfo (ShowAble)<IMAUserShowAble>
  42. @end