venues now have correct information on them
This commit is contained in:
32
FestivalHelper/venues/FESVenueEntry.m
Normal file
32
FestivalHelper/venues/FESVenueEntry.m
Normal 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
|
||||
Reference in New Issue
Block a user