venues now have correct information on them

This commit is contained in:
Senad Uka
2014-09-05 07:27:19 +02:00
parent 0e1b3048ce
commit 7bea7f47fc
15 changed files with 475 additions and 64 deletions

View File

@@ -0,0 +1,32 @@
//
// FESVenueEntry.m
// FestivalHelper
//
// Created by Hamo Hapic on 04/09/14.
// Copyright (c) 2014 Senad Uka. All rights reserved.
//
#import "FESVenueEntry.h"
@implementation FESVenueEntry
@synthesize venueEntryId;
@synthesize venueName;
@synthesize venueAddress;
@synthesize venueCapacity;
-(id)initWithJSONData:(NSDictionary*)data{
self = [super init];
if(self){
//NSLog(@"initWithJSONData method called");
self.venueEntryId = [[data objectForKey:@"id"] integerValue];
self.venueName = [data objectForKey:@"name"];
self.venueAddress = [data objectForKey:@"address"];
self.venueCapacity = [data objectForKey:@"capacity"];
}
return self;
}
@end