#68 - refactor some of the notification classes to classes plugin to share them with comments

This commit is contained in:
isUnknown 2024-12-18 15:05:42 +01:00
parent 6ab18b1066
commit 3d4ddc12fc
9 changed files with 22 additions and 105 deletions

View file

@ -1,8 +1,8 @@
<?php
namespace adrienpayet\notifications;
use adrienpayet\notifications\location\Location;
use adrienpayet\Author;
use adrienpayet\D2P\data\location\Location;
use adrienpayet\D2P\data\Author;
class Notification
{
@ -23,7 +23,7 @@ class Notification
$this->author = new Author($data["author"]);
$this->date = $data["date"];
$this->id = $data["id"];
$this->isRead = $data["isRead"];
$this->isRead = "false";
if ($data["type"] === "comment") {
$this->position = new Position($data["position"]);