ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
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.

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

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

Member Function Documentation

◆ getId()

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

Definition at line 41 of file ConversationDto.php.

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

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

◆ getLastMessage()

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

Definition at line 77 of file ConversationDto.php.

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

77  : MessageDto
78  {
79  return $this->lastMessage;
80  }

◆ getSubscriberUsrIds()

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

Definition at line 64 of file ConversationDto.php.

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

64  : array
65  {
67  }

◆ isGroup()

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

Definition at line 51 of file ConversationDto.php.

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

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

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

◆ setId()

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

Definition at line 46 of file ConversationDto.php.

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

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

◆ setIsGroup()

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

Definition at line 56 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 82 of file ConversationDto.php.

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

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

◆ setSubscriberUsrIds()

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

Definition at line 72 of file ConversationDto.php.

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

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

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: