From 0279f667b32b38ac12e8e385afbd5c9f394da822 Mon Sep 17 00:00:00 2001 From: fedir Date: Tue, 18 Feb 2025 18:36:35 +0100 Subject: [PATCH] Added `Video` class to the diagram --- design/design.gaphor | 266 +++++++++++++++++++++++++++++++++++++------ 1 file changed, 234 insertions(+), 32 deletions(-) diff --git a/design/design.gaphor b/design/design.gaphor index a5a4465..adc8560 100644 --- a/design/design.gaphor +++ b/design/design.gaphor @@ -111,6 +111,7 @@ controlflow { + @@ -126,6 +127,7 @@ controlflow { + @@ -373,6 +375,7 @@ existing classes or even new classes with specific responsibilities. + @@ -391,7 +394,7 @@ existing classes or even new classes with specific responsibilities. -(1.0, 0.0, 0.0, 1.0, 133.29296875, 17.285152435302734) +(1.0, 0.0, 0.0, 1.0, 126.22541649148083, -111.56346769146282) (0.0, 0.0) @@ -481,16 +484,16 @@ existing classes or even new classes with specific responsibilities. -(1.0, 0.0, 0.0, 1.0, 345.78324127197266, 680.6172180175781) +(1.0, 0.0, 0.0, 1.0, 59.49042039678521, 676.7889605442139) -(0.0, 0.0) +(-4.473890692342593, 0.0) -632.0 +581.5334231350598 -205.20700073242188 +103.7992092219963 @@ -541,12 +544,17 @@ existing classes or even new classes with specific responsibilities. History + + + - + + + @@ -563,7 +571,7 @@ existing classes or even new classes with specific responsibilities. -(1.0, 0.0, 0.0, 1.0, 186.63282775878906, 443.60939025878906) +(1.0, 0.0, 0.0, 1.0, 186.63282775878895, 443.60939025878906) (0.0, 0.0) @@ -614,17 +622,6 @@ existing classes or even new classes with specific responsibilities. string - - - - - -1 - - -__size__ - - @@ -645,10 +642,10 @@ existing classes or even new classes with specific responsibilities. -(1.0, 0.0, 0.0, 1.0, 427.53533935546875, 679.4648742675781) +(1.0, 0.0, 0.0, 1.0, 427.1573380812623, 679.4648742675781) -[(0.0, 1.15234375), (0.0, -71.09770202636719)] +[(0.37800127420644003, -2.6759137233642605), (0.37800127420644003, -71.09770202636719)] @@ -720,7 +717,7 @@ existing classes or even new classes with specific responsibilities. -HistoryYouTube +YouTubeHistory @@ -736,7 +733,7 @@ existing classes or even new classes with specific responsibilities. -(1.0, 0.0, 0.0, 1.0, 91.67303721110027, 224.98699188232425) +(1.0, 0.0, 0.0, 1.0, 86.18801116943362, 224.98699188232428) (0.0, 44.798164367675795) @@ -762,7 +759,7 @@ existing classes or even new classes with specific responsibilities. -HistoryFreeTube +FreeTubeHistory @@ -778,7 +775,7 @@ existing classes or even new classes with specific responsibilities. -(1.0, 0.0, 0.0, 1.0, 380.05679575602204, 226.81316375732428) +(1.0, 0.0, 0.0, 1.0, 380.05679575602204, 226.81316375732425) (0.0, 43.58071645100908) @@ -816,7 +813,7 @@ existing classes or even new classes with specific responsibilities. (1.0, 0.0, 0.0, 1.0, 223.12159220377606, 442.6041793823242) -[(0.0, 0.0), (6.154947234916875, -114.46289062499994)] +[(0.0, 0.0), (0.6699211932502465, -114.46289062499994)] @@ -855,7 +852,7 @@ existing classes or even new classes with specific responsibilities. -When parse_history() is called, it should identify and return the correct history type. It can leverage the is_this_type() function that the implementers of this interface should implement to identify whether it's the correct type. +When parse_history() is called, it should identify and return the correct history type. It can leverage the is_this_type() function that the implementers of this interface should have to identify whether it's the correct type. @@ -865,7 +862,7 @@ existing classes or even new classes with specific responsibilities. -(1.0, 0.0, 0.0, 1.0, 532.4830907185875, 411.48828125) +(1.0, 0.0, 0.0, 1.0, 531.3502782185875, 411.48828125) (0.0, 0.0) @@ -891,23 +888,228 @@ existing classes or even new classes with specific responsibilities. 1 -is_this_type ++ is_this_type(in filename: string) -> bool + + + + + + + +1 + + ++ get_video(in index: int) -> Video + + + + + + + +1 + + +__iter__ + + + + + + + +1 + + +__size__ + + + + +Video + + + + + + + + + + + + + + + + + + + + + + + + + +(1.0, 0.0, 0.0, 1.0, 863.6850618434581, 361.7811660068871) + + +(0.0, 0.0) + + +644.0 + + +161.64602675087428 + + + + + +0 + + + + + + + + + + +0 + + ++ getID() -> string + + + + + + + +0 + + ++ getWatchTime() -> float + + + + + + + +0 + + ++ getWatchProgress() -> float + + + + + + + +0 + + ++ getTitle() -> string + + + + + + + +0 + + ++ getDescription() -> string + + + + + + + +Video - + + + + + - + in -filename +id - + + + +string + + + + +in + + +watch_time + + + + + +float + + + + +in + + +watch_progress + + + + + +float + + + + +in + + +title + + + + + +string + + + + +in + + +description + + + string