@@ -83,6 +83,8 @@ class Feed extends Entity implements IAPI, \JsonSerializable
8383 protected $ basicAuthUser = '' ;
8484 /** @var string|null */
8585 protected $ basicAuthPassword = '' ;
86+ /** @var string|null */
87+ protected $ nextUpdateTime = '' ;
8688 /** @var Item[] */
8789 public $ items = [];
8890
@@ -110,6 +112,7 @@ public function __construct()
110112 $ this ->addType ('lastUpdateError ' , 'string ' );
111113 $ this ->addType ('basicAuthUser ' , 'string ' );
112114 $ this ->addType ('basicAuthPassword ' , 'string ' );
115+ $ this ->addType ('nextUpdateTime ' , 'string ' );
113116 }
114117
115118 /**
@@ -296,6 +299,14 @@ public function getUserId(): string
296299 return $ this ->userId ;
297300 }
298301
302+ /**
303+ * @return string
304+ */
305+ public function getNextUpdateTime (): string
306+ {
307+ return $ this ->nextUpdateTime ;
308+ }
309+
299310 /**
300311 * Turns entity attributes into an array
301312 */
@@ -323,7 +334,8 @@ public function jsonSerialize(): array
323334 'updateErrorCount ' ,
324335 'lastUpdateError ' ,
325336 'basicAuthUser ' ,
326- 'basicAuthPassword '
337+ 'basicAuthPassword ' ,
338+ 'nextUpdateTime '
327339 ]);
328340
329341 if (is_null ($ this ->link )) {
@@ -648,6 +660,15 @@ public function setUserId(string $userId): Feed
648660 return $ this ;
649661 }
650662
663+ /**
664+ * @param string $nextUpdateTime
665+ */
666+ public function setNextUpdateTime (string $ nextUpdateTime ): void
667+ {
668+ $ this ->nextUpdateTime = $ nextUpdateTime ;
669+ $ this ->markFieldUpdated ('nextUpdateTime ' );
670+ }
671+
651672 public function toAPI (): array
652673 {
653674 return $ this ->serializeFields (
@@ -664,7 +685,8 @@ public function toAPI(): array
664685 'pinned ' ,
665686 'updateErrorCount ' ,
666687 'lastUpdateError ' ,
667- 'items '
688+ 'items ' ,
689+ 'nextUpdateTime '
668690 ]
669691 );
670692 }
@@ -679,7 +701,8 @@ public function toAPI2(bool $reduced = false): array
679701 'ordering ' => $ this ->getOrdering (),
680702 'fullTextEnabled ' => $ this ->getFullTextEnabled (),
681703 'updateMode ' => $ this ->getUpdateMode (),
682- 'isPinned ' => $ this ->getPinned ()
704+ 'isPinned ' => $ this ->getPinned (),
705+ 'nextUpdateTime ' => $ this ->getNextUpdateTime (),
683706 ];
684707
685708 if (!is_null ($ this ->getLastUpdateError ()) || trim ($ this ->getLastUpdateError ()) !== '' ) {
0 commit comments