Created
February 27, 2021 21:49
-
-
Save fakiho/e00fce278828539783a5cbedb3190e68 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| protocol VPNRepository { | |
| var manager: NEVPNManager { get } | |
| var selectedVPN: String { get set } | |
| var activatedVPN: String { get set } | |
| var status: NEVPNStatus { get set } | |
| func loadPreferences(completion: @escaping () -> ()) | |
| func save(config: VPNAccount, completion: @escaping () -> Void) | |
| func connect() | |
| func saveAndConnect(_ account: VPNAccount) | |
| func configOnDemand() | |
| func disconnect() | |
| func removeProfile() | |
| func registerNotification() | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment