Files
keyboard/Pods/LookinServer/Src/Main/Shared/LookinCustomAttrModification.m
2025-10-28 10:18:10 +08:00

35 lines
881 B
Objective-C

#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 */