Esempio n. 1
0
    def __init__(self, requestId=""):
        '''
        * request_id -- The request id for this object

        '''
        SiriObject.__init__(self, "CancelSnippet", "com.apple.ace.assistant")
        self.request_id = requestId
Esempio n. 2
0
    def __init__(self,
                 showDirections=True,
                 showTraffic=False,
                 directionsType=DirectionTypes.Driving,
                 callbacks=None,
                 source=None,
                 destination=None):
        '''
        * showDirections -- True to show the directions, False otherwise
        * showTraffic -- True to show the traffic, False otherwise
        * directionsType -- The type of directions to display
        * callbacks -- The callbacks to use
        * source -- The starting location
        * destination -- The ending destination

        '''
        SiriObject.__init__(self, "ShowMapPoints", "com.apple.ace.localsearch")

        self.showDirections = showDirections
        self.showTraffic = showTraffic
        self.directionsType = directionsType
        self.callbacks = [] if callbacks is None else callbacks
        self.itemSource = SiriObject() if source is None else source
        self.itemDestination = SiriObject() if destination is None else \
            destination
Esempio n. 3
0
    def __init__(self, commands=None):
        '''
        * commands -- The list of commands to execute

        '''
        SiriObject.__init__(self, "SendCommands", "com.apple.ace.system")
        self.commands = [] if commands is None else commands
Esempio n. 4
0
    def __init__(self, commands=None):
        '''
        * commands -- The list of commands to execute

        '''
        SiriObject.__init__(self, "SendCommands", "com.apple.ace.system")
        self.commands = [] if commands is None else commands
Esempio n. 5
0
    def __init__(self, requestId=""):
        '''
        * request_id -- The request id for this object

        '''
        SiriObject.__init__(self, "CancelSnippet", "com.apple.ace.assistant")
        self.request_id = requestId
Esempio n. 6
0
    def __init__(self, submitCmds=None, cancelCmds=None, denyCmds=None,
                 confirmCmds=None, denyText="Cancel", cancelLabel="Cancel",
                 submitLabel="Send", confirmText="Send", cancelTrigger="Deny"):
        '''
        * submitCmds -- The list of commands that are executed when the submit
                        button is pressed
        * cancelCmds -- The list of commands that are executed when the cancel
                        button is pressed
        * denyCms -- The list of commands that are executed when the deny
                     button is pressed
        * confirmCmds -- The list of commands that are executed when the confirm
                         button is pressed
        * denyText -- The text that is displayed on the deny button
        * cancelLabel -- The text that is displayed on the cancel button
        * submitLabel -- The text that is displayed on the submit button
        * confirmText -- The text that is displayed on the confirm button
        * cancelTrigger -- The trigger that performs the cancel action

        '''
        SiriObject.__init__(self, "ConfirmationOptions",
                            "com.apple.ace.assistant")

        self.submitCommands = [] if submitCmds is None else submitCmds
        self.cancelCommands = [] if cancelCmds is None else cancelCmds
        self.denyCommands = [] if denyCmds is None else denyCmds
        self.confirmCommands = [] if confirmCmds is None else confirmCmds

        self.denyText = denyText 
        self.cancelLabel = cancelLabel 
        self.submitLabel = submitLabel 
        self.confirmText = confirmText 
        self.cancelTrigger = cancelTrigger 
Esempio n. 7
0
    def __init__(self, callbacks=None):
        '''
        * callbacks -- The list of callbacks

        '''
        SiriObject.__init__(self, "RequestCompleted", "com.apple.ace.system")
        self.callbacks = [] if callbacks is None else callbacks
Esempio n. 8
0
    def __init__(self,
                 longitude=-122.030089795589,
                 latitude=37.3317031860352,
                 desiredAccuracy="HundredMeters",
                 altitude=0.0,
                 speed=1.0,
                 direction=1.0,
                 age=0,
                 horizontalAccuracy=50.0,
                 verticalAccuracy=10.0):
        '''
        * longitude -- The longitude for the request
        * latitude -- The latitude for the request
        * desiredAccuracy -- The desired accuracy for the request
        * altitude -- The altitude for the request
        * speed -- The speed for the request
        * direction -- The direction for the request
        * age -- The age for the request
        * horizontalAccuracy -- The horizontal accuracy for the request
        * verticalAccuracy -- The vertical accuracy for the request

        '''
        SiriObject.__init__(self, "SetRequestOrigin", "com.apple.ace.system")
        self.horizontalAccuracy = horizontalAccuracy
        self.latitude = latitude
        self.desiredAccuracy = desiredAccuracy
        self.altitude = altitude
        self.speed = speed
        self.longitude = longitude
        self.verticalAccuracy = verticalAccuracy
        self.direction = direction
        self.age = age
Esempio n. 9
0
    def __init__(self, longitude=-122.030089795589, latitude=37.3317031860352,
                 desiredAccuracy="HundredMeters", altitude=0.0, speed=1.0,
                 direction=1.0, age=0, horizontalAccuracy=50.0,
                 verticalAccuracy=10.0):
        '''
        * longitude -- The longitude for the request
        * latitude -- The latitude for the request
        * desiredAccuracy -- The desired accuracy for the request
        * altitude -- The altitude for the request
        * speed -- The speed for the request
        * direction -- The direction for the request
        * age -- The age for the request
        * horizontalAccuracy -- The horizontal accuracy for the request
        * verticalAccuracy -- The vertical accuracy for the request

        '''
        SiriObject.__init__(self, "SetRequestOrigin", "com.apple.ace.system")
        self.horizontalAccuracy = horizontalAccuracy
        self.latitude = latitude
        self.desiredAccuracy = desiredAccuracy
        self.altitude = altitude
        self.speed = speed
        self.longitude = longitude
        self.verticalAccuracy = verticalAccuracy
        self.direction = direction
        self.age = age
Esempio n. 10
0
    def __init__(self, callbacks=None):
        '''
        * callbacks -- The list of callbacks

        '''
        SiriObject.__init__(self, "RequestCompleted", "com.apple.ace.system")
        self.callbacks = [] if callbacks is None else callbacks
Esempio n. 11
0
    def __init__(self, query):
        '''
        * query -- The text to query on the web

        '''
        SiriObject.__init__(self, "StartRequest", "com.apple.ace.system")
        self.utterance = self.__createQuery(query)
        self.handsFree = False
Esempio n. 12
0
    def __init__(self, command):
        '''
        * command -- The text command to issue

        '''
        SiriObject.__init__(self, "StartRequest", "com.apple.ace.system")
        self.utterance = self.__createCommand(command)
        self.handsFree = False
Esempio n. 13
0
    def __init__(self, requestId):
        '''
        * request_id -- The request id for this object

        '''
        SiriObject.__init__(self, "CancelRequest", "com.apple.ace.system")

        self.request_id = refId
Esempio n. 14
0
    def __init__(self, requestId):
        '''
        * request_id -- The request id for this object

        '''
        SiriObject.__init__(self, "CancelRequest", "com.apple.ace.system")

        self.request_id = refId
Esempio n. 15
0
    def __init__(self, buttonText, commands=None):
        '''
        * buttonText -- The text displayed on the button
        * commands -- The commands executed by the button when it is pressed

        '''
        SiriObject.__init__(self, "Button", "com.apple.ace.assistant")
        self.text = buttonText
        self.commands = [] if commands is None else commands
Esempio n. 16
0
    def __init__(self, commands, code=0):
        '''
        * commands -- The commands for the result callback
        * code -- The code for the callback

        '''
        SiriObject.__init__(self, "ResultCallback", "com.apple.ace.system")
        self.commands = [] if commands is None else commands
        self.code = code
Esempio n. 17
0
    def __init__(self, title="", lines=None):
        '''
        * title -- The title for the answer
        * lines -- The lines of text for the answer

        '''
        SiriObject.__init__(self, "Object", "com.apple.ace.answer")
        self.title = title
        self.lines = [] if lines is None else lines
Esempio n. 18
0
    def __init__(self, commands, code=0):
        '''
        * commands -- The commands for the result callback
        * code -- The code for the callback

        '''
        SiriObject.__init__(self, "ResultCallback", "com.apple.ace.system")
        self.commands = [] if commands is None else commands
        self.code = code
Esempio n. 19
0
    def __init__(self, text="", image=""):
        '''
        * text -- The text to display
        * image -- The image to display

        '''
        SiriObject.__init__(self, "ObjectLine", "com.apple.ace.answer")
        self.text = text
        self.image = image
Esempio n. 20
0
    def __init__(self, useCurrentLocation=True, items=None):
        '''
        * useCurrentLocation -- True to use the user's current location
        * items -- The list of map items

        '''
        SiriObject.__init__(self, "MapItemSnippet",
                            "com.apple.ace.localsearch")

        self.useCurrentLocation = useCurrentLocation
        self.items = [] if items is None else items
Esempio n. 21
0
    def __init__(self, useCurrentLocation=True, items=None):
        '''
        * useCurrentLocation -- True to use the user's current location
        * items -- The list of map items

        '''
        SiriObject.__init__(self, "MapItemSnippet",
                            "com.apple.ace.localsearch")

        self.useCurrentLocation = useCurrentLocation
        self.items = [] if items is None else items
