2
0

WFCCConversationSearchInfo.m 645 B

1234567891011121314151617181920212223
  1. //
  2. // WFCCConversationSearchInfo.m
  3. // WFChatClient
  4. //
  5. // Created by heavyrain on 2017/10/22.
  6. // Copyright © 2017年 WildFireChat. All rights reserved.
  7. //
  8. #import "WFCCConversationSearchInfo.h"
  9. @implementation WFCCConversationSearchInfo
  10. -(id)toJsonObj {
  11. NSMutableDictionary *dict = [[NSMutableDictionary alloc] init];
  12. dict[@"conversation"] = [self.conversation toJsonObj];
  13. if(self.marchedMessage) {
  14. dict[@"marchedMessage"] = [self.marchedMessage toJsonObj];
  15. }
  16. dict[@"marchedCount"] = @(self.marchedCount);
  17. dict[@"keyword"] = self.keyword;
  18. dict[@"timestamp"] = @(self.timestamp);
  19. return dict;
  20. }
  21. @end