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
38
39
40
41
42
43
44
//
// HCPFetchUpdateOptions.h
//
// Created by Nikolay Demyankov on 24.05.16.
//
#import <Foundation/Foundation.h>
/**
* Model for fetch update options.
*/
@interface HCPFetchUpdateOptions : NSObject
/**
* URL to the config file (chcp.json).
*/
@property (nonatomic, strong, readonly) NSURL *configFileURL;
/**
* Additional request headers.
*/
@property (nonatomic, strong, readonly) NSDictionary<NSString *, NSString *> *requestHeaders;
/**
* Constructor.
*
* @param configFileURL config file url
* @param requestHeaders request headers
*
* @return object instance
*/
- (instancetype)initWithConfigURL:(NSURL *)configFileURL requestHeaders:(NSDictionary<NSString *, NSString *> *)requestHeaders;
/**
* Constructor.
* Used internally in the plugin.
*
* @param dictionary dictionary with options from the JS side
*
* @return object instance
*/
- (instancetype)initWithDictionary:(NSDictionary *)dictionary;
@end