123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143 |
- package com.topsoft.jianyu.SQLite;
- import android.content.ContentValues;
- /**
- * Created by wangkaiyue on 2018/1/26.
- */
- public class JyMessage {
- private Integer id; //标识
- private String title; //标题
- private String content; //内容
- private String link; //链接
- private String category; //分类
- private Integer readed; //是否已读 0:未读 1:已读
- private Integer comeintime; //接受时间
- private String openid; //用户标识
- private String descript; //描述
- private String extend; //扩展字段
- public Integer getId() {
- return id;
- }
- public void setId(Integer id) {
- this.id = id;
- }
- public String getTitle() {
- return title;
- }
- public void setTitle(String title) {
- this.title = title;
- }
- public String getContent() {
- return content;
- }
- public void setContent(String content) {
- this.content = content;
- }
- public String getLink() {
- return link;
- }
- public void setLink(String link) {
- this.link = link;
- }
- public String getCategory() {
- return category;
- }
- public void setCategory(String category) {
- this.category = category;
- }
- public Integer getReaded() {
- return readed;
- }
- public void setReaded(Integer readed) {
- this.readed = readed;
- }
- public Integer getComeintime() {
- return comeintime;
- }
- public void setComeintime(Integer comeintime) {
- this.comeintime = comeintime;
- }
- public String getOpenid() {
- return openid;
- }
- public void setOpenid(String openid) {
- this.openid = openid;
- }
- public String getDescript() {
- return descript;
- }
- public void setDescript(String descript) {
- this.descript = descript;
- }
- public String getExtend() {
- return extend;
- }
- public void setExtend(String extend) {
- this.extend = extend;
- }
- public JyMessage(){}
- /**
- * 推送信息
- * @param title 标题
- * @param content 内容
- * @param link 链接
- * @param category 分类
- * @param readed 是否已读
- * @param comeintime 创建事件
- * @param openid 用户标识
- * @param descript 描述
- * @param extend 扩展字段
- */
- public JyMessage(String title, String content, String link, String category, Integer readed, Integer comeintime, String openid,String descript,String extend) {
- this.title = title;
- this.content = content;
- this.link = link;
- this.category = category;
- this.readed = readed;
- this.comeintime = comeintime;
- this.openid = openid;
- this.descript=descript;
- this.extend=extend;
- }
- public ContentValues getMsaagesContentValues(){
- ContentValues cv = new ContentValues();
- cv.put("id", id);
- cv.put("title", title);
- cv.put("content",content);
- cv.put("link", link);
- cv.put("category",category);
- cv.put("readed", readed);
- cv.put("comeintime", comeintime);
- cv.put("descript",descript);
- if(!"".equals(openid)&&openid!=null){
- cv.put("openid",openid);
- }
- return cv;
- }
- }
|