// // ChatListStore.h // AIIM // // Created by gan on 2025/4/1. // #ifndef ChatListStore_h #define ChatListStore_h #endif /* ChatListStore_h */ #import "GIMobj.h" @protocol ChatListStoreDelegate @optional - (void)ChatListChange:(NSArray *_Nullable)chatlist; @end @interface ChatListStore : NSObject + (ChatListStore *_Nonnull)shareInstance; @property (nonatomic,weak) id delegate; @property (nonatomic,strong) NSString * _Nullable chatId; @property (nonatomic,strong) NSArray * _Nullable chatlist; -(void)reloadData:(BOOL)mark; -(void)reciveMsg:(NSDictionary *_Nonnull)msg; -(void)chatDidOpen:(NSDictionary *_Nonnull)chatmsg; - (void)deleteChat:(NSDictionary *_Nonnull)chat; - (void)topChat:(NSDictionary *_Nonnull)chat; - (void)cancelTopChat:(NSDictionary *_Nonnull)chat; -(void)tryToCreateChate:(NSDictionary *_Nonnull)chatmsg; @end