ILIAS  release_8 Revision v8.24
ILIAS\OnScreenChat\DTO\ConversationDto Class Reference
+ Collaboration diagram for ILIAS\OnScreenChat\DTO\ConversationDto:

Public Member Functions

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

Private Attributes

string $id
 
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 ( string  $id)

Definition at line 35 of file ConversationDto.php.

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

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

Member Function Documentation

◆ getId()

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

Definition at line 41 of file ConversationDto.php.

41 : string
42 {
43 return $this->id;
44 }

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

◆ getLastMessage()

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

◆ getSubscriberUsrIds()

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

Definition at line 64 of file ConversationDto.php.

64 : array
65 {
67 }

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

◆ isGroup()

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

Definition at line 51 of file ConversationDto.php.

51 : bool
52 {
53 return $this->isGroup;
54 }

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 46 of file ConversationDto.php.

46 : void
47 {
48 $this->id = $id;
49 }

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

◆ setIsGroup()

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

Definition at line 56 of file ConversationDto.php.

56 : void
57 {
58 $this->isGroup = $isGroup;
59 }

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 82 of file ConversationDto.php.

82 : void
83 {
84 $this->lastMessage = $lastMessage;
85 }

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

◆ setSubscriberUsrIds()

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

Definition at line 72 of file ConversationDto.php.

72 : void
73 {
74 $this->subscriberUsrIds = $subscriberUsrIds;
75 }

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

Field Documentation

◆ $id

string ILIAS\OnScreenChat\DTO\ConversationDto::$id
private

◆ $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: