Last active
December 16, 2015 13:24
-
-
Save sergdort/3842c428663d70cb7161 to your computer and use it in GitHub Desktop.
This file contains 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
public protocol JSONToEntityMapable { | |
static var map:[String:String] {get} //[entityKey : jsonKey] | |
static var relatedByAttribute:String {get} // entityKey which defines the uniqueness of object | |
static var relatedJsonKey:String {get} // jsonKey which defines the uniqueness of object | |
} | |
extension JSONToEntityMapable { | |
static var map:[String:String] { | |
return [:] | |
} | |
static var relatedByAttribute:String { | |
return "" | |
} | |
static var relatedJsonKey:String { | |
return "" | |
} | |
} | |
extension NSManagedObject:JSONToEntityMapable { | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment