smsframework/providers/forward/provider.py
def _forward_object_to_client(self, client, obj):
        """ Forward an object to client
        :type client: str
        :type obj: smsframework.data.IncomingMessage|smsframework.data.MessageStatus
        :rtype: smsframework.data.IncomingMessage|smsframework.data.MessageStatus
        :raise Exception: any exception reported by the other side
        """
        url, name = ('/im', 'message') if isinstance(obj, IncomingMessage) else ('/status', 'status')
        res = jsonex_request(client.rstrip('/') + '/' + url.lstrip('/'), {name: obj})
        return res[name]
def _forward_object_to_client(self, client, obj):
        """ Forward an object to client
        :type client: str
        :type obj: smsframework.data.IncomingMessage|smsframework.data.MessageStatus
        :rtype: smsframework.data.IncomingMessage|smsframework.data.MessageStatus
        :raise Exception: any exception reported by the other side
        """
        url, name = ('/im', 'message') if isinstance(obj, IncomingMessage) else ('/status', 'status')
        res = jsonex_request(client.rstrip('/') + '/' + url.lstrip('/'), {name: obj})
        return res[name]
def _forward_object_to_client ( self , client , obj ) : url , name = ( '/im' , 'message' ) if isinstance ( obj , IncomingMessage ) else ( '/status' , 'status' ) res = jsonex_request ( client . rstrip ( '/' ) + '/' + url . lstrip ( '/' ) , { name : obj } ) return res [ name ]
Forward an object to client
        :type client: str
        :type obj: smsframework.data.IncomingMessage|smsframework.data.MessageStatus
        :rtype: smsframework.data.IncomingMessage|smsframework.data.MessageStatus
        :raise Exception: any exception reported by the other side
Forward an object to client : type client : str : type obj : smsframework . data . IncomingMessage|smsframework . data . MessageStatus : rtype : smsframework . data . IncomingMessage|smsframework . data . MessageStatus : raise Exception : any exception reported by the other side