// // SchSpar.m // jiaPei // // Created by apple on 15/11/28. // Copyright (c) 2015年 JCZ. All rights reserved. // #import "SchSpar.h" @implementation SchSpar +(id)schoolInfoWithDict:(NSDictionary*)dict{ SchSpar* sch = [[SchSpar alloc] init]; sch.schAddr = dict[@"address"]; sch.schDesc =dict[@"desc"]; sch.schName =dict[@"name"]; sch.schStar =dict[@"star"]; sch.schTel =dict[@"star"]; // info.jxjc = dict[@"shortName"]; // info.schoolName = dict[@"jxmc"]; // info.schoolAddr = dict[@"jxdz"]; // info.stuCnt = dict[@"count"]; // info.area = dict[@"xlczmj"]; // info.telNum = dict[@"dh"]; // info.watch = dict[@"watch"]; // info.price = dict[@"price"]; // info.vip = dict[@"vip"]; // info.desc = dict[@"desc"]; // info.schId = dict[@"jxbh"]; // if ([info.price isEqualToString:@""]) { // info.price = @"0"; // } return sch; } @end