-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathEvent.m
More file actions
50 lines (41 loc) · 1009 Bytes
/
Event.m
File metadata and controls
50 lines (41 loc) · 1009 Bytes
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
40
41
42
43
44
45
46
47
48
49
50
//
// Event.m
// TwentyFirstCenturyTag
//
// Created by Chris Ballinger on 7/27/11.
// Copyright 2011 __MyCompanyName__. All rights reserved.
//
#import "Event.h"
@implementation Event
@synthesize venueid;
@synthesize userid;
@synthesize teamid;
@synthesize msg;
@synthesize time;
@synthesize points;
- (id)init
{
self = [super init];
if (self) {
APITYPE = @"Event";
VENUEID = @"poi_id";
USERID = @"user_id";
TEAMID = @"team_id";
MSG = @"message";
TIME = @"time";
POINTS = @"points";
}
return self;
}
//iAPI methods
-(void) parseDictionary:(NSDictionary *)fields
{
[super parseDictionary:fields];
self.venueid = [fields objectForKey:VENUEID];
self.userid = [fields objectForKey:USERID];
self.teamid = [fields objectForKey:TEAMID];
self.msg = [fields objectForKey:MSG];
self.points = [fields objectForKey:POINTS];
self.time = [fields objectForKey:TIME];
}
@end