Advertisement
Guest User

Untitled

a guest
Mar 30th, 2017
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. @objc final class Database : NSObject
  2. {
  3. var spamRef: FIRDatabaseReference! = nil
  4. var snapshot:FIRDataSnapshot? = nil
  5.  
  6. override init()
  7. {
  8. FIRDatabase.database().persistenceEnabled = true
  9. FIRApp.configure()
  10. spamRef = FIRDatabase.database().reference(withPath: "spam_list")
  11. _ = spamRef.observe(FIRDataEventType.value, with: { (theSnapshot) in
  12. self.snapshot = theSnapshot
  13. ...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement