The dataObjects module
The dataObjects module contains classes pertaining to creating objects which
can be sent to the iPhone or the Guzzoni web server which contain various
types of data to be displayed to the user.
The _SiriLocation class
-
class pysiriproxy.objects.dataObjects._SiriLocation(label='Apple', street='1 Infinite Loop', city='Cupertino', stateCode='CA', countryCode='US', postalCode='95014', latitude=37.331703186035199, longitude=-122.03008979558901)[source]
The _SiriLocation class provides the ability to create a
SiriObject which contains a specific map location to be
displayed to the user.
The _SiriAnswer class
-
class pysiriproxy.objects.dataObjects._SiriAnswer(title='', lines=None)[source]
The _SiriAnswer class creates an object which is Siri’s answer to
a user’s question.
The _SiriAnswerLine class
-
class pysiriproxy.objects.dataObjects._SiriAnswerLine(text='', image='')[source]
The _SiriAnswerLine creates a single line for Siri’s answer to a
user’s question.
The _SiriMapItem class
-
class pysiriproxy.objects.dataObjects._SiriMapItem(label='Apple Headquarters', location=<pysiriproxy.objects.dataObjects._SiriLocation instance at 0xb4edbec>, detailType='BUSINESS_ITEM')[source]
The _SiriMapItem creates an object that displayed to the user as a
map item.
The DataObject class
-
class pysiriproxy.objects.dataObjects.DataObject[source]
The DataObject class provides definitions of various types of objects
to display data to the Siri user.
This class also provides a factory method for creating objects of specific
types.
-
Answer
The object type corresponding to Siri’s answer to a user’s question.
-
AnswerLine
The object type corresponding to a single answer line.
-
Location
The object type corresponding to a map location.
-
MapItem
The object type corresponding to creating an item on a map.
-
classmethod create(objectType, *args, **kwargs)[source]
Create a DataObject of the given type.
- dataObject – The type of DataObject to create
- args – The arguments
- kwargs – The keyword arguments