// // XuToControlName.m // Ifish // // Created by imac on 2017/6/15. // Copyright © 2017年 lianlian. All rights reserved. // #import "XuToControlName.h" @implementation XuToControlName -(void)encodeWithCoder:(NSCoder*)aCoder{ [aCoder encodeObject:_airPump forKey:@"airPump"]; [aCoder encodeObject:_light1 forKey:@"light1"]; [aCoder encodeObject:_light2 forKey:@"light2"]; [aCoder encodeObject:_huLiDeng forKey:@"huLiDeng"]; [aCoder encodeObject:_waterPump forKey:@"waterPump"]; [aCoder encodeObject:_jiaRe forKey:@"jiaRe"]; [aCoder encodeObject:_macAddress forKey:@"macAddress"]; //新绚多 [aCoder encodeObject:_shajunLight forKey:@"shajunLight"]; [aCoder encodeObject:_zengyangPump forKey:@"zengyangPump"]; [aCoder encodeObject:_zaolangPump forKey:@"zaolangPump"]; [aCoder encodeObject:_xunhuanPump forKey:@"xunhuanPump"]; [aCoder encodeObject:_type forKey:@"type"]; } -(id)initWithCoder:(NSCoder*)aDecoder{ if (self=[super init]) { self.airPump = [aDecoder decodeObjectForKey:@"airPump"]; self.light1 = [aDecoder decodeObjectForKey:@"light1"]; self.light2 = [aDecoder decodeObjectForKey:@"light2"]; self.huLiDeng = [aDecoder decodeObjectForKey:@"huLiDeng"]; self.waterPump = [aDecoder decodeObjectForKey:@"waterPump"]; self.jiaRe=[aDecoder decodeObjectForKey:@"jiaRe"]; self.macAddress = [aDecoder decodeObjectForKey:@"macAddress"]; //新绚多 self.shajunLight = [aDecoder decodeObjectForKey:@"shajunLight"]; self.zengyangPump = [aDecoder decodeObjectForKey:@"zengyangPump"]; self.zaolangPump = [aDecoder decodeObjectForKey:@"zaolangPump"]; self.xunhuanPump = [aDecoder decodeObjectForKey:@"xunhuanPump"]; self.type = [aDecoder decodeObjectForKey:@"type"]; } return self; } @end