ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ILIAS\OnScreenChat\DTO\MessageDto Class Reference
+ Collaboration diagram for ILIAS\OnScreenChat\DTO\MessageDto:

Public Member Functions

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

Private Attributes

int $createdTimestamp
 
int $authorUsrId = 0
 
string $message = ''
 

Detailed Description

Definition at line 27 of file MessageDto.php.

Constructor & Destructor Documentation

◆ __construct()

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

Definition at line 33 of file MessageDto.php.

34 {
35 $this->createdTimestamp = time();
36 }

Member Function Documentation

◆ getAuthorUsrId()

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

Definition at line 59 of file MessageDto.php.

59 : int
60 {
61 return $this->authorUsrId;
62 }

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

◆ getConversation()

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

Definition at line 49 of file MessageDto.php.

50 {
51 return $this->conversation;
52 }

◆ getCreatedTimestamp()

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

Definition at line 69 of file MessageDto.php.

69 : int
70 {
72 }

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

◆ getId()

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

Definition at line 39 of file MessageDto.php.

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

References $id.

◆ getMessage()

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

Definition at line 79 of file MessageDto.php.

79 : string
80 {
81 return $this->message;
82 }

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

◆ setAuthorUsrId()

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

Definition at line 64 of file MessageDto.php.

64 : void
65 {
66 $this->authorUsrId = $authorUsrId;
67 }

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

◆ setConversation()

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

Definition at line 54 of file MessageDto.php.

54 : void
55 {
56 $this->conversation = $conversation;
57 }

◆ setCreatedTimestamp()

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

Definition at line 74 of file MessageDto.php.

74 : void
75 {
76 $this->createdTimestamp = $createdTimestamp;
77 }

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

◆ setId()

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

Definition at line 44 of file MessageDto.php.

44 : void
45 {
46 $this->id = $id;
47 }

References $id.

◆ setMessage()

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

Definition at line 84 of file MessageDto.php.

84 : void
85 {
86 $this->message = $message;
87 }

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

Field Documentation

◆ $authorUsrId

int ILIAS\OnScreenChat\DTO\MessageDto::$authorUsrId = 0
private

◆ $createdTimestamp

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

◆ $message

string ILIAS\OnScreenChat\DTO\MessageDto::$message = ''
private

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