-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathConfig.h
More file actions
executable file
·114 lines (82 loc) · 2.45 KB
/
Config.h
File metadata and controls
executable file
·114 lines (82 loc) · 2.45 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
//
// Config.h
// contentstack
//
// Created by Priyanka Mistry on 01/06/16.
// Copyright © 2016 Contentstack. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <Contentstack/ContentstackDefinitions.h>
#import <Contentstack/CSURLSessionDelegate.h>
@interface Config : NSObject
/**----------------------------------------------------------------------------------------
* @name Properties
*-----------------------------------------------------------------------------------------
*/
//MARK: - Contentstack host
/**
Host name of Contentstack api server.
//Obj-C
Config *config = [[Config alloc] init];
config.host = @"api.contentstack.io";
//Swift
var config:Config = Config()
config.host = "api.contentstack.io"
*/
@property (nonatomic, copy) NSString *host;
/**
Region name of Contentstack Database server.
//Obj-C
Config *config = [[Config alloc] init];
region = ContentstackRegion.EU;
//Swift
var config:Config = Config()
region = ContentstackRegion.eu
*/
@property (nonatomic) ContentstackRegion region;
/**
API version of Contentstack api server.
//Obj-C
Config *config = [[Config alloc] init];
NSString version = config.version;
//Swift
var config:Config = Config()
let version = config.version
*/
@property (nonatomic, copy, readonly) NSString *version;
/**
Branch id for the
//Obj-C
Config *config = [[Config alloc] init];
NSString branch = config.branch;
//Swift
var config:Config = Config()
let branch = config.branch
*/
@property (nonatomic, copy) NSString *branch;
/**
Branch id for the
//Obj-C
Config *config = [[Config alloc] init];
config.delegate = [[CSDelegate alloc] init];
//Swift
var config:Config = Config()
config.delegate = CSDelegate()
*/
@property (nullable, retain) id<CSURLSessionDelegate> delegate;
/**
Early access features
//Obj-C
Config *config = [[Config alloc] init];
[config setEarlyAccess:@[@"Taxonomy", @"Teams", @"Terms", @"LivePreview"]];
//Swift
let config = Config()
config.setEarlyAccess(["Taxonomy", "Teams", "Terms", "LivePreview"])
*/
@property (nonatomic, strong, nullable) NSArray<NSString *> *setEarlyAccess;
/**
Set early access features
@param setearlyAccess An array of early access feature names
*/
- (NSDictionary<NSString *, NSString *> *)earlyAccessHeaders;
@end