Created
November 5, 2016 17:52
-
-
Save warren-gavin/f9a9f5a1fdf624619cd2471fe52e78aa to your computer and use it in GitHub Desktop.
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 FirebaseDatabase | |
import AcmeJSONLib | |
struct Opinion { | |
let text: String | |
fileprivate let soapBoxing: Bool | |
} | |
// MARK: - Opinions stored in Firebase | |
extension Opinion { | |
init(db: FIRDatabaseReference) { | |
text = //... | |
soapBoxing = //... | |
} | |
} | |
// MARK: - Downloaded references | |
extension Opinion { | |
init(json: AcmeJSONLib) { | |
text = //... | |
soapBoxing = //... | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment