Skip to content

Instantly share code, notes, and snippets.

@fakiho
Created February 27, 2021 21:49
Show Gist options
  • Select an option

  • Save fakiho/e00fce278828539783a5cbedb3190e68 to your computer and use it in GitHub Desktop.

Select an option

Save fakiho/e00fce278828539783a5cbedb3190e68 to your computer and use it in GitHub Desktop.
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