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

Public Member Functions

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

Private Attributes

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

Definition at line 35 of file MessageDto.php.

36 {
37 $this->id = $id;
38 $this->conversation = $conversation;
39 $this->createdTimestamp = time();
40 }

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

Member Function Documentation

◆ getAuthorUsrId()

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

Definition at line 63 of file MessageDto.php.

63 : int
64 {
65 return $this->authorUsrId;
66 }

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

◆ getConversation()

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

◆ getCreatedTimestamp()

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

Definition at line 73 of file MessageDto.php.

73 : int
74 {
76 }

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

◆ getId()

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

Definition at line 43 of file MessageDto.php.

43 : string
44 {
45 return $this->id;
46 }

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

◆ getMessage()

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

Definition at line 83 of file MessageDto.php.

83 : string
84 {
85 return $this->message;
86 }

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

◆ setAuthorUsrId()

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

Definition at line 68 of file MessageDto.php.

68 : void
69 {
70 $this->authorUsrId = $authorUsrId;
71 }

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

◆ setConversation()

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

Definition at line 58 of file MessageDto.php.

58 : void
59 {
60 $this->conversation = $conversation;
61 }

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

◆ setCreatedTimestamp()

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

Definition at line 78 of file MessageDto.php.

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

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

◆ setId()

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

Definition at line 48 of file MessageDto.php.

48 : void
49 {
50 $this->id = $id;
51 }

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

◆ setMessage()

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

Definition at line 88 of file MessageDto.php.

88 : void
89 {
90 $this->message = $message;
91 }

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

Field Documentation

◆ $authorUsrId

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

◆ $conversation

◆ $createdTimestamp

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

◆ $id

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

◆ $message

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

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