Skip to content

Commit

Permalink
Rename class.
Browse files Browse the repository at this point in the history
  • Loading branch information
yangziy committed Sep 27, 2018
1 parent ab83f45 commit 9d5d8aa
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions ShadowsocksX-NG/HTTPUserProxy.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import GCDWebServer
class HTTPUserProxy{
static let shard = HTTPUserProxy()

let adapter = APIAdapter()
let adapter = AppFacade()

let server = GCDWebServer()
let api_port:UInt = 9528
Expand Down Expand Up @@ -183,10 +183,10 @@ class HTTPUserProxy{
}
}

class APIAdapter {
let SerMgr = ServerProfileManager.instance
let defaults = UserDefaults.standard
let appdeleget = NSApplication.shared.delegate as! AppDelegate
class AppFacade {
private let SerMgr = ServerProfileManager.instance
private let defaults = UserDefaults.standard
private let appdeleget = NSApplication.shared.delegate as! AppDelegate

func getStatus()->Bool {
return self.defaults.bool(forKey: "ShadowsocksOn");
Expand Down

0 comments on commit 9d5d8aa

Please sign in to comment.