diff --git a/flask_pyfcm.py b/flask_pyfcm.py index 961f697..584027e 100644 --- a/flask_pyfcm.py +++ b/flask_pyfcm.py @@ -9,6 +9,26 @@ except ImportError: from flask import _request_ctx_stack as stack +class NotificationBuilder(object): + + def __init__(self): + pass + + def build(self): + pass + + def message_title(self, title): + pass + + def message_body(self, body): + pass + + def message_icon(self, icon): + pass + + def message_sound(self, sound): + pass + class FCM(object): FCM_INVALID_ID_ERRORS = [ @@ -39,7 +59,7 @@ def push_service(self): return ctx.fcm_service def notify_single_device(self, registration_id, *args, **kwargs): - self.notify_multiple_devices([registration_id], **kwargs) + return self.notify_multiple_devices([registration_id], **kwargs) def notify_multiple_devices(self, registration_ids, **kwargs): response = self.push_service.notify_multiple_devices(registration_ids,