-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAVFUsuario.m
37 lines (28 loc) · 911 Bytes
/
AVFUsuario.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
//
// AVFUsuario.m
// TREA
//
// Created by andre vinicius alves fonseca on 12/08/14.
// Copyright (c) 2014 Andre Ltda. All rights reserved.
//
#import "AVFUsuario.h"
#import "AVFUsuario.h"
@implementation AVFUsuario
- (NSString *)description
{
return [NSString stringWithFormat:@"nome:%@ sexo:%@ data: %@", self.idParticipante,self.sexo, self.dataNasc];
}
-(id)initWithCoder:(NSCoder *)aDecoder{
if(self = [super init]){
self.idParticipante = [aDecoder decodeObjectForKey:@"idParticipante"];
self.sexo = [aDecoder decodeObjectForKey:@"sexo"];
self.dataNasc = [aDecoder decodeObjectForKey:@"dataNasc"];
}
return self;
}
-(void)encodeWithCoder:(NSCoder *)aCoder{
[aCoder encodeObject: _idParticipante forKey:@"idParticipante"];
[aCoder encodeObject: _dataNasc forKey:@"dataNasc"];
[aCoder encodeObject: _sexo forKey:@"sexo"];
}
@end