Advertisement
rachmadi

POJO with Timestamp

Apr 10th, 2017
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.45 KB | None | 0 0
  1. package info.rekayasa.socmed.entity;
  2.  
  3. import com.google.firebase.database.ServerValue;
  4.  
  5. /**
  6.  * Created by rachmadi on 4/10/17.
  7.  */
  8.  
  9. public class Post {
  10.  
  11.     public String fullName;
  12.     public String content;
  13.     public Object timestamp;
  14.  
  15.     public Post() {
  16.     }
  17.  
  18.     public Post(String fullName, String content) {
  19.         this.fullName = fullName;
  20.         this.content = content;
  21.         this.timestamp = ServerValue.TIMESTAMP;
  22.     }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement