summaryrefslogtreecommitdiff
path: root/src/Events/PresenceEvent.php
diff options
context:
space:
mode:
authorDaniel Weipert <git@mail.dweipert.de>2026-03-05 14:57:28 +0100
committerDaniel Weipert <git@mail.dweipert.de>2026-03-05 14:57:28 +0100
commitbd11271621bd3759cfd194ed0119c0dc28155fd0 (patch)
tree319b4790d4e2b05513abf023732ed6fb0717f603 /src/Events/PresenceEvent.php
parent2386148b8f048ba40d9f26cc97898bdcdc778ea2 (diff)
updateHEADmain
Diffstat (limited to 'src/Events/PresenceEvent.php')
-rw-r--r--src/Events/PresenceEvent.php40
1 files changed, 0 insertions, 40 deletions
diff --git a/src/Events/PresenceEvent.php b/src/Events/PresenceEvent.php
deleted file mode 100644
index cd230c5..0000000
--- a/src/Events/PresenceEvent.php
+++ /dev/null
@@ -1,40 +0,0 @@
-<?php
-
-namespace App\Events;
-
-use App\Types\EventType;
-use App\Types\PresenceState;
-
-class PresenceEvent extends Event
-{
- public function __construct(
- private string $sender,
- private string $avatarUrl = "mxc://localhost/wefuiwegh8742w",
- private int $lastActiveAgo = 1234,
- private bool $currentlyActive = false,
- private PresenceState $presence = PresenceState::ONLINE,
- private string $statusMessage = "",
- )
- {
- parent::__construct(EventType::PRESENCE);
- }
-
- public function fromJson(string $json): self
- {
- }
-
- public function toJsonEncodeable(): array
- {
- return [
- "type" => $this->type,
- "sender" => $this->sender,
- "content" => [
- "avatar_url" => $this->avatarUrl,
- "currently_active" => $this->currentlyActive,
- "last_active_ago" => $this->lastActiveAgo,
- "presence" => $this->presence,
- "status_msg" => $this->statusMessage,
- ],
- ];
- }
-}