4949 * @method int getAllowCleanup()
5050 * @method setUserFacingErrorMessage(null|string $message)
5151 * @method null|string getUserFacingErrorMessage()
52+ * @method setAddWatermarking(int $addWatermarking)
53+ * @method int getAddWatermarking()
5254 */
5355class Task extends Entity {
5456 protected $ lastUpdated ;
@@ -69,16 +71,17 @@ class Task extends Entity {
6971 protected $ endedAt ;
7072 protected $ allowCleanup ;
7173 protected $ userFacingErrorMessage ;
74+ protected $ addWatermarking ;
7275
7376 /**
7477 * @var string[]
7578 */
76- public static array $ columns = ['id ' , 'last_updated ' , 'type ' , 'input ' , 'output ' , 'status ' , 'user_id ' , 'app_id ' , 'custom_id ' , 'completion_expected_at ' , 'error_message ' , 'progress ' , 'webhook_uri ' , 'webhook_method ' , 'scheduled_at ' , 'started_at ' , 'ended_at ' , 'allow_cleanup ' , 'user_facing_error_message ' ];
79+ public static array $ columns = ['id ' , 'last_updated ' , 'type ' , 'input ' , 'output ' , 'status ' , 'user_id ' , 'app_id ' , 'custom_id ' , 'completion_expected_at ' , 'error_message ' , 'progress ' , 'webhook_uri ' , 'webhook_method ' , 'scheduled_at ' , 'started_at ' , 'ended_at ' , 'allow_cleanup ' , 'user_facing_error_message ' , ' add_watermarking ' ];
7780
7881 /**
7982 * @var string[]
8083 */
81- public static array $ fields = ['id ' , 'lastUpdated ' , 'type ' , 'input ' , 'output ' , 'status ' , 'userId ' , 'appId ' , 'customId ' , 'completionExpectedAt ' , 'errorMessage ' , 'progress ' , 'webhookUri ' , 'webhookMethod ' , 'scheduledAt ' , 'startedAt ' , 'endedAt ' , 'allowCleanup ' , 'userFacingErrorMessage ' ];
84+ public static array $ fields = ['id ' , 'lastUpdated ' , 'type ' , 'input ' , 'output ' , 'status ' , 'userId ' , 'appId ' , 'customId ' , 'completionExpectedAt ' , 'errorMessage ' , 'progress ' , 'webhookUri ' , 'webhookMethod ' , 'scheduledAt ' , 'startedAt ' , 'endedAt ' , 'allowCleanup ' , 'userFacingErrorMessage ' , ' addWatermarking ' ];
8285
8386
8487 public function __construct () {
@@ -102,6 +105,7 @@ public function __construct() {
102105 $ this ->addType ('endedAt ' , 'integer ' );
103106 $ this ->addType ('allowCleanup ' , 'integer ' );
104107 $ this ->addType ('userFacingErrorMessage ' , 'string ' );
108+ $ this ->addType ('addWatermarking ' , 'integer ' );
105109 }
106110
107111 public function toRow (): array {
@@ -132,6 +136,7 @@ public static function fromPublicTask(OCPTask $task): self {
132136 'endedAt ' => $ task ->getEndedAt (),
133137 'allowCleanup ' => $ task ->getAllowCleanup () ? 1 : 0 ,
134138 'userFacingErrorMessage ' => $ task ->getUserFacingErrorMessage (),
139+ 'addWatermarking ' => $ task ->getAddWatermarking () ? 1 : 0 ,
135140 ]);
136141 return $ taskEntity ;
137142 }
@@ -156,6 +161,7 @@ public function toPublicTask(): OCPTask {
156161 $ task ->setEndedAt ($ this ->getEndedAt ());
157162 $ task ->setAllowCleanup ($ this ->getAllowCleanup () !== 0 );
158163 $ task ->setUserFacingErrorMessage ($ this ->getUserFacingErrorMessage ());
164+ $ task ->setAddWatermarking ($ this ->getAddWatermarking () !== 0 );
159165 return $ task ;
160166 }
161167}
0 commit comments