Skip to content

Commit 9d5d8aa

Browse files
committed
Rename class.
1 parent ab83f45 commit 9d5d8aa

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

ShadowsocksX-NG/HTTPUserProxy.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import GCDWebServer
1212
class HTTPUserProxy{
1313
static let shard = HTTPUserProxy()
1414

15-
let adapter = APIAdapter()
15+
let adapter = AppFacade()
1616

1717
let server = GCDWebServer()
1818
let api_port:UInt = 9528
@@ -183,10 +183,10 @@ class HTTPUserProxy{
183183
}
184184
}
185185

186-
class APIAdapter {
187-
let SerMgr = ServerProfileManager.instance
188-
let defaults = UserDefaults.standard
189-
let appdeleget = NSApplication.shared.delegate as! AppDelegate
186+
class AppFacade {
187+
private let SerMgr = ServerProfileManager.instance
188+
private let defaults = UserDefaults.standard
189+
private let appdeleget = NSApplication.shared.delegate as! AppDelegate
190190

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

0 commit comments

Comments
 (0)