ILIAS  trunk Revision v11.0_alpha-2645-g16283d3b3f8
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.

References $id.

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

◆ getLastMessage()

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

Definition at line 75 of file ConversationDto.php.

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

75  : MessageDto
76  {
77  return $this->lastMessage;
78  }

◆ getSubscriberUsrIds()

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

Definition at line 62 of file ConversationDto.php.

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

62  : array
63  {
65  }

◆ isGroup()

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

Definition at line 49 of file ConversationDto.php.

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

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

49  : bool
50  {
51  return $this->isGroup;
52  }
+ Here is the caller graph for this function:

◆ setId()

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

Definition at line 44 of file ConversationDto.php.

References $id.

44  : void
45  {
46  $this->id = $id;
47  }
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23

◆ setIsGroup()

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

Definition at line 54 of file ConversationDto.php.

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.

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

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

◆ setSubscriberUsrIds()

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

Definition at line 70 of file ConversationDto.php.

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

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

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: