IMACustomConversation.h 575 B

1234567891011121314151617181920212223242526
  1. //
  2. // IMACustomConversation.h
  3. // TIMChat
  4. //
  5. // Created by AlexiChen on 16/4/7.
  6. // Copyright © 2016年 AlexiChen. All rights reserved.
  7. //
  8. #import "IMAConversation.h"
  9. typedef void (^SaveMsgSucc)(int newUnRead);
  10. // 此类会话会在初始化的时候设置好imaType
  11. @interface IMACustomConversation : IMAConversation
  12. @property (nonatomic, assign) NSInteger unReadMsgCount;
  13. + (NSString *)getCustomConversationID:(IMAMsg *)msg;
  14. - (instancetype)initWith:(TIMConversation *)conv andMsg:(IMAMsg *)msg;
  15. - (void)saveMessage:(IMAMsg *)msg succ:(SaveMsgSucc)succ;
  16. @end