| 3 | import com.example.chatapp.R; |
| 4 | |
| 5 | public class UserModel { |
| 6 | |
| 7 | String profilePic = "R.drawable.user", userName, userMail, userId, userPassword = "null", recentMessage, about, token; |
| 8 | long recentMsgTime; |
| 9 | |
| 10 | public UserModel(String profilePic, String userName, String userMail, String userId, String userPassword, String about) { |
| 11 | this.profilePic = profilePic; |
| 12 | this.userName = userName; |
| 13 | this.userMail = userMail; |
| 14 | this.userId = userId; |
| 15 | this.userPassword = userPassword; |
| 16 | this.about = about; |
| 17 | } |
| 18 | |
| 19 | |
| 20 | // For storing in DB |
| 21 | public UserModel(String userName, String userMail, String userPassword, String profilePic, String about){ |
| 22 | |
| 23 | this.profilePic = profilePic; |
| 24 | this.userName = userName; |
| 25 | this.userMail = userMail; |
| 26 | this.userPassword = userPassword; |
| 27 | this.about = about; |
| 28 | |
| 29 | |
| 30 | } |
| 31 | |
| 32 | |
| 33 | public UserModel() { |
| 34 | } |
| 35 | |
| 36 | // for displaying in chats list and search list |
| 37 | public UserModel(String userName, String userMail, String profilePic) { |
| 38 | this.userName = userName; |
| 39 | this.userMail = userMail; |
| 40 | this.profilePic = profilePic; |
| 41 | } |
| 42 | |
| 43 | public String getToken() { |
| 44 | return token; |
| 45 | } |
| 46 | |
| 47 | public void setToken(String token) { |
| 48 | this.token = token; |
| 49 | } |
| 50 | |
| 51 | public String getAbout() { |
| 52 | return about; |
| 53 | } |
| 54 | |
| 55 | public long getRecentMsgTime() { |
| 56 | return recentMsgTime; |
| 57 | } |
| 58 | |
| 59 | public void setRecentMsgTime(long recentMsgTime) { |
| 60 | this.recentMsgTime = recentMsgTime; |
| 61 | } |
| 62 |
nothing calls this directly
no outgoing calls
no test coverage detected