Initial commit
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
//
|
||||
// ZeroControlBackmsgModel.m
|
||||
// Ifish
|
||||
//
|
||||
// Created by imac on 16/2/24.
|
||||
// Copyright © 2016年 imac. All rights reserved.
|
||||
//
|
||||
|
||||
#import "ZeroControlBackmsgModel.h"
|
||||
|
||||
@implementation ZeroControlBackmsgModel
|
||||
-(void)encodeWithCoder:(NSCoder*)aCoder{
|
||||
|
||||
[aCoder encodeObject:self forKey:@"wendu"];
|
||||
[aCoder encodeObject:self forKey:@"Ph"];
|
||||
|
||||
[aCoder encodeObject:self forKey:@"brightness"];
|
||||
[aCoder encodeObject:self forKey:@"tankLight"];
|
||||
|
||||
[aCoder encodeObject:self forKey:@"baojingSwitch"];
|
||||
[aCoder encodeObject:self forKey:@"miniTp"];
|
||||
[aCoder encodeObject:self forKey:@"maxTp"];
|
||||
}
|
||||
//解挡时调用
|
||||
-(id)initWithCoder:(NSCoder*)aDecoder{
|
||||
if (self=[super init]) {
|
||||
|
||||
self.wendu=[aDecoder decodeObjectForKey:@"wendu"];
|
||||
self.Ph=[aDecoder decodeObjectForKey:@"Ph"];
|
||||
|
||||
self.brightness=[aDecoder decodeObjectForKey:@"brightness"];
|
||||
self.tankLight=[aDecoder decodeObjectForKey:@"tankLight"];
|
||||
|
||||
self.baojingSwitch=[aDecoder decodeObjectForKey:@"baojingSwitch"];
|
||||
self.miniTp=[aDecoder decodeObjectForKey:@"miniTp"];
|
||||
self.maxTp=[aDecoder decodeObjectForKey:@"maxTp"];
|
||||
}
|
||||
return self;
|
||||
}
|
||||
|
||||
@end
|
||||
Reference in New Issue
Block a user