 import CloudKit
 
 class MeetingServices: NSObject, MeetingDelegate {
+
     
     let ckHandler: CloudKitHandler
     let userServices: UserServices

    
    
    func createMeeting(title: String, date: NSDate, moderatorRecordID: CKRecordID) {
        //qual o recordID de uma meeting?
        let recordID = CKRecordID(recordName: String(title))
        let userRecord = CKRecord(recordType: "Meeting", recordID: recordID)
        
        print("Creating meeting \(title)")
        
        userRecord["title"] = title as NSString
        userRecord["date"] = date as NSDate
        userRecord["moderator"] = String(fbID) as NSString
        
        
        ckHandler.saveRecord(record: userRecord)
    }
    
    

    
    
    func getUserMeetings(userRecordID: CKRecordID, _ nextMeetings: Bool, completionHandler: @escaping ([CKRecord]?, Error?) -> Void) {
        
        print("Getting user meetings")
        
        let userReference = CKReference(recordID: userRecordID, action: .none)
        let predicate = NSPredicate(format: "user = %@ in participants", userReference) //ATENTION!
        let query = CKQuery(recordType: "Meeting", predicate: predicate)
