123456789101112131415161718192021222324252627282930 |
- class VREndpointsMixin:
- def vr_room_maps(self, normal_room_id=None, vr_room_id=None):
- """
- Return a mapping between a normal and a vr room.
-
- If neither or both is given, returns a list of all vr room maps
-
- :param normal_room_id:
- :param vr_room_id:
- :return:
- """
- endpoint = "/api/vr/room_maps"
- result = self._api_get(endpoint, params=dict(
- normal_room_id=normal_room_id,
- vr_room_id=vr_room_id
- ))
- return result
- def vr_camera_settings(self, room_id):
- """
- Get settings for a VR room's camera.
-
- :param room_id:
- :return:
- """
- endpoint = "/api/vr/camera_settings"
- result = self._api_get(endpoint, params={"room_id": room_id})
- return result
|