Created
September 18, 2015 13:35
-
-
Save 3lvis/35489e5f1f3fc7132e61 to your computer and use it in GitHub Desktop.
NetworkingClient.swift
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
import Foundation | |
import Networking | |
import DATAStack | |
import Sync | |
import JSON | |
class NetworkingClient { | |
var data: DATAStack! | |
var networking: Networking! | |
// MARK: - Initializers | |
init(baseURL: String, modelName: String) { | |
self.data = DATAStack(modelName: modelName) | |
self.networking = Networking(baseURL: baseURL) | |
} | |
// MARK: - Public methods | |
func persistWithCompletion(completion: () -> ()) { | |
data.persistWithCompletion(completion) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment