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 UIKit | |
| import CoreData | |
| class DBManager { | |
| private static var managedObjectContext: NSManagedObjectContext { | |
| return (UIApplication.shared.delegate as! AppDelegate).persistentContainer.viewContext | |
| } | |
| class func create<E>(proccess: (_ object: E) -> Void) -> Bool { | |
| do { |
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 | |
| enum Http { | |
| typealias Callback = (Response) -> Void | |
| enum Response { | |
| case success(data: Any?) | |
| case error(message: String?) | |
| } | |
NewerOlder