mirror of
https://github.com/pierre42100/ComunicAndroid
synced 2024-12-30 15:38:59 +00:00
Created post model
This commit is contained in:
parent
c5a162ecfb
commit
9032274702
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user