nextcloud-app-radio/db/stream.php

22 lines
394 B
PHP
Raw Normal View History

2016-11-17 22:07:22 +00:00
<?php
namespace OCA\Radio\Db;
use JsonSerializable;
use OCP\AppFramework\Db\Entity;
class Stream extends Entity implements JsonSerializable {
protected $title;
protected $content;
protected $userId;
public function jsonSerialize() {
return [
'name' => $this->name,
'url' => $this->url,
'image' => $this->image
];
}
}