ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
ILIAS\OnScreenChat\DTO\MessageDto Class Reference
+ Collaboration diagram for ILIAS\OnScreenChat\DTO\MessageDto:

Public Member Functions

 __construct (string $id, ConversationDto $conversation)
 MessageDtop constructor. More...
 
 getId ()
 
 setId (string $id)
 
 getConversation ()
 
 setConversation (ConversationDto $conversation)
 
 getAuthorUsrId ()
 
 setAuthorUsrId (int $authorUsrId)
 
 getCreatedTimestamp ()
 
 setCreatedTimestamp (int $createdTimestamp)
 
 getMessage ()
 
 setMessage (string $message)
 

Private Attributes

 $id = ''
 
 $conversation
 
 $authorUsrId
 
 $createdTimestamp
 
 $message
 

Detailed Description

Definition at line 10 of file MessageDto.php.

Constructor & Destructor Documentation

◆ __construct()

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

MessageDtop constructor.

Parameters
string$id
ConversationDto$conversation

Definition at line 28 of file MessageDto.php.

References ILIAS\OnScreenChat\DTO\MessageDto\$conversation, and ILIAS\OnScreenChat\DTO\MessageDto\$id.

29  {
30  $this->id = $id;
31  $this->conversation = $conversation;
32  }

Member Function Documentation

◆ getAuthorUsrId()

ILIAS\OnScreenChat\DTO\MessageDto::getAuthorUsrId ( )
Returns
int

Definition at line 70 of file MessageDto.php.

References ILIAS\OnScreenChat\DTO\MessageDto\$authorUsrId.

70  : int
71  {
72  return $this->authorUsrId;
73  }

◆ getConversation()

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

Definition at line 54 of file MessageDto.php.

References ILIAS\OnScreenChat\DTO\MessageDto\$conversation.

54  : ConversationDto
55  {
56  return $this->conversation;
57  }

◆ getCreatedTimestamp()

ILIAS\OnScreenChat\DTO\MessageDto::getCreatedTimestamp ( )
Returns
int

Definition at line 86 of file MessageDto.php.

References ILIAS\OnScreenChat\DTO\MessageDto\$createdTimestamp.

86  : int
87  {
89  }

◆ getId()

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

Definition at line 38 of file MessageDto.php.

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

38  : string
39  {
40  return $this->id;
41  }

◆ getMessage()

ILIAS\OnScreenChat\DTO\MessageDto::getMessage ( )
Returns
string

Definition at line 102 of file MessageDto.php.

References ILIAS\OnScreenChat\DTO\MessageDto\$message.

102  : string
103  {
104  return $this->message;
105  }

◆ setAuthorUsrId()

ILIAS\OnScreenChat\DTO\MessageDto::setAuthorUsrId ( int  $authorUsrId)
Parameters
int$authorUsrId

Definition at line 78 of file MessageDto.php.

References ILIAS\OnScreenChat\DTO\MessageDto\$authorUsrId.

78  : void
79  {
80  $this->authorUsrId = $authorUsrId;
81  }

◆ setConversation()

ILIAS\OnScreenChat\DTO\MessageDto::setConversation ( ConversationDto  $conversation)
Parameters
ConversationDto$conversation

Definition at line 62 of file MessageDto.php.

References ILIAS\OnScreenChat\DTO\MessageDto\$conversation.

62  : void
63  {
64  $this->conversation = $conversation;
65  }

◆ setCreatedTimestamp()

ILIAS\OnScreenChat\DTO\MessageDto::setCreatedTimestamp ( int  $createdTimestamp)
Parameters
int$createdTimestamp

Definition at line 94 of file MessageDto.php.

References ILIAS\OnScreenChat\DTO\MessageDto\$createdTimestamp.

94  : void
95  {
96  $this->createdTimestamp = $createdTimestamp;
97  }

◆ setId()

ILIAS\OnScreenChat\DTO\MessageDto::setId ( string  $id)
Parameters
string$id

Definition at line 46 of file MessageDto.php.

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

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

◆ setMessage()

ILIAS\OnScreenChat\DTO\MessageDto::setMessage ( string  $message)
Parameters
string$message

Definition at line 110 of file MessageDto.php.

References ILIAS\OnScreenChat\DTO\MessageDto\$message.

110  : void
111  {
112  $this->message = $message;
113  }

Field Documentation

◆ $authorUsrId

ILIAS\OnScreenChat\DTO\MessageDto::$authorUsrId
private

◆ $conversation

ILIAS\OnScreenChat\DTO\MessageDto::$conversation
private

◆ $createdTimestamp

ILIAS\OnScreenChat\DTO\MessageDto::$createdTimestamp
private

◆ $id

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

◆ $message

ILIAS\OnScreenChat\DTO\MessageDto::$message
private

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