Ejemplo n.º 1
0
    def getUserId(self):

        return Utils.getDictDataByKeys(self.data,
                                       ['context', 'System', 'user', 'userId'])
Ejemplo n.º 2
0
 def getLocation(self):
     return Utils.getDictDataByKeys(
         self.data,
         ['context', 'System', 'user', 'userInfo', 'location', 'geo'])
Ejemplo n.º 3
0
 def getAudioPlayerContext(self):
     '''
     获取设备音频播放的状态
     :return:
     '''
     return Utils.getDictDataByKeys(self.data, ['context', 'AudioPlayer'])
Ejemplo n.º 4
0
 def getAppLauncherContext(self):
     '''
     获取设备app安装列表
     :return:
     '''
     return Utils.getDictDataByKeys(self.data, ['context', 'AppLauncher'])
Ejemplo n.º 5
0
    def getSessionId(self):

        return Utils.getDictDataByKeys(self.data, ['session', 'sessionId'])
Ejemplo n.º 6
0
    def getDeviceId(self):

        return Utils.getDictDataByKeys(
            self.data, ['context', 'System', 'device', 'deviceId'])
Ejemplo n.º 7
0
    def getRequestId(self):

        return Utils.getDictDataByKeys(self.data, ['request', 'requestId'])
Ejemplo n.º 8
0
    def getReson(self):

        return Utils.getDictDataByKeys(self.data, ['request', 'reason'])
Ejemplo n.º 9
0
 def getBotId(self):
     return Utils.getDictDataByKeys(
         self.data, ['context', 'System', 'application', 'applicationId'])
Ejemplo n.º 10
0
    def getTimestamp(self):

        return Utils.getDictDataByKeys(self.data, ['request', 'timestamp'])
Ejemplo n.º 11
0
    def getReprompt(self):

        return Utils.getDictDataByKeys(
            self.data, ['response', 'reprompt', 'outputSpeech'])
Ejemplo n.º 12
0
 def getShouldEndSession(self):
     return Utils.getDictDataByKeys(self.data,
                                    ['response', 'shouldEndSession'])
Ejemplo n.º 13
0
 def getOutputSpeech(self):
     return Utils.getDictDataByKeys(self.data, ['response', 'outputSpeech'])