sensitivity.io for iOS & macOS  1.1.4
HttpRetriever.h
1 //
2 // HttpRetriever.h
3 //
4 // Created by Andreea ERDELYI <andreea.erdelyi@cososys.com>
5 //
6 // Copyright (C) 2017 CoSoSys Ltd team@sensitivity.io
7 // CoSoSys Ltd. All rights reserved.
8 // Please see the COPYING for more details.
9 //
10 
11 #import <Foundation/Foundation.h>
12 
18 @interface HttpRetriever : NSObject
19 
20 // MARK: - class methods
21 
31 +(BOOL) setHostName:(NSString * _Nonnull)hostName withError:(NSError * _Nullable * _Nullable)error;
38 +(NSString * _Nullable) hostNameWithError:(NSError * _Nullable * _Nullable)error;
39 
49 +(BOOL) setApiVersion:(NSString * _Nonnull)apiVersion withError:(NSError * _Nullable * _Nullable)error;
56 +(NSString * _Nullable) apiVersionWithError:(NSError * _Nullable * _Nullable)error;
57 
65 +(BOOL) setAccountId:(NSString * _Nonnull)accountId withError:(NSError * _Nullable * _Nullable)error;
72 +(NSString * _Nullable) accountIdWithError:(NSError * _Nullable * _Nullable)error;
73 
81 +(BOOL) setProjectId:(NSString * _Nonnull)projectId withError:(NSError * _Nullable * _Nullable)error;
88 +(NSString * _Nullable) projectIdWithError:(NSError * _Nullable * _Nullable)error;
89 
97 +(BOOL) setAuthenticationKey:(NSString * _Nonnull)authenticationKey withError:(NSError * _Nullable * _Nullable)error;
104 +(NSString * _Nullable) authenticationKeyWithError:(NSError * _Nullable * _Nullable)error;
105 
113 +(BOOL) setApplicationId:(NSString * _Nonnull)applicationId withError:(NSError * _Nullable * _Nullable)error;
120 +(NSString * _Nullable) applicationIdWithError:(NSError * _Nullable * _Nullable)error;
121 
122 // MARK: - instance methods
123 
130 - (NSString * _Nullable) destinationFileWithError:(NSError * _Nullable * _Nullable)error;
138 - (BOOL) setDestinationFile:(NSString * _Nonnull)destinationFile withError:(NSError * _Nullable * _Nullable)error;
139 
146 - (NSString * _Nullable) urlStringWithError:(NSError * _Nullable * _Nullable)error;
147 
157 - (BOOL) retrieveToFileWithError:(NSError * _Nullable * _Nullable)error;
167 - (NSString * _Nullable) retrieveToStringWithError:(NSError * _Nullable * _Nullable)error NS_SWIFT_NAME(retrieve());
168 
169 @end
Definition: HttpRetriever.h:18