41 lines
1.2 KiB
Objective-C
41 lines
1.2 KiB
Objective-C
//
|
|
// 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"];
|
|
}
|
|
|
|
-(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"];
|
|
|
|
}
|
|
|
|
return self;
|
|
}
|
|
|
|
@end
|