Advertisement
heru0502

Message.java

Jan 19th, 2018
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.38 KB | None | 0 0
  1. package com.androidchatapp;
  2.  
  3. /**
  4.  * Created by manlai on 11/4/2017.
  5.  */
  6.  
  7. public class Message
  8. {
  9.     private String text, user, to, status,  photoURL, type/*, fileName*/;
  10.  
  11.     public Message() { }
  12.  
  13.     public Message(String text, String user, String to, String status, String photoURL, String type/*, String fileName*/)
  14.     {
  15.         this.text = text;
  16.         this.user = user;
  17.         this.to = to;
  18.         this.status = status;
  19.         this.photoURL = photoURL;
  20.         this.type = type;
  21. //        this.fileName = fileName;
  22.     }
  23.  
  24.     public String getText() {
  25.         return text;
  26.     }
  27.  
  28.     public void setText(String text) {
  29.         this.text = text;
  30.     }
  31.  
  32.     public String getUser() {
  33.         return user;
  34.     }
  35.  
  36.     public void setUser(String user) {
  37.         this.user = user;
  38.     }
  39.  
  40.     public String getTo() {
  41.         return to;
  42.     }
  43.  
  44.     public void setTo(String to) {
  45.         this.to = to;
  46.     }
  47.  
  48.     public String getStatus() {
  49.         return status;
  50.     }
  51.  
  52.     public void setStatus(String status) {
  53.         this.status = status;
  54.     }
  55.  
  56.     public String getPhotoURL() {
  57.         return photoURL;
  58.     }
  59.  
  60.     public void setPhotoURL(String photoURL) {
  61.         this.photoURL = photoURL;
  62.     }
  63.  
  64.     public String getType() {
  65.         return type;
  66.     }
  67.  
  68.     public void setType(String type) {
  69.         this.type = type;
  70.     }
  71.  
  72. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement