-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGeneratedEvents.swift
52 lines (37 loc) · 963 Bytes
/
GeneratedEvents.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
// Autogenerated in SwiftHeroes 24 🐥😎
// Don't you dare to touch this file!
import Foundation
/// Started watching a talk video
struct StartedPlaybackEvent {
let name = "StartedPlayback"
let talkId: String
var data: [String: String] {
"talkId": talkId,
}
}
/// Stopped watching a talk video
struct StoppedPlaybackEvent {
let name = "StoppedPlayback"
let talkId: String
let duration: String
var data: [String: String] {
"talkId": talkId,
"duration": duration,
}
}
/// User reached the checkout page
struct ReachedCheckoutEvent {
let name = "ReachedCheckout"
let productIds: String
var data: [String: String] {
"productIds": productIds,
}
}
/// User purchased tickets, yay!
struct PurchasedTicketsEvent {
let name = "PurchasedTickets"
let totalAmount: String
var data: [String: String] {
"totalAmount": totalAmount,
}
}