Created
May 13, 2019 13:29
-
-
Save jgsamudio/797ecbb1cffc8bb0bf7e81c03493c622 to your computer and use it in GitHub Desktop.
LocationNotificationInfo object for the LocationNotificationScheduler
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
import CoreLocation | |
struct LocationNotificationInfo { | |
// Identifiers | |
let notificationId: String | |
let locationId: String | |
// Location | |
let radius: Double | |
let latitude: Double | |
let longitude: Double | |
// Notification | |
let title: String | |
let body: String | |
let data: [String: Any]? | |
/// CLLocation Coordinates | |
var coordinates: CLLocationCoordinate2D { | |
return CLLocationCoordinate2D(latitude: latitude, | |
longitude: longitude) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment