-
Notifications
You must be signed in to change notification settings - Fork 0
/
PAUser.m
39 lines (31 loc) · 797 Bytes
/
PAUser.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
38
39
//
// PAUser.m
// prayApp
//
// Created by Jeff Wang on 12/11/13.
// Copyright (c) 2013 Jeff Wang. All rights reserved.
//
#import "PAUser.h"
@implementation PAUser
@synthesize userID, userName, groupList, prayerList;
- (id)initWithDict:(NSDictionary*)dict{
self = [self init];
if (self && dict != nil){
userName = [dict objectForKey:@"name"];
groupList = [dict objectForKey:@"groups"];
prayerList = [dict objectForKey:@"prayers"];
}
return self;
}
- (id) initWithCoder:(NSCoder *)decoder
{
return self;
}
- (void)encodeWithCoder:(NSCoder *)encoder
{
}
- (NSString*)description{
NSString* string = [NSString stringWithFormat:@"Name:%@, groups:%@, prayers:%@", self.userName, self.groupList, self.prayerList];
return string;
}
@end