The requests module

The request module contains classes pertaining to creating objects which can be sent to the iPhone or the Guzzoni web server which pertain to creating requests to be sent to the iPhone.

The _RequestCompleted class

Inheritance diagram of pysiriproxy.objects.requests._RequestCompleted

class pysiriproxy.objects.requests._RequestCompleted(callbacks=None)[source]

The _RequestCompleted object notifies the iPhone that the current request can be completed.

The _StartRequest class

Inheritance diagram of pysiriproxy.objects.requests._StartRequest

class pysiriproxy.objects.requests._StartRequest(utterance='Testing', handsFree=False, proxyOnly=False)[source]

The _StartRequest object signifies that a request is being started.

The _GetRequestOrigin class

Inheritance diagram of pysiriproxy.objects.requests._GetRequestOrigin

class pysiriproxy.objects.requests._GetRequestOrigin(desiredAccuracy='HundredMeters', searchTimeout=8.0, maxAge=1800)[source]

The _GetRequestOrigin class creates an object that gets the origin of the request.

The _SetRequestOrigin class

Inheritance diagram of pysiriproxy.objects.requests._SetRequestOrigin

class pysiriproxy.objects.requests._SetRequestOrigin(longitude=-122.03008979558901, latitude=37.331703186035199, desiredAccuracy='HundredMeters', altitude=0.0, speed=1.0, direction=1.0, age=0, horizontalAccuracy=50.0, verticalAccuracy=10.0)[source]

The _SetRequestOrigin class creates an object to set the origin of a request.

The Requests class

Inheritance diagram of pysiriproxy.objects.requests.Requests

class pysiriproxy.objects.requests.Requests[source]

The Requests class contains the various types of Requests as well as a function for creating Requests of a specific type.

This class contains a factory method for creating Request object of a specific type.

GetRequestOrigin

The GetRequestOrigin object type.

RequestCompleted

The RequestCompleted object type.

SetRequestOrigin

The SetRequestOrigin object type.

StartRequest

The StartRequest object type.

classmethod create(requestType, *args, **kwargs)[source]

Create a Request of the given type.

  • requestType – The request type
  • args – The arguments
  • kwargs – The keyword arguments

Table Of Contents

Previous topic

The dataObjects module

Next topic

The views module

This Page