From the chat SDK, there is some code to copy a SKYRecord and create a custom subclass (such as SKYMessage. I suggest that we make `SKYRecordDeserializer deserializer] to return a singleton object and SDK user can register subclass to be used for deserialization when the deserializer encounter certain types:
id der = [SKYRecordDeserializer deserializer];
[der registerRecordClass:[SKYMessage class] forType:@"message"];
id record = [der recordWithDictionary:recordDict];
[record isKindOfClass:[SKYMessage class]]; // true
From the chat SDK, there is some code to copy a
SKYRecord
and create a custom subclass (such asSKYMessage
. I suggest that we make`SKYRecordDeserializer deserializer]
to return a singleton object and SDK user can register subclass to be used for deserialization when the deserializer encounter certain types: