-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
82 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/// A chat message representation. | ||
class ChatMessage { | ||
/// ID of the chat. | ||
String _chatID; | ||
|
||
/// Intern user ID of the sender. | ||
String _senderID; | ||
|
||
/// Content of the message. | ||
String _content; | ||
|
||
/// Timestamp of the message. | ||
DateTime _timestamp; | ||
|
||
ChatMessage({ | ||
String chatID, | ||
String senderID, | ||
String content, | ||
DateTime timestamp, | ||
}) : this._chatID = chatID, | ||
this._senderID = senderID, | ||
this._content = content, | ||
this._timestamp = timestamp; | ||
|
||
String get content => _content; | ||
|
||
String get senderID => _senderID; | ||
|
||
String get chatID => _chatID; | ||
|
||
DateTime get timestamp => _timestamp; | ||
} |