Package brisa :: Package upnp :: Package control_point :: Module service :: Class UnsubscribeRequest
[hide private]
[frames] | no frames]

Class UnsubscribeRequest

source code

object --+
         |
        UnsubscribeRequest

Wrapper for an event unsubscription.

Instance Methods [hide private]
 
__init__(self, service, event_host, callback, cargo)
Constructor for the UnsubscribeRequest class.
source code
boolean
error(self, cargo, error)
Callback for receiving an error.
source code
boolean
response(self, data, cargo)
Callback for receiving the HTTP response on a successful HTTP call.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, service, event_host, callback, cargo)
(Constructor)

source code 

Constructor for the UnsubscribeRequest class.

Parameters:
  • service (Service) - service that is unsubscribing
  • event_host (tuple) - 2-tuple (host, port) of the event listener server
  • callback (callable) - callback
  • cargo - callback parameters
Overrides: object.__init__

error(self, cargo, error)

source code 

Callback for receiving an error.

Parameters:
  • cargo - callback parameters passed at construction
  • error (Exception) - exception raised
Returns: boolean

response(self, data, cargo)

source code 

Callback for receiving the HTTP response on a successful HTTP call.

Parameters:
  • data (HTTPResponse) - response object
  • cargo - callback parameters passed at construction
Returns: boolean