mirror of
https://github.com/friendica/friendica
synced 2025-04-26 05:10:11 +00:00
API: Access channels and groups via lists
This commit is contained in:
parent
1cabf53bf5
commit
984a972e72
12 changed files with 160 additions and 41 deletions
|
@ -34,6 +34,8 @@ class ListEntity extends BaseDataTransferObject
|
|||
protected $id;
|
||||
/** @var string */
|
||||
protected $title;
|
||||
/** @var string */
|
||||
protected $replies_policy;
|
||||
|
||||
/**
|
||||
* Creates an list record
|
||||
|
@ -42,9 +44,9 @@ class ListEntity extends BaseDataTransferObject
|
|||
* @param string $title
|
||||
* @throws \Friendica\Network\HTTPException\InternalServerErrorException
|
||||
*/
|
||||
public function __construct(int $id, string $title, string $policy)
|
||||
public function __construct(string $id, string $title, string $policy)
|
||||
{
|
||||
$this->id = (string)$id;
|
||||
$this->id = $id;
|
||||
$this->title = $title;
|
||||
$this->replies_policy = $policy;
|
||||
}
|
||||
|
|
|
@ -160,7 +160,7 @@ class Status extends BaseDataTransferObject
|
|||
|
||||
/**
|
||||
* Returns the current created_at string or null if not set
|
||||
* @return \DateTime|null
|
||||
* @return ?string
|
||||
*/
|
||||
public function createdAt(): ?string
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue