Skip to content

Instantly share code, notes, and snippets.

@emenegro
Last active March 21, 2017 21:04
Show Gist options
  • Save emenegro/1b73ac4d0f346263f296e7ec6af1d11c to your computer and use it in GitHub Desktop.
Save emenegro/1b73ac4d0f346263f296e7ec6af1d11c to your computer and use it in GitHub Desktop.
struct OfflineAction {
enum `Type` {
case cache, get, delete
}
fileprivate(set) var type: Type?
fileprivate(set) var request: OfflineRequestConvertible?
fileprivate(set) var data: Data?
fileprivate(set) var id: String?
fileprivate(set) var encryptionKey: String?
fileprivate(set) var keepAliveUntil: Date?
fileprivate(set) var ifBefore: Date?
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment