from ..resource import Resource


class LiveVideos(Resource):
    def find(self, live_video_id:str):
        return self.get(f"live_videos/{live_video_id}")

    def all(self, applicant_id:str):
        payload = {"applicant_id": applicant_id}
        return self.get("live_videos/", payload=payload)

    def download(self, live_video_id:str):
        return self.download_request(f"live_videos/{live_video_id}/download")

    def download_frame(self, live_video_id:str):
        return self.download_request(f"live_videos/{live_video_id}/frame")

from ..resource import Resource


class LiveVideos(Resource):
    def find(self, live_video_id:str):
        return self.get(f"live_videos/{live_video_id}")

    def all(self, applicant_id:str):
        payload = {"applicant_id": applicant_id}
        return self.get("live_videos/", payload=payload)

    def download(self, live_video_id:str):
        return self.download_request(f"live_videos/{live_video_id}/download")

    def download_frame(self, live_video_id:str):
        return self.download_request(f"live_videos/{live_video_id}/frame")
