WFCCChatroomInfo.m 671 B

1234567891011121314151617181920212223242526
  1. //
  2. // WFCCChatroomInfo.m
  3. // WFChatClient
  4. //
  5. // Created by heavyrain lee on 2018/8/24.
  6. // Copyright © 2018 WildFireChat. All rights reserved.
  7. //
  8. #import "WFCCChatroomInfo.h"
  9. @implementation WFCCChatroomInfo
  10. - (id)toJsonObj {
  11. NSMutableDictionary *dict = [[NSMutableDictionary alloc] init];
  12. dict[@"chatroomId"] = self.chatroomId;
  13. dict[@"title"] = self.title;
  14. dict[@"desc"] = self.desc;
  15. dict[@"portrait"] = self.portrait;
  16. dict[@"extra"] = self.extra;
  17. dict[@"state"] = @(self.state);
  18. dict[@"memberCount"] = @(self.memberCount);
  19. dict[@"createDt"] = @(self.createDt);
  20. dict[@"updateDt"] = @(self.updateDt);
  21. return dict;
  22. }
  23. @end