ILIAS
release_8 Revision v8.23
◀ ilDoc Overview
ConversationDto.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\OnScreenChat\DTO
;
22
27
class
ConversationDto
28
{
29
private
string
$id
;
30
private
bool
$isGroup
=
false
;
32
private
array
$subscriberUsrIds
= [];
33
private
MessageDto
$lastMessage
;
34
35
public
function
__construct
(
string
$id)
36
{
37
$this->
id
=
$id
;
38
$this->lastMessage =
new
MessageDto
(
''
, $this);
39
}
40
41
public
function
getId
(): string
42
{
43
return
$this->id
;
44
}
45
46
public
function
setId
(
string
$id): void
47
{
48
$this->
id
=
$id
;
49
}
50
51
public
function
isGroup
(): bool
52
{
53
return
$this->isGroup
;
54
}
55
56
public
function
setIsGroup
(
bool
$isGroup): void
57
{
58
$this->
isGroup
=
$isGroup
;
59
}
60
64
public
function
getSubscriberUsrIds
(): array
65
{
66
return
$this->subscriberUsrIds
;
67
}
68
72
public
function
setSubscriberUsrIds
(array $subscriberUsrIds): void
73
{
74
$this->subscriberUsrIds =
$subscriberUsrIds
;
75
}
76
77
public
function
getLastMessage
():
MessageDto
78
{
79
return
$this->lastMessage
;
80
}
81
82
public
function
setLastMessage
(
MessageDto
$lastMessage): void
83
{
84
$this->lastMessage =
$lastMessage
;
85
}
86
}
ILIAS\OnScreenChat\DTO\ConversationDto
Definition:
ConversationDto.php:27
ILIAS\OnScreenChat\DTO\ConversationDto\$subscriberUsrIds
array $subscriberUsrIds
Definition:
ConversationDto.php:32
ILIAS\OnScreenChat\DTO\ConversationDto\isGroup
isGroup()
Definition:
ConversationDto.php:51
ILIAS\OnScreenChat\DTO\ConversationDto\setLastMessage
setLastMessage(MessageDto $lastMessage)
Definition:
ConversationDto.php:82
ILIAS\OnScreenChat\DTO\ConversationDto\$isGroup
bool $isGroup
Definition:
ConversationDto.php:30
ILIAS\OnScreenChat\DTO\ConversationDto\getSubscriberUsrIds
getSubscriberUsrIds()
Definition:
ConversationDto.php:64
ILIAS\OnScreenChat\DTO\MessageDto
Definition:
MessageDto.php:27
ILIAS\OnScreenChat\DTO
Definition:
ConversationDto.php:21
ILIAS\OnScreenChat\DTO\ConversationDto\setSubscriberUsrIds
setSubscriberUsrIds(array $subscriberUsrIds)
Definition:
ConversationDto.php:72
ILIAS\OnScreenChat\DTO\ConversationDto\getLastMessage
getLastMessage()
Definition:
ConversationDto.php:77
ILIAS\OnScreenChat\DTO\ConversationDto\setIsGroup
setIsGroup(bool $isGroup)
Definition:
ConversationDto.php:56
ILIAS\OnScreenChat\DTO\ConversationDto\__construct
__construct(string $id)
Definition:
ConversationDto.php:35
ILIAS\OnScreenChat\DTO\ConversationDto\setId
setId(string $id)
Definition:
ConversationDto.php:46
ILIAS\OnScreenChat\DTO\ConversationDto\$lastMessage
MessageDto $lastMessage
Definition:
ConversationDto.php:33
ILIAS\OnScreenChat\DTO\ConversationDto\$id
string $id
Definition:
ConversationDto.php:29
ILIAS\OnScreenChat\DTO\ConversationDto\getId
getId()
Definition:
ConversationDto.php:41
Services
OnScreenChat
classes
DTO
ConversationDto.php
Generated on Wed Sep 3 2025 22:02:37 for ILIAS by
1.8.13 (using
Doxyfile
)