smsframework/IProvider.py
def _receive_status(self, status):
        """ Incoming status callback

            Calls Gateway.onStatus event hook

            Providers are required to:
            * Cast phone numbers to digits-only
            * Use proper MessageStatus subclasses
            * Populate `status.msgid` and `status.meta` fields
            * If this method fails with an exception, the provider is required to respond with an error to the service

            :type status: MessageStatus
            :param status: The received status
            :rtype: MessageStatus
        """
        # Populate fields
        status.provider = self.name

        # Fire the event hook
        self.gateway.onStatus(status)

        # Finish
        return status
def _receive_status(self, status):
        # Populate fields
        status.provider = self.name

        # Fire the event hook
        self.gateway.onStatus(status)

        # Finish
        return status
def _receive_status ( self , status ) : # Populate fields status . provider = self . name # Fire the event hook self . gateway . onStatus ( status ) # Finish return status
Incoming status callback

            Calls Gateway.onStatus event hook

            Providers are required to:
            * Cast phone numbers to digits-only
            * Use proper MessageStatus subclasses
            * Populate `status.msgid` and `status.meta` fields
            * If this method fails with an exception, the provider is required to respond with an error to the service

            :type status: MessageStatus
            :param status: The received status
            :rtype: MessageStatus
Incoming status callback