Esempio n. 22
0
    def __init__(self, answers=None, confirmationOptions=None):
        '''
        * answers -- The list of answers to display
        * confirmationOptions -- True to display the confirmation options

        '''
        SiriObject.__init__(self, "Snippet", "com.apple.ace.answer")

        self.answers = [] if answers is None else answers

        if confirmationOptions:
            self.confirmationOptions = confirmationOptions
Esempio n. 23
0
    def __init__(self, utterance="Testing", handsFree=False, proxyOnly=False):
        '''
        * utterance -- The utterance to perform
        * handsFree -- True if in hands free mode, False otherwise
        * proxyOnly -- True if proxy only mode, False otherwise

        '''
        SiriObject.__init__(self, "StartRequest", "com.apple.ace.system")
        self.utterance = utterance
        self.handsFree = handsFree
        if proxyOnly:  # dont send local when false since its non standard
            self.proxyOnly = proxyOnly
Esempio n. 24
0
    def __init__(self, desiredAccuracy="HundredMeters", searchTimeout=8.0,
                 maxAge=1800):
        '''
        * desiredAccuracy -- The desired accuracy for the result
        * searchTimeout -- The timeout for the result
        * maxAge -- The maximum age for the result

        '''
        SiriObject.__init__(self, "GetRequestOrigin", "com.apple.ace.system")
        self.desiredAccuracy = desiredAccuracy
        self.searchTimeout = searchTimeout
        self.maxAge = maxAge
Esempio n. 25
0
    def __init__(self, utterance="Testing", handsFree=False, proxyOnly=False):
        '''
        * utterance -- The utterance to perform
        * handsFree -- True if in hands free mode, False otherwise
        * proxyOnly -- True if proxy only mode, False otherwise

        '''
        SiriObject.__init__(self, "StartRequest", "com.apple.ace.system")
        self.utterance = utterance
        self.handsFree = handsFree
        if proxyOnly: # dont send local when false since its non standard
            self.proxyOnly = proxyOnly
Esempio n. 26
0
    def __init__(self, answers=None, confirmationOptions=None):
        '''
        * answers -- The list of answers to display
        * confirmationOptions -- True to display the confirmation options

        '''
        SiriObject.__init__(self, "Snippet", "com.apple.ace.answer")

        self.answers = [] if answers is None else answers

        if confirmationOptions:
            self.confirmationOptions = confirmationOptions
Esempio n. 27
0
    def __init__(self,
                 desiredAccuracy="HundredMeters",
                 searchTimeout=8.0,
                 maxAge=1800):
        '''
        * desiredAccuracy -- The desired accuracy for the result
        * searchTimeout -- The timeout for the result
        * maxAge -- The maximum age for the result

        '''
        SiriObject.__init__(self, "GetRequestOrigin", "com.apple.ace.system")
        self.desiredAccuracy = desiredAccuracy
        self.searchTimeout = searchTimeout
        self.maxAge = maxAge
Esempio n. 28
0
    def __init__(self, label=None, location=None, detailType="BUSINESS_ITEM"):
        '''
        * label -- The label for the map item
        * location -- The :class:`._Location` object for the map item
        * detailType -- The detail type for this map item

        '''
        SiriObject.__init__(self, "MapItem", "com.apple.ace.localsearch")

        self.detailType = detailType

        names = ["label", "location"]

        # Set all of the arguments so long as their values are not None
        self.setNonNoneArguments(names, locals())
Esempio n. 29
0
    def __init__(self, displayText="", spokenText=None,
                 listenAfterSpeaking=False, dialogIdentifier="Misc#ident"):
        '''
        * displayText -- The text to be displayed
        * spokenText -- The text that Siri will speak, if None is given then
                        Siri will speak the text that is displayed
         * listenAfterSpeaking -- True to have Siri listen after she is done
                                  speaking
         * dialogIdentifier -- The identifier for the dialog

        '''
        SiriObject.__init__(self, "AssistantUtteranceView",
                            "com.apple.ace.assistant")
        self.text = displayText
        self.speakableText = displayText if spokenText is None else spokenText
        self.dialogIdentifier = dialogIdentifier
        self.listenAfterSpeaking = listenAfterSpeaking
Esempio n. 30
0
    def __init__(self, scrollToTop=False, temporary=False,
                 dialogPhase="Completion", views=None, callbacks=None):
        '''
        * scrollToTop -- True to scroll to the top of the Siri view
        * temporary -- True for a temporary view, False otherwise
        * dialogPhase -- The dialog phase indicator
        * views -- The list of views to display
        * callbacks -- The list of callbacks

        '''
        SiriObject.__init__(self, "AddViews", "com.apple.ace.assistant")

        # Set the default value of all properties
        self.scrollToTop = scrollToTop
        self.views = [] if views is None else views
        self.temporary = temporary
        self.dialogPhase = dialogPhase
        self.callbacks = [] if callbacks is None else callbacks
