Coverage for functions \ flipdare \ wrapper \ video_history_wrapper.py: 81%

36 statements  

« prev     ^ index     » next       coverage.py v7.13.0, created at 2026-05-08 12:22 +1000

1#!/usr/bin/env python 

2# Copyright (c) 2026 Flipdare Pty Ltd. All rights reserved. 

3# 

4# This file is part of Flipdare's proprietary software and contains 

5# confidential and copyrighted material. Unauthorised copying, 

6# modification, distribution, or use of this file is strictly 

7# prohibited without prior written permission from Flipdare Pty Ltd. 

8# 

9# This software includes third-party components licensed under MIT, 

10# BSD, and Apache 2.0 licences. See THIRD_PARTY_NOTICES for details. 

11# 

12 

13from __future__ import annotations 

14 

15from flipdare.generated.model.video_history_model import VideoHistoryKeys, VideoHistoryModel 

16from flipdare.wrapper._persisted_wrapper import PersistedWrapper 

17 

18_K = VideoHistoryKeys 

19 

20 

21class VideoHistoryWrapper(PersistedWrapper[VideoHistoryModel]): 

22 MODEL_CLASS = VideoHistoryModel 

23 

24 # <AUTO_GENERATED_CONTENT> - do not edit 

25 

26 @property 

27 def video_id(self) -> str: 

28 return self._model.video_id 

29 

30 @video_id.setter 

31 def video_id(self, value: str) -> None: 

32 self.update_field(_K.VIDEO_ID, value) 

33 

34 @property 

35 def position(self) -> int: 

36 return self._model.position 

37 

38 @position.setter 

39 def position(self, value: int) -> None: 

40 self.update_field(_K.POSITION, value) 

41 

42 # base internal fields 

43 @property 

44 def version(self) -> int: 

45 return self._model.version 

46 

47 @version.setter 

48 def version(self, value: int) -> None: 

49 self.update_field(_K.VERSION, value) 

50 

51 @property 

52 def processed(self) -> bool: 

53 return self._model.processed 

54 

55 @processed.setter 

56 def processed(self, value: bool) -> None: 

57 self.update_field(_K.PROCESSED, value) 

58 

59 @property 

60 def error_count(self) -> int: 

61 return self._model.error_count 

62 

63 @error_count.setter 

64 def error_count(self, value: int) -> None: 

65 self.update_field(_K.ERROR_COUNT, value) 

66 

67 # </AUTO_GENERATED_CONTENT> - do not edit