27 lines
670 B
Objective-C
27 lines
670 B
Objective-C
//
|
|
// CheckNewVersionResult.m
|
|
// Yoosee
|
|
//
|
|
// Created by guojunyi on 14-6-16.
|
|
// Copyright (c) 2014年 guojunyi. All rights reserved.
|
|
//
|
|
|
|
#import "CheckNewMessageResult.h"
|
|
|
|
@implementation CheckNewMessageResult
|
|
-(void)encodeWithCoder:(NSCoder *)aCoder{
|
|
|
|
[aCoder encodeBool:self.isNewContactMessage forKey:@"isNewContactMessage"];
|
|
[aCoder encodeInt:self.error_code forKey:@"error_code"];
|
|
}
|
|
|
|
-(id)initWithCoder:(NSCoder *)aDecoder{
|
|
self = [super init];
|
|
if(self){
|
|
self.isNewContactMessage = [aDecoder decodeBoolForKey:@"isNewContactMessage"];
|
|
self.error_code = [aDecoder decodeIntForKey:@"error_code"];
|
|
}
|
|
return self;
|
|
}
|
|
@end
|