ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ILIAS\OnScreenChat\DTO\ConversationDto Class Reference
+ Collaboration diagram for ILIAS\OnScreenChat\DTO\ConversationDto:

Public Member Functions

 __construct (private string $id)
 
 getId ()
 
 setId (string $id)
 
 isGroup ()
 
 setIsGroup (bool $isGroup)
 
 getSubscriberUsrIds ()
 
 setSubscriberUsrIds (array $subscriberUsrIds)
 
 getLastMessage ()
 
 setLastMessage (MessageDto $lastMessage)
 

Private Attributes

bool $isGroup = false
 
array $subscriberUsrIds = []
 
MessageDto $lastMessage
 

Detailed Description

Definition at line 27 of file ConversationDto.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\OnScreenChat\DTO\ConversationDto::__construct ( private string  $id)

Definition at line 34 of file ConversationDto.php.

35 {
36 $this->lastMessage = new MessageDto('', $this);
37 }

Member Function Documentation

◆ getId()

ILIAS\OnScreenChat\DTO\ConversationDto::getId ( )

Definition at line 39 of file ConversationDto.php.

39 : string
40 {
41 return $this->id;
42 }
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23

References $id.

◆ getLastMessage()

ILIAS\OnScreenChat\DTO\ConversationDto::getLastMessage ( )

◆ getSubscriberUsrIds()

ILIAS\OnScreenChat\DTO\ConversationDto::getSubscriberUsrIds ( )
Returns
int[]

Definition at line 62 of file ConversationDto.php.

62 : array
63 {
65 }

References ILIAS\OnScreenChat\DTO\ConversationDto\$subscriberUsrIds.

◆ isGroup()

ILIAS\OnScreenChat\DTO\ConversationDto::isGroup ( )

Definition at line 49 of file ConversationDto.php.

49 : bool
50 {
51 return $this->isGroup;
52 }

References ILIAS\OnScreenChat\DTO\ConversationDto\$isGroup.

Referenced by ILIAS\OnScreenChat\DTO\ConversationDto\setIsGroup().

+ Here is the caller graph for this function:

◆ setId()

ILIAS\OnScreenChat\DTO\ConversationDto::setId ( string  $id)

Definition at line 44 of file ConversationDto.php.

44 : void
45 {
46 $this->id = $id;
47 }

References $id.

◆ setIsGroup()

ILIAS\OnScreenChat\DTO\ConversationDto::setIsGroup ( bool  $isGroup)

Definition at line 54 of file ConversationDto.php.

54 : void
55 {
56 $this->isGroup = $isGroup;
57 }

References ILIAS\OnScreenChat\DTO\ConversationDto\$isGroup, and ILIAS\OnScreenChat\DTO\ConversationDto\isGroup().

+ Here is the call graph for this function:

◆ setLastMessage()

ILIAS\OnScreenChat\DTO\ConversationDto::setLastMessage ( MessageDto  $lastMessage)

Definition at line 80 of file ConversationDto.php.

80 : void
81 {
82 $this->lastMessage = $lastMessage;
83 }

References ILIAS\OnScreenChat\DTO\ConversationDto\$lastMessage.

◆ setSubscriberUsrIds()

ILIAS\OnScreenChat\DTO\ConversationDto::setSubscriberUsrIds ( array  $subscriberUsrIds)
Parameters
int[]$subscriberUsrIds

Definition at line 70 of file ConversationDto.php.

70 : void
71 {
72 $this->subscriberUsrIds = $subscriberUsrIds;
73 }

References ILIAS\OnScreenChat\DTO\ConversationDto\$subscriberUsrIds.

Field Documentation

◆ $isGroup

bool ILIAS\OnScreenChat\DTO\ConversationDto::$isGroup = false
private

◆ $lastMessage

MessageDto ILIAS\OnScreenChat\DTO\ConversationDto::$lastMessage
private

◆ $subscriberUsrIds

array ILIAS\OnScreenChat\DTO\ConversationDto::$subscriberUsrIds = []
private

The documentation for this class was generated from the following file: