37 lines
906 B
Objective-C
37 lines
906 B
Objective-C
//
|
|
// RuiMeiCHNameCustom.m
|
|
// Ifish
|
|
//
|
|
// Created by Minghao Xue on 2018/4/22.
|
|
// Copyright © 2018年 lianlian. All rights reserved.
|
|
//
|
|
|
|
#import "RuiMeiCHNameCustom.h"
|
|
#import "UserExtendataArchaver.h"
|
|
|
|
@implementation RuiMeiCHNameCustom
|
|
|
|
+(void)saveCHname:(RuiMeiCHControl*)chModel
|
|
{
|
|
|
|
[UserExtendataArchaver archiverRuiMeiDeviceCHInfo:chModel];
|
|
|
|
}
|
|
|
|
+(RuiMeiCHControl *)currentdevice:(NSString *)macaddress
|
|
{
|
|
RuiMeiCHControl *runsunCH = [UserExtendataArchaver unArchiverRuiMeiDeviceCHInfo:macaddress];
|
|
if (!runsunCH||[runsunCH isKindOfClass:[NSNull class]]) {
|
|
runsunCH = [[RuiMeiCHControl alloc] init];
|
|
runsunCH.ch1name = @"灯1";
|
|
runsunCH.ch2name = @"灯2";
|
|
runsunCH.ch3name = @"UV/杀菌";
|
|
runsunCH.ch4name = @"冲浪/氧泵";
|
|
runsunCH.jiaRe = @"加热棒";
|
|
runsunCH.macAd = macaddress;
|
|
}
|
|
return runsunCH;
|
|
}
|
|
|
|
@end
|