1
This commit is contained in:
34
Pods/LookinServer/Src/Main/Shared/LookinCustomAttrModification.m
generated
Normal file
34
Pods/LookinServer/Src/Main/Shared/LookinCustomAttrModification.m
generated
Normal file
@@ -0,0 +1,34 @@
|
||||
#ifdef SHOULD_COMPILE_LOOKIN_SERVER
|
||||
//
|
||||
// LookinCustomAttrModification.m
|
||||
// LookinShared
|
||||
//
|
||||
// Created by likaimacbookhome on 2023/11/4.
|
||||
//
|
||||
|
||||
#import "LookinCustomAttrModification.h"
|
||||
|
||||
@implementation LookinCustomAttrModification
|
||||
|
||||
- (void)encodeWithCoder:(NSCoder *)aCoder {
|
||||
[aCoder encodeInteger:self.attrType forKey:@"attrType"];
|
||||
[aCoder encodeObject:self.value forKey:@"value"];
|
||||
[aCoder encodeObject:self.customSetterID forKey:@"customSetterID"];
|
||||
}
|
||||
|
||||
- (instancetype)initWithCoder:(NSCoder *)aDecoder {
|
||||
if (self = [super init]) {
|
||||
self.attrType = [aDecoder decodeIntegerForKey:@"attrType"];
|
||||
self.value = [aDecoder decodeObjectForKey:@"value"];
|
||||
self.customSetterID = [aDecoder decodeObjectForKey:@"customSetterID"];
|
||||
}
|
||||
return self;
|
||||
}
|
||||
|
||||
+ (BOOL)supportsSecureCoding {
|
||||
return YES;
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
#endif /* SHOULD_COMPILE_LOOKIN_SERVER */
|
||||
Reference in New Issue
Block a user