예제 #1
0
파일: id.py 프로젝트: nrichart/kll
 def json(self):
     '''
     JSON representation of HIDId
     '''
     output = Id.json(self)
     output.update(Schedule.json(self))
     return output
예제 #2
0
파일: id.py 프로젝트: nrichart/kll
 def json(self):
     '''
     JSON representation of ScanCodeId
     '''
     output = Id.json(self)
     output.update(Schedule.json(self))
     output.update(Position.json(self))
     return output
예제 #3
0
파일: id.py 프로젝트: ktraister/kll
 def json(self):
     '''
     JSON representation of AnimationId
     '''
     output = Id.json(self)
     output.update(AnimationModifierList.json(self))
     output.update(Schedule.json(self))
     output['name'] = self.name
     output['setting'] = "{}".format(self)
     output['state'] = self.state
     del output['uid']
     return output