|
@@ -10,11 +10,10 @@ class Push_message(NeuronModule):
|
|
|
"""
|
|
|
def __init__(self, **kwargs):
|
|
|
"""
|
|
|
- Send a push message to an android phone via Pushetta API
|
|
|
- :param message: Message to send
|
|
|
- :param api_key: The Pushetta service secret token
|
|
|
- :param channel_name: Pushetta channel name
|
|
|
- :return:
|
|
|
+ Send a push message to an android phone via Pushetta API
|
|
|
+ :param message: Message to send
|
|
|
+ :param api_key: The Pushetta service secret token
|
|
|
+ :param channel_name: Pushetta channel name
|
|
|
"""
|
|
|
super(Push_message, self).__init__(**kwargs)
|
|
|
|
|
@@ -29,8 +28,10 @@ class Push_message(NeuronModule):
|
|
|
|
|
|
def _is_parameters_ok(self):
|
|
|
"""
|
|
|
- Check if received parameters are ok to perform operations in the neuron
|
|
|
- :return: true if parameters are ok, raise an exception otherwise
|
|
|
+ Check if received parameters are ok to perform operations in the neuron
|
|
|
+ :return: true if parameters are ok, raise an exception otherwise
|
|
|
+
|
|
|
+ .. raises:: NotImplementedError
|
|
|
"""
|
|
|
if self.message is None:
|
|
|
raise NotImplementedError("Pushetta neuron needs message to send")
|