Beispiel #1
0
    def getUserId(self):

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

        return Utils.getDictDataByKeys(self.data, ['session', 'sessionId'])
Beispiel #6
0
    def getDeviceId(self):

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

        return Utils.getDictDataByKeys(self.data, ['request', 'requestId'])
Beispiel #8
0
    def getReson(self):

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

        return Utils.getDictDataByKeys(self.data, ['request', 'timestamp'])
Beispiel #11
0
    def getReprompt(self):

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