vr.py 846 B

123456789101112131415161718192021222324252627282930
  1. class VREndpointsMixin:
  2. def vr_room_maps(self, normal_room_id=None, vr_room_id=None):
  3. """
  4. Return a mapping between a normal and a vr room.
  5. If neither or both is given, returns a list of all vr room maps
  6. :param normal_room_id:
  7. :param vr_room_id:
  8. :return:
  9. """
  10. endpoint = "/api/vr/room_maps"
  11. result = self._api_get(endpoint, params=dict(
  12. normal_room_id=normal_room_id,
  13. vr_room_id=vr_room_id
  14. ))
  15. return result
  16. def vr_camera_settings(self, room_id):
  17. """
  18. Get settings for a VR room's camera.
  19. :param room_id:
  20. :return:
  21. """
  22. endpoint = "/api/vr/camera_settings"
  23. result = self._api_get(endpoint, params={"room_id": room_id})
  24. return result