Set username and password via properties instead of adapter method

This commit is contained in:
Sergey Abramchuk
2017-03-06 21:24:02 +03:00
parent 5ef43a447c
commit 57577377e1
2 changed files with 16 additions and 11 deletions
@@ -32,13 +32,14 @@ NS_SWIFT_NAME(handle(error:));
@interface OpenVPNAdapter (Provider)
@property (strong, nonatomic, nullable) NSString *username;
@property (strong, nonatomic, nullable) NSString *password;
@property (weak, nonatomic, null_unspecified) id<OpenVPNAdapterDelegate> delegate;
- (BOOL)configureWithUsername:(nonnull NSString *)username
password:(nonnull NSString *)password
configuration:(nonnull NSData *)configuration
error:(out NSError * __nullable * __nullable)error
NS_SWIFT_NAME(configure(username:password:configuration:));
- (BOOL)configureUsing:(nonnull NSData *)settings
error:(out NSError * __nullable * __nullable)error
NS_SWIFT_NAME(configure(using:));
- (void)connect;
- (void)disconnect;