//
//  riskass_answer.m
//  EC145
//
//  Created by KulanaMac on 5/26/14.
//
//

#import "riskass_answer.h"

@implementation riskass_answer

@synthesize Answer;
@synthesize points;



-(id) initWithAnswer:(NSString*)theAnswer AndPoints:(int)thePoints;
{
    Answer=theAnswer;
    points=thePoints;
    return self;
}

- (id) initWithCoder: (NSCoder *)coder
{
    if (self = [super init])
    {
    	self.Answer = [coder decodeObjectForKey:@"Answer"];
    	self.points = [[coder decodeObjectForKey:@"points"] intValue];
    }
    return self;
}

- (void) encodeWithCoder: (NSCoder *)coder
{
    [coder encodeObject:Answer forKey:@"Answer"];
    [coder encodeObject:[[NSString alloc] initWithFormat:@"%i",points] forKey:@"points"];
    
}


@end
