ILIAS  release_7 Revision v7.30-3-g800a261c036
ILIAS\OnScreenChat\DTO\ConversationDto Class Reference
+ Collaboration diagram for ILIAS\OnScreenChat\DTO\ConversationDto:

Public Member Functions

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

Private Attributes

 $id = ''
 
 $isGroup = false
 
 $subscriberUsrIds = []
 
 $lastMessage
 

Detailed Description

Definition at line 10 of file ConversationDto.php.

Constructor & Destructor Documentation

◆ __construct()

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

ConversationDto constructor.

Parameters
string$id

Definition at line 25 of file ConversationDto.php.

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

26  {
27  $this->id = $id;
28  }

Member Function Documentation

◆ getId()

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

Definition at line 33 of file ConversationDto.php.

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

33  : string
34  {
35  return $this->id;
36  }

◆ getLastMessage()

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

Definition at line 81 of file ConversationDto.php.

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

81  : MessageDto
82  {
83  return $this->lastMessage;
84  }

◆ getSubscriberUsrIds()

ILIAS\OnScreenChat\DTO\ConversationDto::getSubscriberUsrIds ( )
Returns
array

Definition at line 65 of file ConversationDto.php.

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

Referenced by ILIAS\OnScreenChat\Provider\OnScreenChatNotificationProvider\getAsyncItem().

65  : array
66  {
68  }
+ Here is the caller graph for this function:

◆ isGroup()

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

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

Definition at line 41 of file ConversationDto.php.

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

41  : void
42  {
43  $this->id = $id;
44  }

◆ setIsGroup()

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

Definition at line 57 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)
Parameters
MessageDto$lastMessage

Definition at line 89 of file ConversationDto.php.

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

89  : void
90  {
91  $this->lastMessage = $lastMessage;
92  }

◆ setSubscriberUsrIds()

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

Definition at line 73 of file ConversationDto.php.

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

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

Field Documentation

◆ $id

ILIAS\OnScreenChat\DTO\ConversationDto::$id = ''
private

◆ $isGroup

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

◆ $lastMessage

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

◆ $subscriberUsrIds

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

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