@@ -23,71 +23,71 @@ type NotificationResponse = frontend.NotificationResponse
23
23
type NotificationResult = frontend.NotificationResult
24
24
25
25
func InitializeNotifications (ctx context.Context ) error {
26
- frontend := getFrontend (ctx )
27
- return frontend .InitializeNotifications ()
26
+ appFrontend := getFrontend (ctx )
27
+ return appFrontend .InitializeNotifications ()
28
28
}
29
29
30
30
func IsNotificationAvailable (ctx context.Context ) bool {
31
- frontend := getFrontend (ctx )
32
- return frontend .IsNotificationAvailable ()
31
+ appFrontend := getFrontend (ctx )
32
+ return appFrontend .IsNotificationAvailable ()
33
33
}
34
34
35
35
func RequestNotificationAuthorization (ctx context.Context ) (bool , error ) {
36
- frontend := getFrontend (ctx )
37
- return frontend .RequestNotificationAuthorization ()
36
+ appFrontend := getFrontend (ctx )
37
+ return appFrontend .RequestNotificationAuthorization ()
38
38
}
39
39
40
40
func CheckNotificationAuthorization (ctx context.Context ) (bool , error ) {
41
- frontend := getFrontend (ctx )
42
- return frontend .CheckNotificationAuthorization ()
41
+ appFrontend := getFrontend (ctx )
42
+ return appFrontend .CheckNotificationAuthorization ()
43
43
}
44
44
45
45
func SendNotification (ctx context.Context , options frontend.NotificationOptions ) error {
46
- frontend := getFrontend (ctx )
47
- return frontend .SendNotification (options )
46
+ appFrontend := getFrontend (ctx )
47
+ return appFrontend .SendNotification (options )
48
48
}
49
49
50
50
func SendNotificationWithActions (ctx context.Context , options frontend.NotificationOptions ) error {
51
- frontend := getFrontend (ctx )
52
- return frontend .SendNotificationWithActions (options )
51
+ appFrontend := getFrontend (ctx )
52
+ return appFrontend .SendNotificationWithActions (options )
53
53
}
54
54
55
55
func RegisterNotificationCategory (ctx context.Context , category frontend.NotificationCategory ) error {
56
- frontend := getFrontend (ctx )
57
- return frontend .RegisterNotificationCategory (category )
56
+ appFrontend := getFrontend (ctx )
57
+ return appFrontend .RegisterNotificationCategory (category )
58
58
}
59
59
60
60
func RemoveNotificationCategory (ctx context.Context , categoryId string ) error {
61
- frontend := getFrontend (ctx )
62
- return frontend .RemoveNotificationCategory (categoryId )
61
+ appFrontend := getFrontend (ctx )
62
+ return appFrontend .RemoveNotificationCategory (categoryId )
63
63
}
64
64
65
65
func RemoveAllPendingNotifications (ctx context.Context ) error {
66
- frontend := getFrontend (ctx )
67
- return frontend .RemoveAllPendingNotifications ()
66
+ appFrontend := getFrontend (ctx )
67
+ return appFrontend .RemoveAllPendingNotifications ()
68
68
}
69
69
70
70
func RemovePendingNotification (ctx context.Context , identifier string ) error {
71
- frontend := getFrontend (ctx )
72
- return frontend .RemovePendingNotification (identifier )
71
+ appFrontend := getFrontend (ctx )
72
+ return appFrontend .RemovePendingNotification (identifier )
73
73
}
74
74
75
75
func RemoveAllDeliveredNotifications (ctx context.Context ) error {
76
- frontend := getFrontend (ctx )
77
- return frontend .RemoveAllDeliveredNotifications ()
76
+ appFrontend := getFrontend (ctx )
77
+ return appFrontend .RemoveAllDeliveredNotifications ()
78
78
}
79
79
80
80
func RemoveDeliveredNotification (ctx context.Context , identifier string ) error {
81
- frontend := getFrontend (ctx )
82
- return frontend .RemoveDeliveredNotification (identifier )
81
+ appFrontend := getFrontend (ctx )
82
+ return appFrontend .RemoveDeliveredNotification (identifier )
83
83
}
84
84
85
85
func RemoveNotification (ctx context.Context , identifier string ) error {
86
- frontend := getFrontend (ctx )
87
- return frontend .RemoveNotification (identifier )
86
+ appFrontend := getFrontend (ctx )
87
+ return appFrontend .RemoveNotification (identifier )
88
88
}
89
89
90
90
func OnNotificationResponse (ctx context.Context , callback func (result frontend.NotificationResult )) {
91
- frontend := getFrontend (ctx )
92
- frontend .OnNotificationResponse (callback )
91
+ appFrontend := getFrontend (ctx )
92
+ appFrontend .OnNotificationResponse (callback )
93
93
}
0 commit comments