YBMessageManager.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. //
  2. // YBMessageManager.h
  3. // YBHiMo
  4. //
  5. // Created by YB007 on 2021/9/14.
  6. // Copyright © 2021 YB007. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. /// 群组cell类型
  10. typedef NS_ENUM(NSInteger,CellListType) {
  11. CellListType_Normal, // 普通列表
  12. CellListType_SelMember, // 选择成员
  13. };
  14. /// 选择成员类型
  15. typedef NS_ENUM(NSInteger,SelMemberType) {
  16. SelMemberType_Create, // 创建群组选人
  17. SelMemberType_Invite, // 邀请成员选人
  18. };
  19. /// 群内的身份
  20. typedef NS_ENUM(NSInteger,GroupIdentity) {
  21. GroupIdentity_Normal, // 普通用户
  22. GroupIdentity_Own, // 群主
  23. GroupIdentity_Admin, // 群管理
  24. };
  25. typedef NS_ENUM(NSInteger,MsgUiType) {
  26. MsgUiType_C2C,
  27. MsgUiType_Group,
  28. };
  29. typedef NS_ENUM(NSInteger,UiFrom) {
  30. UiFrom_Default,
  31. UiFrom_Samll, // 私信小窗口
  32. };
  33. NS_ASSUME_NONNULL_BEGIN
  34. typedef void (^MsgCellDataBlock)(int code,TConversationCellData*cellData);
  35. @interface YBMessageManager : NSObject
  36. +(instancetype)shareManager;
  37. // 私信列表
  38. -(void)goChatListVC;
  39. // 私信对话
  40. -(void)chatWithUser:(NSDictionary*)userInfo;
  41. -(void)getChatCellDataWithTouid:(NSString *)touid finish:(MsgCellDataBlock)finish;
  42. @end
  43. NS_ASSUME_NONNULL_END