Esempio n. 31
0
    def __init__(self,
                 displayText="",
                 spokenText=None,
                 listenAfterSpeaking=False,
                 dialogIdentifier="Misc#ident"):
        '''
        * displayText -- The text to be displayed
        * spokenText -- The text that Siri will speak, if None is given then
                        Siri will speak the text that is displayed
         * listenAfterSpeaking -- True to have Siri listen after she is done
                                  speaking
         * dialogIdentifier -- The identifier for the dialog

        '''
        SiriObject.__init__(self, "AssistantUtteranceView",
                            "com.apple.ace.assistant")
        self.text = displayText
        self.speakableText = displayText if spokenText is None else spokenText
        self.dialogIdentifier = dialogIdentifier
        self.listenAfterSpeaking = listenAfterSpeaking
Esempio n. 32
0
    def __init__(self, showDirections=True, showTraffic=False,
                 directionsType=DirectionTypes.Driving, callbacks=None,
                 source=None, destination=None):
        '''
        * showDirections -- True to show the directions, False otherwise
        * showTraffic -- True to show the traffic, False otherwise
        * directionsType -- The type of directions to display
        * callbacks -- The callbacks to use
        * source -- The starting location
        * destination -- The ending destination

        '''
        SiriObject.__init__(self, "ShowMapPoints", "com.apple.ace.localsearch")

        self.showDirections = showDirections
        self.showTraffic = showTraffic
        self.directionsType = directionsType
        self.callbacks = [] if callbacks is None else callbacks
        self.itemSource = SiriObject() if source is None else source
        self.itemDestination = SiriObject() if destination is None else \
            destination
Esempio n. 33
0
    def __init__(self, label=None, street=None, city=None, stateCode=None,
                 countryCode=None, postalCode=None, latitude=None,
                 longitude=None):
        '''
        * label -- The label for the location
        * street -- The street for the location
        * city -- The city of the location
        * stateCode -- The state code for the location
        * countryCode -- The country code for the location
        * postalCode -- The postal code for the location
        * latitude -- The latitude for the location
        * longitude -- The longitude for the location

        '''
        SiriObject.__init__(self, "Location", "com.apple.ace.system")

        names = ["label", "street", "city", "stateCode", "countryCode",
                 "postalCode", "latitude", "longitude"]

        # Set all of the arguments so long as their values are not None
        self.setNonNoneArguments(names, locals())
Esempio n. 34
0
    def __init__(self,
                 scrollToTop=False,
                 temporary=False,
                 dialogPhase="Completion",
                 views=None,
                 callbacks=None):
        '''
        * scrollToTop -- True to scroll to the top of the Siri view
        * temporary -- True for a temporary view, False otherwise
        * dialogPhase -- The dialog phase indicator
        * views -- The list of views to display
        * callbacks -- The list of callbacks

        '''
        SiriObject.__init__(self, "AddViews", "com.apple.ace.assistant")

        # Set the default value of all properties
        self.scrollToTop = scrollToTop
        self.views = [] if views is None else views
        self.temporary = temporary
        self.dialogPhase = dialogPhase
        self.callbacks = [] if callbacks is None else callbacks
Esempio n. 35
0
    def __init__(self,
                 submitCmds=None,
                 cancelCmds=None,
                 denyCmds=None,
                 confirmCmds=None,
                 denyText="Cancel",
                 cancelLabel="Cancel",
                 submitLabel="Send",
                 confirmText="Send",
                 cancelTrigger="Deny"):
        '''
        * submitCmds -- The list of commands that are executed when the submit
                        button is pressed
        * cancelCmds -- The list of commands that are executed when the cancel
                        button is pressed
        * denyCms -- The list of commands that are executed when the deny
                     button is pressed
        * confirmCmds -- The list of commands that are executed when the confirm
                         button is pressed
        * denyText -- The text that is displayed on the deny button
        * cancelLabel -- The text that is displayed on the cancel button
        * submitLabel -- The text that is displayed on the submit button
        * confirmText -- The text that is displayed on the confirm button
        * cancelTrigger -- The trigger that performs the cancel action

        '''
        SiriObject.__init__(self, "ConfirmationOptions",
                            "com.apple.ace.assistant")

        self.submitCommands = [] if submitCmds is None else submitCmds
        self.cancelCommands = [] if cancelCmds is None else cancelCmds
        self.denyCommands = [] if denyCmds is None else denyCmds
        self.confirmCommands = [] if confirmCmds is None else confirmCmds

        self.denyText = denyText
        self.cancelLabel = cancelLabel
        self.submitLabel = submitLabel
        self.confirmText = confirmText
        self.cancelTrigger = cancelTrigger