- - (void)encodeWithCoder:(NSCoder *)coder;
- {
- [coder encodeObject:username_ forKey:@"username"];
- [coder encodeObject:password_ forKey:@"password"];
- [coder encodeBool:remember_ forKey:@"remember"];
- [coder encodeBool:autoLogin_ forKey:@"autologin"];
- }
- - (id)initWithCoder:(NSCoder *)coder;
- {
- self = [[LoginUserInfo alloc] init];
- if (self != nil)
- {
- self.username = [coder decodeObjectForKey:@"username"];
- self.password = [coder decodeObjectForKey:@"password"];
- self.remember = [coder decodeBoolForKey:@"remember"];
- self.autoLogin = [coder decodeBoolForKey:@"autologin"];
- }
- return self;
- }