17
17
from firebase_admin import exceptions
18
18
19
19
20
- class Notification ( object ) :
20
+ class Notification :
21
21
"""A notification that can be included in a message.
22
22
23
23
Args:
@@ -32,7 +32,7 @@ def __init__(self, title=None, body=None, image=None):
32
32
self .image = image
33
33
34
34
35
- class AndroidConfig ( object ) :
35
+ class AndroidConfig :
36
36
"""Android-specific options that can be included in a message.
37
37
38
38
Args:
@@ -62,7 +62,7 @@ def __init__(self, collapse_key=None, priority=None, ttl=None, restricted_packag
62
62
self .fcm_options = fcm_options
63
63
64
64
65
- class AndroidNotification ( object ) :
65
+ class AndroidNotification :
66
66
"""Android-specific notification parameters.
67
67
68
68
Args:
@@ -178,7 +178,7 @@ def __init__(self, title=None, body=None, icon=None, color=None, sound=None, tag
178
178
self .notification_count = notification_count
179
179
180
180
181
- class LightSettings ( object ) :
181
+ class LightSettings :
182
182
"""Represents settings to control notification LED that can be included in a
183
183
``messaging.AndroidNotification``.
184
184
@@ -196,7 +196,7 @@ def __init__(self, color, light_on_duration_millis,
196
196
self .light_off_duration_millis = light_off_duration_millis
197
197
198
198
199
- class AndroidFCMOptions ( object ) :
199
+ class AndroidFCMOptions :
200
200
"""Options for features provided by the FCM SDK for Android.
201
201
202
202
Args:
@@ -208,7 +208,7 @@ def __init__(self, analytics_label=None):
208
208
self .analytics_label = analytics_label
209
209
210
210
211
- class WebpushConfig ( object ) :
211
+ class WebpushConfig :
212
212
"""Webpush-specific options that can be included in a message.
213
213
214
214
Args:
@@ -230,7 +230,7 @@ def __init__(self, headers=None, data=None, notification=None, fcm_options=None)
230
230
self .fcm_options = fcm_options
231
231
232
232
233
- class WebpushNotificationAction ( object ) :
233
+ class WebpushNotificationAction :
234
234
"""An action available to the users when the notification is presented.
235
235
236
236
Args:
@@ -245,7 +245,7 @@ def __init__(self, action, title, icon=None):
245
245
self .icon = icon
246
246
247
247
248
- class WebpushNotification ( object ) :
248
+ class WebpushNotification :
249
249
"""Webpush-specific notification parameters.
250
250
251
251
Refer to the `Notification Reference`_ for more information.
@@ -302,7 +302,7 @@ def __init__(self, title=None, body=None, icon=None, actions=None, badge=None, d
302
302
self .custom_data = custom_data
303
303
304
304
305
- class WebpushFCMOptions ( object ) :
305
+ class WebpushFCMOptions :
306
306
"""Options for features provided by the FCM SDK for Web.
307
307
308
308
Args:
@@ -314,7 +314,7 @@ def __init__(self, link=None):
314
314
self .link = link
315
315
316
316
317
- class APNSConfig ( object ) :
317
+ class APNSConfig :
318
318
"""APNS-specific options that can be included in a message.
319
319
320
320
Refer to `APNS Documentation`_ for more information.
@@ -335,7 +335,7 @@ def __init__(self, headers=None, payload=None, fcm_options=None):
335
335
self .fcm_options = fcm_options
336
336
337
337
338
- class APNSPayload ( object ) :
338
+ class APNSPayload :
339
339
"""Payload of an APNS message.
340
340
341
341
Args:
@@ -349,7 +349,7 @@ def __init__(self, aps, **kwargs):
349
349
self .custom_data = kwargs
350
350
351
351
352
- class Aps ( object ) :
352
+ class Aps :
353
353
"""Aps dictionary to be included in an APNS payload.
354
354
355
355
Args:
@@ -379,7 +379,7 @@ def __init__(self, alert=None, badge=None, sound=None, content_available=None, c
379
379
self .custom_data = custom_data
380
380
381
381
382
- class CriticalSound ( object ) :
382
+ class CriticalSound :
383
383
"""Critical alert sound configuration that can be included in ``messaging.Aps``.
384
384
385
385
Args:
@@ -398,7 +398,7 @@ def __init__(self, name, critical=None, volume=None):
398
398
self .volume = volume
399
399
400
400
401
- class ApsAlert ( object ) :
401
+ class ApsAlert :
402
402
"""An alert that can be included in ``messaging.Aps``.
403
403
404
404
Args:
@@ -437,7 +437,7 @@ def __init__(self, title=None, subtitle=None, body=None, loc_key=None, loc_args=
437
437
self .custom_data = custom_data
438
438
439
439
440
- class APNSFCMOptions ( object ) :
440
+ class APNSFCMOptions :
441
441
"""Options for features provided by the FCM SDK for iOS.
442
442
443
443
Args:
@@ -452,7 +452,7 @@ def __init__(self, analytics_label=None, image=None):
452
452
self .image = image
453
453
454
454
455
- class FCMOptions ( object ) :
455
+ class FCMOptions :
456
456
"""Options for features provided by SDK.
457
457
458
458
Args:
0 commit comments