2
0

WFCCConversationInfo.m 699 B

12345678910111213141516171819202122232425
  1. //
  2. // WFCCConversationInfo.m
  3. // WFChatClient
  4. //
  5. // Created by heavyrain on 2017/8/29.
  6. // Copyright © 2017年 wildfire chat. All rights reserved.
  7. //
  8. #import "WFCCConversationInfo.h"
  9. @implementation WFCCConversationInfo
  10. -(id)toJsonObj {
  11. NSMutableDictionary *dict = [[NSMutableDictionary alloc] init];
  12. dict[@"conversation"] = [self.conversation toJsonObj];
  13. dict[@"lastMessage"] = [self.lastMessage toJsonObj];
  14. dict[@"draft"] = self.draft;
  15. [self setDict:dict key:@"timestamp" longlongValue:self.timestamp];
  16. dict[@"unreadCount"] = [self.unreadCount toJsonObj];
  17. dict[@"isTop"] = @(self.isTop);
  18. dict[@"isSilent"] = @(self.isSilent);
  19. return dict;
  20. }
  21. @end