src/Entity/XiboNotificationView.php
public function create($name, $duration, $useDuration, $age, $noDataMessage, $effect, $speed, $durationIsPerItem, $embedStyle = null, $playlistId)
    {
        $this->userId = $this->getEntityProvider()->getMe()->getId();
        $this->name = $name;
        $this->duration = $duration;
        $this->useDuration = $useDuration;
        $this->age = $age;
        $this->noDataMessage = $noDataMessage;
        $this->effect = $effect;
        $this->speed = $speed;
        $this->durationIsPerItem = $durationIsPerItem;
        $this->embedStyle = $embedStyle;
        $this->playlistId = $playlistId;
        $this->getLogger()->info('Creating Notification widget in playlist ID ' . $playlistId);
        $response = $this->doPost('/playlist/widget/notificationview/' . $playlistId, $this->toArray());

        return $this->hydrate($response);
    }
public function create($name, $duration, $useDuration, $age, $noDataMessage, $effect, $speed, $durationIsPerItem, $embedStyle = null, $playlistId)
    {
        $this->userId = $this->getEntityProvider()->getMe()->getId();
        $this->name = $name;
        $this->duration = $duration;
        $this->useDuration = $useDuration;
        $this->age = $age;
        $this->noDataMessage = $noDataMessage;
        $this->effect = $effect;
        $this->speed = $speed;
        $this->durationIsPerItem = $durationIsPerItem;
        $this->embedStyle = $embedStyle;
        $this->playlistId = $playlistId;
        $this->getLogger()->info('Creating Notification widget in playlist ID ' . $playlistId);
        $response = $this->doPost('/playlist/widget/notificationview/' . $playlistId, $this->toArray());

        return $this->hydrate($response);
    }
public function create ( $ name , $ duration , $ useDuration , $ age , $ noDataMessage , $ effect , $ speed , $ durationIsPerItem , $ embedStyle = null , $ playlistId ) { $ this -> userId = $ this -> getEntityProvider ( ) -> getMe ( ) -> getId ( ) ; $ this -> name = $ name ; $ this -> duration = $ duration ; $ this -> useDuration = $ useDuration ; $ this -> age = $ age ; $ this -> noDataMessage = $ noDataMessage ; $ this -> effect = $ effect ; $ this -> speed = $ speed ; $ this -> durationIsPerItem = $ durationIsPerItem ; $ this -> embedStyle = $ embedStyle ; $ this -> playlistId = $ playlistId ; $ this -> getLogger ( ) -> info ( 'Creating Notification widget in playlist ID ' . $ playlistId ) ; $ response = $ this -> doPost ( '/playlist/widget/notificationview/' . $ playlistId , $ this -> toArray ( ) ) ; return $ this -> hydrate ( $ response ) ; }
Create NotificationView widget.

@param string $name Optional widget name
@param int $duration Widget duration
@param int $useDuration Flag indicating whether to use custom duration
@param int $age The maximum notification age in minutes, 0 for all
@param string $noDataMessage Message to show when no notifications are available
@param string $effect Effect that will be used to transitions between items, available options: fade, fadeout, scrollVert, scollHorz, flipVert, flipHorz, shuffle, tileSlide, tileBlind
@param int $speed The transition speed of the selected effect in milliseconds
@param int $durationIsPerItem Flag The duration specified is per page/item, otherwise the widget duration is divided between the number of pages/items
@param string $embedStyle Custom Style Sheets (CSS)
@param int $playlistId Playlist ID
@return XiboNotificationView
Create NotificationView widget .