You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Class that represents a chat message in a conversation.
5
+
*/
6
+
data classMessage (
7
+
valsenderID:Int,
8
+
valreceiverID:Int,
9
+
valtimestamp:Long,
10
+
valcontent:String
11
+
) {
12
+
/**
13
+
* Some sample messages for the conversation screen.
14
+
*/
15
+
companionobject {
16
+
valSamples=listOf(
17
+
Message(1, 0, System.currentTimeMillis() -5982341, "Oi, Lionel! What a match today! I honestly thought we were done for at halftime being 2-0 down, but that second half was brilliant! We really pulled it together, didn’t we?"),
18
+
Message(0, 1, System.currentTimeMillis() -4553793, "Absolutely, Cristiano! That comeback was mental! Your goal really got everyone buzzing. And that assist I had? Proper chuffed to finally chip in like that! But can we talk about the ref? What a wanker!"),
19
+
Message(1, 0, System.currentTimeMillis() -3163455, "Right? I mean, some of those calls were ridiculous! I thought he was going to cost us the game. Thank goodness we managed to turn it around despite him!"),
20
+
Message(0, 1, System.currentTimeMillis() -2398574, "No doubt about it! I reckon we’re finally starting to gel as a team, but we need to work on our communication a bit. I lost track of you a couple of times out there!"),
21
+
Message(1, 0, System.currentTimeMillis() -1637465, "Totally agree! Let’s sort out a practice this week to work on that. And afterwards, we should grab a bite and find a pub that shows the highlights! What do you reckon?")
0 commit comments