about page now gets information from service
This commit is contained in:
31
FestivalHelper/about/FESAboutEntry.m
Normal file
31
FestivalHelper/about/FESAboutEntry.m
Normal file
@@ -0,0 +1,31 @@
|
||||
//
|
||||
// FESAboutEntry.m
|
||||
// FestivalHelper
|
||||
//
|
||||
// Created by Hamo Hapic on 06/09/14.
|
||||
// Copyright (c) 2014 Senad Uka. All rights reserved.
|
||||
//
|
||||
|
||||
#import "FESAboutEntry.h"
|
||||
|
||||
@implementation FESAboutEntry
|
||||
|
||||
@synthesize aboutId;
|
||||
@synthesize aboutAppRateUrl;
|
||||
@synthesize aboutDescription;
|
||||
@synthesize aboutFestivalName;
|
||||
|
||||
-(id)initWithJSONData:(NSDictionary*)aboutData {
|
||||
self = [super init];
|
||||
if(self){
|
||||
//NSLog(@"initWithJSONData method called");
|
||||
self.aboutId = [[aboutData objectForKey:@"id"] integerValue];
|
||||
self.aboutAppRateUrl = [aboutData objectForKey:@"appRateUrl"];
|
||||
self.aboutDescription = [aboutData objectForKey:@"description"];
|
||||
self.aboutFestivalName = [aboutData objectForKey:@"festivalName"];
|
||||
}
|
||||
return self;
|
||||
|
||||
};
|
||||
|
||||
@end
|
||||
Reference in New Issue
Block a user