ChatListStore.h 887 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. //
  2. // ChatListStore.h
  3. // AIIM
  4. //
  5. // Created by gan on 2025/4/1.
  6. //
  7. #ifndef ChatListStore_h
  8. #define ChatListStore_h
  9. #endif /* ChatListStore_h */
  10. #import "GIMobj.h"
  11. @protocol ChatListStoreDelegate <NSObject>
  12. @optional
  13. - (void)ChatListChange:(NSArray *_Nullable)chatlist;
  14. @end
  15. @interface ChatListStore : NSObject
  16. + (ChatListStore *_Nonnull)shareInstance;
  17. @property (nonatomic,weak) id <ChatListStoreDelegate> delegate;
  18. @property (nonatomic,strong) NSString * _Nullable chatId;
  19. @property (nonatomic,strong) NSArray * _Nullable chatlist;
  20. -(void)reloadData:(BOOL)mark;
  21. -(void)reciveMsg:(NSDictionary *_Nonnull)msg;
  22. -(void)chatDidOpen:(NSDictionary *_Nonnull)chatmsg;
  23. - (void)deleteChat:(NSDictionary *_Nonnull)chat;
  24. - (void)topChat:(NSDictionary *_Nonnull)chat;
  25. - (void)cancelTopChat:(NSDictionary *_Nonnull)chat;
  26. -(void)tryToCreateChate:(NSDictionary *_Nonnull)chatmsg;
  27. @end