ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
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.

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

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

Member Function Documentation

◆ getAuthorUsrId()

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

Definition at line 63 of file MessageDto.php.

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

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

◆ getConversation()

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

Definition at line 53 of file MessageDto.php.

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

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

◆ getCreatedTimestamp()

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

Definition at line 73 of file MessageDto.php.

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

73  : int
74  {
76  }

◆ getId()

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

Definition at line 43 of file MessageDto.php.

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

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

◆ getMessage()

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

Definition at line 83 of file MessageDto.php.

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

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

◆ setAuthorUsrId()

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

Definition at line 68 of file MessageDto.php.

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

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

◆ setConversation()

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

Definition at line 58 of file MessageDto.php.

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

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

◆ setCreatedTimestamp()

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

Definition at line 78 of file MessageDto.php.

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

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

◆ setId()

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

Definition at line 48 of file MessageDto.php.

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

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

◆ setMessage()

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

Definition at line 88 of file MessageDto.php.

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

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

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: