IMASubGroup.h 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. //
  2. // IMASubGroup.h
  3. // TIMAdapter
  4. //
  5. // Created by AlexiChen on 16/1/29.
  6. // Copyright © 2016年 AlexiChen. All rights reserved.
  7. //
  8. // 分组
  9. // 对应IMSDK里面的TIMFriendGroup
  10. // 目前分组里的数据没有作排序
  11. // 用户可根据具体逻辑作排序
  12. @interface IMASubGroup : NSObject<IMAContactDrawerShowAble>
  13. @property(nonatomic, copy) NSString *name; // 分组名
  14. @property (nonatomic, strong) CLSafeMutableArray *friends; // 分组内的好友信息
  15. @property (nonatomic, assign) BOOL isFold; // 是否折叠
  16. @property (nonatomic, assign) BOOL isPicked; // 对应好友选择界面的折叠状态
  17. // 创建默认分组
  18. - (instancetype)initDefaultSubGroup;
  19. // 创建空分组
  20. - (instancetype)initWithName:(NSString *)subGroupName;
  21. // 将TIMFriendGroup转成IMASubGroup
  22. - (instancetype)initWith:(TIMFriendGroupWithProfiles *)group;
  23. // 是否是默认分组
  24. - (BOOL)isDefaultSubGroup;
  25. // 同步折叠状态
  26. - (void)syncFoldOf:(IMASubGroup *)sg;
  27. @end