Skip to content

Instantly share code, notes, and snippets.

@soxjke
Last active October 30, 2017 19:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save soxjke/4c38ab6ea8f0190966a7d17789248f0a to your computer and use it in GitHub Desktop.
Save soxjke/4c38ab6ea8f0190966a7d17789248f0a to your computer and use it in GitHub Desktop.
import Foundation
enum AppEvent {
case locationPermissionResult(success: Bool)
case locationRequest
case locationResult(latitude: Double, longitude: Double, timestamp: TimeInterval, error: Error?)
case geopositionRequest
case geopositionResult(geoposition: Geoposition, error: Error?)
case weatherRequest
case weatherResult(current: Weather, forecast: [Weather], error: Error?)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment