#ifdef SHOULD_COMPILE_LOOKIN_SERVER // // LookinAttribute.m // qmuidemo // // Created by Li Kai on 2018/11/17. // Copyright © 2018 QMUI Team. All rights reserved. // #import "LookinAttribute.h" #import "LookinDisplayItem.h" @implementation LookinAttribute #pragma mark - - (id)copyWithZone:(NSZone *)zone { LookinAttribute *newAttr = [[LookinAttribute allocWithZone:zone] init]; newAttr.identifier = self.identifier; newAttr.value = self.value; newAttr.attrType = self.attrType; return newAttr; } #pragma mark - - (void)encodeWithCoder:(NSCoder *)aCoder { [aCoder encodeObject:self.identifier forKey:@"identifier"]; [aCoder encodeInteger:self.attrType forKey:@"attrType"]; [aCoder encodeObject:self.value forKey:@"value"]; } - (instancetype)initWithCoder:(NSCoder *)aDecoder { if (self = [super init]) { self.identifier = [aDecoder decodeObjectForKey:@"identifier"]; self.attrType = [aDecoder decodeIntegerForKey:@"attrType"]; self.value = [aDecoder decodeObjectForKey:@"value"]; } return self; } + (BOOL)supportsSecureCoding { return YES; } @end #endif /* SHOULD_COMPILE_LOOKIN_SERVER */