예제 #1
0
파일: device.py 프로젝트: JohanRoland/CarAI
 def perform(self, selected_contact):
     number = CONTACT_NUMBERS.get(selected_contact)
     number_entity = {
         "grammar_entry": number
     }
     return [number_entity]
예제 #2
0
파일: device.py 프로젝트: JohanRoland/CarAI
 def is_valid(self, selected_contact):
     number = CONTACT_NUMBERS.get(selected_contact)
     if number:
         return True
     return False
예제 #3
0
파일: device.py 프로젝트: JohanRoland/CarAI
 def perform(self, selected_contact):
     number = CONTACT_NUMBERS.get(selected_contact)
     # TODO: Implement calling
     success = True
     return success