     internal typealias Date = NSDate
 #endif
 
+#if swift(>=3.0)
 protocol NotificationName {
     var name: Notification.Name { get }
 }

        return Notification.Name("Sentry/" + self.rawValue)
    }
}

@objc public class SentryClient: NSObject, EventProperties {
    
    private enum Notifications: String, NotificationName {
        case eventSentSuccessfully // Sentry/eventSentSuccessfully
    }
    
    // MARK: - Static Attributes
    

            guard let event = lastEvent else {
                return
            }
            #if swift(>=3.0)
            NotificationCenter.default.post(name: Notifications.eventSentSuccessfully.name, object: nil, userInfo: event.serialized)
            #else
            NSNotificationCenter.defaultCenter().postNotificationName(Notifications.eventSentSuccessfully.rawValue, object: nil, userInfo: event.serialized)
            #endif
            
        }
    }
    
