JLChen
2021-10-28 e96683081abd5c1a94608dd33d092d8f45371cd6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
//
//  Copyright © 2017年 Zhejiang Dahua Technology Co.,Ltd. All rights reserved.
//
 
#import <LCNetworkModule/DHApInfo.h>
 
@implementation DHApBasicInfo
 
#pragma mark - KVC
- (id)valueForUndefinedKey:(NSString *)key {
    return nil;
}
 
- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
    
}
 
@end
 
 
@implementation DHApState
 
@end
 
@implementation DHApInfo
 
#pragma mark - 扩展属性
//- (DHOnlineStatus)dh_onlineStatus {
//    return [DHStatusParser parseOnlineStatus:self.apStatus];
//}
 
#pragma mark - KVC
- (id)valueForUndefinedKey:(NSString *)key {
    return nil;
}
 
- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
    
}
 
- (BOOL)dh_apEnable {
    return [self.apEnable.lowercaseString isEqualToString:@"on"] ? YES : false;
}
 
- (void)setDh_apEnable:(BOOL)dh_apEnable {
    self.apEnable = dh_apEnable ? @"on" : @"off";
}
 
@end