Created post model

This commit is contained in:
Pierre 2018-01-21 18:32:56 +01:00
parent c5a162ecfb
commit 9032274702

View File

@ -0,0 +1,60 @@
package org.communiquons.android.comunic.client.data.posts;
/**
* Post model
*
* This object contains the informations about a single post
*
* @author Pierre HUBERT
* Created by pierre on 1/21/18.
*/
public class Post {
//Private fields
private int id;
private int userID;
private int post_time;
private String content;
//Set and get the ID of the post
public void setId(int id) {
this.id = id;
}
public int getId() {
return id;
}
//Set the get the ID of the owner of the post
public void setUserID(int userID) {
this.userID = userID;
}
public int getUserID() {
return userID;
}
//Set and get the post creation time
public void setPost_time(int post_time) {
this.post_time = post_time;
}
public int getPost_time() {
return post_time;
}
//Set and get the content of the post
public void setContent(String content) {
this.content = content;
}
public String getContent() {
return content;
}
}