1717from firebase_admin import exceptions
1818
1919
20- class Notification ( object ) :
20+ class Notification :
2121 """A notification that can be included in a message.
2222
2323 Args:
@@ -32,7 +32,7 @@ def __init__(self, title=None, body=None, image=None):
3232 self .image = image
3333
3434
35- class AndroidConfig ( object ) :
35+ class AndroidConfig :
3636 """Android-specific options that can be included in a message.
3737
3838 Args:
@@ -62,7 +62,7 @@ def __init__(self, collapse_key=None, priority=None, ttl=None, restricted_packag
6262 self .fcm_options = fcm_options
6363
6464
65- class AndroidNotification ( object ) :
65+ class AndroidNotification :
6666 """Android-specific notification parameters.
6767
6868 Args:
@@ -178,7 +178,7 @@ def __init__(self, title=None, body=None, icon=None, color=None, sound=None, tag
178178 self .notification_count = notification_count
179179
180180
181- class LightSettings ( object ) :
181+ class LightSettings :
182182 """Represents settings to control notification LED that can be included in a
183183 ``messaging.AndroidNotification``.
184184
@@ -196,7 +196,7 @@ def __init__(self, color, light_on_duration_millis,
196196 self .light_off_duration_millis = light_off_duration_millis
197197
198198
199- class AndroidFCMOptions ( object ) :
199+ class AndroidFCMOptions :
200200 """Options for features provided by the FCM SDK for Android.
201201
202202 Args:
@@ -208,7 +208,7 @@ def __init__(self, analytics_label=None):
208208 self .analytics_label = analytics_label
209209
210210
211- class WebpushConfig ( object ) :
211+ class WebpushConfig :
212212 """Webpush-specific options that can be included in a message.
213213
214214 Args:
@@ -230,7 +230,7 @@ def __init__(self, headers=None, data=None, notification=None, fcm_options=None)
230230 self .fcm_options = fcm_options
231231
232232
233- class WebpushNotificationAction ( object ) :
233+ class WebpushNotificationAction :
234234 """An action available to the users when the notification is presented.
235235
236236 Args:
@@ -245,7 +245,7 @@ def __init__(self, action, title, icon=None):
245245 self .icon = icon
246246
247247
248- class WebpushNotification ( object ) :
248+ class WebpushNotification :
249249 """Webpush-specific notification parameters.
250250
251251 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
302302 self .custom_data = custom_data
303303
304304
305- class WebpushFCMOptions ( object ) :
305+ class WebpushFCMOptions :
306306 """Options for features provided by the FCM SDK for Web.
307307
308308 Args:
@@ -314,7 +314,7 @@ def __init__(self, link=None):
314314 self .link = link
315315
316316
317- class APNSConfig ( object ) :
317+ class APNSConfig :
318318 """APNS-specific options that can be included in a message.
319319
320320 Refer to `APNS Documentation`_ for more information.
@@ -335,7 +335,7 @@ def __init__(self, headers=None, payload=None, fcm_options=None):
335335 self .fcm_options = fcm_options
336336
337337
338- class APNSPayload ( object ) :
338+ class APNSPayload :
339339 """Payload of an APNS message.
340340
341341 Args:
@@ -349,7 +349,7 @@ def __init__(self, aps, **kwargs):
349349 self .custom_data = kwargs
350350
351351
352- class Aps ( object ) :
352+ class Aps :
353353 """Aps dictionary to be included in an APNS payload.
354354
355355 Args:
@@ -379,7 +379,7 @@ def __init__(self, alert=None, badge=None, sound=None, content_available=None, c
379379 self .custom_data = custom_data
380380
381381
382- class CriticalSound ( object ) :
382+ class CriticalSound :
383383 """Critical alert sound configuration that can be included in ``messaging.Aps``.
384384
385385 Args:
@@ -398,7 +398,7 @@ def __init__(self, name, critical=None, volume=None):
398398 self .volume = volume
399399
400400
401- class ApsAlert ( object ) :
401+ class ApsAlert :
402402 """An alert that can be included in ``messaging.Aps``.
403403
404404 Args:
@@ -437,7 +437,7 @@ def __init__(self, title=None, subtitle=None, body=None, loc_key=None, loc_args=
437437 self .custom_data = custom_data
438438
439439
440- class APNSFCMOptions ( object ) :
440+ class APNSFCMOptions :
441441 """Options for features provided by the FCM SDK for iOS.
442442
443443 Args:
@@ -452,7 +452,7 @@ def __init__(self, analytics_label=None, image=None):
452452 self .image = image
453453
454454
455- class FCMOptions ( object ) :
455+ class FCMOptions :
456456 """Options for features provided by SDK.
457457
458458 Args:
0 commit comments