package org.x.tongnews.object; import com.j256.ormlite.field.DataType; import com.j256.ormlite.field.DatabaseField; import com.j256.ormlite.table.DatabaseTable; import java.io.Serializable; import java.util.ArrayList; /** * Created by ayaseruri on 15/8/9. */ @DatabaseTable(tableName = "posts") public class PostsProvider { @DatabaseField(dataType = DataType.SERIALIZABLE) public ArrayList<Post> postArrayList; @DatabaseField public int totalPageCount; public ArrayList<Post> getPostArrayList() { return postArrayList; } public void setPostArrayList(ArrayList<Post> postArrayList) { this.postArrayList = postArrayList; } public int getTotalPageCount() { return totalPageCount; } public void setTotalPageCount(int totalPageCount) { this.totalPageCount = totalPageCount; } public static class Post implements Serializable{ String id; String videoLink; String imageUrl; String title; String author; String time; String viewCount; String commentCount; String shortDiscription; ArrayList<String> tags; public String getId() { return id; } public void setId(String id) { this.id = id; } public String getVideoLink() { return videoLink; } public void setVideoLink(String videoLink) { this.videoLink = videoLink; } public String getImageUrl() { return imageUrl; } public void setImageUrl(String imageUrl) { this.imageUrl = imageUrl; } public String getTitle() { return title; } public void setTitle(String title) { this.title = title; } public String getAuthor() { return author; } public void setAuthor(String author) { this.author = author; } public String getTime() { return time; } public void setTime(String time) { this.time = time; } public String getViewCount() { return viewCount; } public void setViewCount(String viewCount) { this.viewCount = viewCount; } public String getCommentCount() { return commentCount; } public void setCommentCount(String commentCount) { this.commentCount = commentCount; } public String getShortDiscription() { return shortDiscription; } public void setShortDiscription(String shortDiscription) { this.shortDiscription = shortDiscription; } public ArrayList<String> getTags() { return tags; } public void setTags(ArrayList<String> tags) { this.tags = tags; } } }