Refactor API notification usage
- Remove "mapFields()" from BaseModel - Add new Notification API entity (including collection) - Add new NotificationFactory method "getApiList()"
This commit is contained in:
17
src/Collection/Api/Notifications.php
Normal file
17
src/Collection/Api/Notifications.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
namespace Friendica\Collection\Api;
|
||||
|
||||
use Friendica\BaseCollection;
|
||||
use Friendica\Object\Api\Friendica\Notification;
|
||||
|
||||
class Notifications extends BaseCollection
|
||||
{
|
||||
/**
|
||||
* @return Notification
|
||||
*/
|
||||
public function current()
|
||||
{
|
||||
return parent::current();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user