WFCCDomainInfo.m 817 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. //
  2. // WFCCDomainInfo.m
  3. // WFChatClient
  4. //
  5. // Created by heavyrain on 2017/8/16.
  6. // Copyright © 2017年 WildFireChat. All rights reserved.
  7. //
  8. #import "WFCCDomainInfo.h"
  9. @implementation WFCCDomainInfo
  10. - (id)toJsonObj {
  11. NSMutableDictionary *dict = [[NSMutableDictionary alloc] init];
  12. dict[@"domainId"] = self.domainId;
  13. if(self.name.length)
  14. dict[@"name"] = self.name;
  15. if(self.desc.length)
  16. dict[@"desc"] = self.desc;
  17. if(self.email.length)
  18. dict[@"email"] = self.email;
  19. if(self.tel.length)
  20. dict[@"tel"] = self.tel;
  21. if(self.address.length)
  22. dict[@"address"] = self.address;
  23. if(self.extra.length)
  24. dict[@"extra"] = self.extra;
  25. [self setDict:dict key:@"updateDt" longlongValue:self.updateDt];
  26. return dict;
  27. }
  28. @end