ILIAS  trunk Revision v11.0_alpha-1838-g59fc79e306b
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
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.

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

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

◆ getConversation()

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

Definition at line 49 of file MessageDto.php.

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

◆ getCreatedTimestamp()

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

Definition at line 69 of file MessageDto.php.

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

69  : int
70  {
72  }

◆ getId()

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

Definition at line 39 of file MessageDto.php.

References $id.

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

◆ getMessage()

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

Definition at line 79 of file MessageDto.php.

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

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

◆ setAuthorUsrId()

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

Definition at line 64 of file MessageDto.php.

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

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

◆ 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.

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

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

◆ setId()

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

Definition at line 44 of file MessageDto.php.

References $id.

44  : void
45  {
46  $this->id = $id;
47  }
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23

◆ setMessage()

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

Definition at line 84 of file MessageDto.php.

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

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

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: