MCPcopy Create free account
hub / github.com/Raj-m01/Android-Chat-App / MessageModel

Class MessageModel

app/src/main/java/models/MessageModel.java:3–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1package models;
2
3public class MessageModel {
4
5 String uId, msgText;
6 long msgTime;
7
8 public MessageModel() {
9 }
10
11 public MessageModel(long msgTime, String msgText) {
12 this.msgTime = msgTime;
13 this.msgText = msgText;
14 }
15
16 public MessageModel(String uId, String msgText, long msgTime) {
17 this.uId = uId;
18 this.msgText = msgText;
19 this.msgTime = msgTime;
20 }
21
22 public String getuId() {
23 return uId;
24 }
25
26 public void setuId(String uId) {
27 this.uId = uId;
28 }
29
30 public String getMsgText() {
31 return msgText;
32 }
33
34 public void setMsgText(String msgText) {
35 this.msgText = msgText;
36 }
37
38 public long getMsgTime() {
39 return msgTime;
40 }
41
42 public void setMsgTime(long msgTime) {
43 this.msgTime = msgTime;
44 }
45}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected