@@ -21,6 +21,7 @@ class ProjectData extends ApiEntityBase
2121 const KEY_TEMPLATE_ID = 'templateId ' ;
2222 const KEY_CURRENT_SCREEN_ID = 'currentScreenId ' ;
2323 const KEY_DURATION = 'duration ' ;
24+ const KEY_EDITING_MODE = 'editingMode ' ;
2425 const KEY_FPS = 'fps ' ;
2526 const KEY_EQUALIZER = 'equalizer ' ;
2627 const KEY_EXTENDABLE_SCREENS = 'extendableScreens ' ;
@@ -40,6 +41,7 @@ class ProjectData extends ApiEntityBase
4041
4142 const WRITABLE_KEYS = [
4243 self ::KEY_CURRENT_SCREEN_ID ,
44+ self ::KEY_EDITING_MODE ,
4345 self ::KEY_MUTE_MUSIC ,
4446 self ::KEY_SOUNDS ,
4547 self ::KEY_PROJECT_COLORS ,
@@ -49,6 +51,13 @@ class ProjectData extends ApiEntityBase
4951 self ::KEY_FONTS ,
5052 ];
5153
54+ const EDITING_MODE_SIMPLE = 'simple ' ;
55+ const EDITING_MODE_ADVANCED = 'advanced ' ;
56+ const EDITING_MODES = [
57+ self ::EDITING_MODE_SIMPLE ,
58+ self ::EDITING_MODE_ADVANCED ,
59+ ];
60+
5261 /** @var int */
5362 protected $ templateId ;
5463
@@ -58,6 +67,9 @@ class ProjectData extends ApiEntityBase
5867 /** @var int */
5968 protected $ duration ;
6069
70+ /** @var string */
71+ protected $ editingMode ;
72+
6173 /** @var int */
6274 protected $ fps ;
6375
@@ -170,6 +182,25 @@ private function setDuration(int $duration): ProjectData
170182 return $ this ;
171183 }
172184
185+ /**
186+ * @return string
187+ */
188+ public function getEditingMode (): string
189+ {
190+ return $ this ->editingMode ;
191+ }
192+
193+ /**
194+ * @param string $editingMode
195+ * @return ProjectData
196+ */
197+ public function setEditingMode (string $ editingMode ): ProjectData
198+ {
199+ $ this ->editingMode = $ editingMode ;
200+
201+ return $ this ;
202+ }
203+
173204 /**
174205 * @return int
175206 */
@@ -554,6 +585,10 @@ public function exchangeArray(array $projectDataArrayData)
554585 $ this ->setCurrentScreenId ($ projectDataArrayData [self ::KEY_CURRENT_SCREEN_ID ]);
555586 }
556587
588+ if (array_key_exists (self ::KEY_EDITING_MODE , $ projectDataArrayData )) {
589+ $ this ->setEditingMode ($ projectDataArrayData [self ::KEY_EDITING_MODE ]);
590+ }
591+
557592 $ duration = $ projectDataArrayData [self ::KEY_DURATION ];
558593 $ this ->setDuration ($ duration );
559594
@@ -683,6 +718,7 @@ public function getArrayCopyFull(): array
683718 self ::KEY_TEMPLATE_ID => $ this ->getTemplateId (),
684719 self ::KEY_CURRENT_SCREEN_ID => $ this ->getCurrentScreenId (),
685720 self ::KEY_DURATION => $ this ->getDuration (),
721+ self ::KEY_EDITING_MODE => $ this ->getEditingMode (),
686722 self ::KEY_FPS => $ this ->getFps (),
687723 self ::KEY_EQUALIZER => $ this ->isEqualizer (),
688724 self ::KEY_EXTENDABLE_SCREENS => $ this ->isExtendableScreens (),
0 commit comments