forked from Teknasyon-Teknoloji/deepwall-flutter-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathevents.dart
45 lines (41 loc) · 1.58 KB
/
events.dart
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
enum Event {
PAYWALL_REQUESTED,
PAYWALL_RESPONSE_RECEIVED,
PAYWALL_RESPONSE_FAILURE,
PAYWALL_OPENED,
PAYWALL_NOT_OPENED,
PAYWALL_ACTION_SHOW_DISABLED,
PAYWALL_CLOSED,
PAYWALL_EXTRA_DATA_RECEIVED,
PAYWALL_PURCHASING_PRODUCT,
PAYWALL_PURCHASE_SUCCESS,
PAYWALL_PURCHASE_FAILED,
PAYWALL_RESTORE_SUCCESS,
PAYWALL_RESTORE_FAILED,
PAYWALL_CONSUME_SUCCESS,
PAYWALL_CONSUME_FAILURE,
ATT_STATUS_CHANGED
}
extension DeepwallEvent on Event {
static const values = {
Event.PAYWALL_REQUESTED: 'deepWallPaywallRequested',
Event.PAYWALL_RESPONSE_RECEIVED: 'deepWallPaywallResponseReceived',
Event.PAYWALL_RESPONSE_FAILURE: 'deepWallPaywallResponseFailure',
Event.PAYWALL_OPENED: 'deepWallPaywallOpened',
Event.PAYWALL_NOT_OPENED: 'deepWallPaywallNotOpened',
Event.PAYWALL_ACTION_SHOW_DISABLED: 'deepWallPaywallActionShowDisabled',
Event.PAYWALL_CLOSED: 'deepWallPaywallClosed',
Event.PAYWALL_EXTRA_DATA_RECEIVED: 'deepWallPaywallExtraDataReceived',
Event.PAYWALL_PURCHASING_PRODUCT: 'deepWallPaywallPurchasingProduct',
Event.PAYWALL_PURCHASE_SUCCESS: 'deepWallPaywallPurchaseSuccess',
Event.PAYWALL_PURCHASE_FAILED: 'deepWallPaywallPurchaseFailed',
Event.PAYWALL_RESTORE_SUCCESS: 'deepWallPaywallRestoreSuccess',
Event.PAYWALL_RESTORE_FAILED: 'deepWallPaywallRestoreFailed',
// android ONLY
Event.PAYWALL_CONSUME_SUCCESS: 'deepWallPaywallConsumeSuccess',
Event.PAYWALL_CONSUME_FAILURE: 'deepWallPaywallConsumeFailure',
// ios ONLY
Event.ATT_STATUS_CHANGED: 'deepWallATTStatusChanged',
};
String? get value => values[this];
}