Newer
Older
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
//
// HCPApplicationConfig.h
//
// Created by Nikolay Demyankov on 10.08.15.
//
#import <Foundation/Foundation.h>
#import "HCPJsonConvertable.h"
#import "HCPContentConfig.h"
/**
* Model for application config. Holds information from chcp.json file.
*/
@interface HCPApplicationConfig : NSObject<HCPJsonConvertable>
/**
* Getter for url, that leeds to the applications page on the App Store.
*/
@property (nonatomic, strong, readonly) NSString *storeUrl;
/**
* Getter for content config.
*
* @see HCPContentConfig
*/
@property (nonatomic, strong, readonly) HCPContentConfig *contentConfig;
/**
* Create instance of the application config from the configuration file in assets.
*
* @param configFileName name of the configuration file
*
* @return config instance
*/
+ (instancetype)configFromBundle:(NSString *)configFileName;
@end