SchSpar.m 913 B

12345678910111213141516171819202122232425262728293031323334353637
  1. //
  2. // SchSpar.m
  3. // jiaPei
  4. //
  5. // Created by apple on 15/11/28.
  6. // Copyright (c) 2015年 JCZ. All rights reserved.
  7. //
  8. #import "SchSpar.h"
  9. @implementation SchSpar
  10. +(id)schoolInfoWithDict:(NSDictionary*)dict{
  11. SchSpar* sch = [[SchSpar alloc] init];
  12. sch.schAddr = dict[@"address"];
  13. sch.schDesc =dict[@"desc"];
  14. sch.schName =dict[@"name"];
  15. sch.schStar =dict[@"star"];
  16. sch.schTel =dict[@"star"];
  17. // info.jxjc = dict[@"shortName"];
  18. // info.schoolName = dict[@"jxmc"];
  19. // info.schoolAddr = dict[@"jxdz"];
  20. // info.stuCnt = dict[@"count"];
  21. // info.area = dict[@"xlczmj"];
  22. // info.telNum = dict[@"dh"];
  23. // info.watch = dict[@"watch"];
  24. // info.price = dict[@"price"];
  25. // info.vip = dict[@"vip"];
  26. // info.desc = dict[@"desc"];
  27. // info.schId = dict[@"jxbh"];
  28. // if ([info.price isEqualToString:@""]) {
  29. // info.price = @"0";
  30. // }
  31. return sch;
  32. }
  33. @end