Commit 4021f74f448929a6c67a5c3f28c43a1dacb1021e

Authored by 韩亚云
1 parent 572b0804

数据库版块集成

Showing 44 changed files with 4710 additions and 96 deletions

Too many changes to show.

To preserve performance only 44 of 77 files are displayed.

core/database/src/main/java/com/cnlive/database/api/AudioDownAPI.java 0 → 100644
  1 +package com.cnlive.database.api;
  2 +
  3 +import android.content.Context;
  4 +import android.os.Build;
  5 +import android.os.Environment;
  6 +
  7 +import com.alibaba.android.arouter.launcher.ARouter;
  8 +import com.cnlive.core.libs.base.arouter.user.CNLiveUserService;
  9 +import com.cnlive.database.bean.DownloadInfo;
  10 +import com.cnlive.database.dao.DownloadInfoDao;
  11 +import com.cnlive.database.dbUtil.DaoHelper;
  12 +
  13 +import java.io.File;
  14 +import java.util.List;
  15 +
  16 +/**
  17 + * Created by hanyayun on 2019/05/13.
  18 + */
  19 +public class AudioDownAPI {
  20 +
  21 + /**
  22 + * 下载完成并且本地是存在
  23 + * @param activityId
  24 + * @param context
  25 + * @return
  26 + */
  27 + public static String isDown(String activityId, Context context){
  28 + CNLiveUserService service = (CNLiveUserService) ARouter.getInstance().navigation(CNLiveUserService.class);
  29 + String userId = service.getUid(context);
  30 + List<DownloadInfo> downloadInfos = DaoHelper.getInstance(context).getDownloadInfoDao().queryBuilder().where(DownloadInfoDao.Properties.UrlId.eq(activityId)).list();
  31 + if(downloadInfos != null && downloadInfos.size() > 0 && downloadInfos.get(0).getDownloadStatus() != null &&
  32 + downloadInfos.get(0).getDownloadStatus().equals("over") && new File((Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q ?context.getExternalFilesDir(""):Environment.getExternalStorageDirectory()) + "/strike/voice/" + userId+"/"+downloadInfos.get(0).getFileName()).exists()) {
  33 + return (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q ?context.getExternalFilesDir(""):Environment.getExternalStorageDirectory().getAbsolutePath()) + "/strike/voice/" + userId+"/"+downloadInfos.get(0).getFileName();
  34 + }
  35 + return null;
  36 + }
  37 +}
core/database/src/main/java/com/cnlive/database/api/DBFriendCircleDetailAPI.java 0 → 100644
  1 +package com.cnlive.database.api;
  2 +
  3 +import android.content.Context;
  4 +
  5 +
  6 +import com.cnlive.database.bean.DBMomentDetail;
  7 +import com.cnlive.database.bean.DBMomentItem;
  8 +import com.cnlive.database.dao.DBMomentDetailDao;
  9 +import com.cnlive.database.dao.DBMomentItemDao;
  10 +import com.cnlive.database.dbUtil.DaoHelper;
  11 +
  12 +import org.greenrobot.greendao.query.WhereCondition;
  13 +
  14 +import java.util.List;
  15 +
  16 +
  17 +public class DBFriendCircleDetailAPI {
  18 + public static void insertData(Context context, List<DBMomentItem> dbMomentItems) {
  19 + if (dbMomentItems == null) return;
  20 + DaoHelper.getInstance(context).getDBMomentItemDao().insertInTx(dbMomentItems);
  21 + }
  22 +
  23 +
  24 + public static long insertData(Context context, DBMomentDetail momentDetail) {
  25 + if (momentDetail == null) return -1;
  26 + return DaoHelper.getInstance(context).getDBMomentDetailDao().insertOrReplace(momentDetail);
  27 + }
  28 +
  29 + public static void removeData(Context context, int type, String sid) {
  30 + WhereCondition sidWC = DBMomentDetailDao.Properties.Sid.eq(sid + "_" + type);
  31 + WhereCondition typeWC = DBMomentDetailDao.Properties.Type.eq(type);
  32 +
  33 + DBMomentItemDao itemDao = DaoHelper.getInstance(context).getDBMomentItemDao();
  34 + DBMomentDetailDao detailDao = DaoHelper.getInstance(context).getDBMomentDetailDao();
  35 +
  36 + DBMomentDetail oldData = detailDao.queryBuilder().where(sidWC, typeWC).unique();
  37 + if (oldData != null && oldData.getMomentItems() != null)
  38 + itemDao.deleteInTx(oldData.getMomentItems());
  39 + }
  40 +
  41 + public static DBMomentDetail loadData(Context context, int type, String sid) {
  42 + DBMomentDetailDao dao = DaoHelper.getInstance(context).getDBMomentDetailDao();
  43 + DBMomentDetail data = dao.queryBuilder()
  44 + .where(DBMomentDetailDao.Properties.Sid.eq(sid + "_" + type), DBMomentDetailDao.Properties.Type.eq(type))
  45 + .unique();
  46 +
  47 + return data != null ? data : new DBMomentDetail();
  48 + }
  49 +
  50 + public static void deleteMomentItem(Context context, String momentId) {
  51 + DBMomentItemDao dao = DaoHelper.getInstance(context).getDBMomentItemDao();
  52 + dao.deleteInTx(dao.queryBuilder().where(DBMomentItemDao.Properties.ItemId.eq(momentId)).list());
  53 + }
  54 +
  55 +}
core/database/src/main/java/com/cnlive/database/api/DBFriendCircleMessageAPI.java 0 → 100644
  1 +package com.cnlive.database.api;
  2 +
  3 +import android.content.Context;
  4 +
  5 +import com.alibaba.android.arouter.launcher.ARouter;
  6 +import com.cnlive.core.libs.base.arouter.user.CNLiveUserService;
  7 +import com.cnlive.database.bean.DBFriendCircleMessage;
  8 +import com.cnlive.database.dao.DBFriendCircleMessageDao;
  9 +import com.cnlive.database.dbUtil.DaoHelper;
  10 +
  11 +import java.util.Collections;
  12 +import java.util.List;
  13 +
  14 +public class DBFriendCircleMessageAPI {
  15 +
  16 + /**
  17 + * 添加新消息至数据库
  18 + *
  19 + * @return
  20 + */
  21 + public static void insertData(Context context, List<DBFriendCircleMessage> items) {
  22 + if (items == null || items.size() == 0) return;
  23 + DBFriendCircleMessageDao dao = DaoHelper.getInstance(context).getFriendCircleMessageDao();
  24 + dao.insertOrReplaceInTx(items);
  25 + }
  26 +
  27 + /**
  28 + * 读取历史新消息
  29 + *
  30 + * @return
  31 + */
  32 + public static List<DBFriendCircleMessage> loadData(Context context) {
  33 + CNLiveUserService service = (CNLiveUserService) ARouter.getInstance().navigation(CNLiveUserService.class);
  34 + String sid = service.getUid(context);
  35 + DBFriendCircleMessageDao dao = DaoHelper.getInstance(context).getFriendCircleMessageDao();
  36 + List<DBFriendCircleMessage> list = dao.queryBuilder().where(DBFriendCircleMessageDao.Properties.Sid.eq(sid)).list();
  37 + Collections.reverse(list);
  38 + return list;
  39 + }
  40 +
  41 + /**
  42 + * 清空新消息数据
  43 + *
  44 + * @return
  45 + */
  46 + public static void cleanData(Context context) {
  47 + DBFriendCircleMessageDao dao = DaoHelper.getInstance(context).getFriendCircleMessageDao();
  48 + dao.deleteAll();
  49 + }
  50 +
  51 +}
core/database/src/main/java/com/cnlive/database/api/DBWitnessDetailAPI.java 0 → 100644
  1 +package com.cnlive.database.api;
  2 +
  3 +import android.content.Context;
  4 +
  5 +import com.cnlive.database.bean.Witness;
  6 +import com.cnlive.database.dao.WitnessDao;
  7 +import com.cnlive.database.dbUtil.DaoHelper;
  8 +
  9 +import org.greenrobot.greendao.query.WhereCondition;
  10 +
  11 +import java.util.Collections;
  12 +import java.util.List;
  13 +
  14 +
  15 +public class DBWitnessDetailAPI {
  16 +
  17 +
  18 + public static long insertData(Context context, Witness momentDetail) {
  19 + if (momentDetail == null) return -1;
  20 + long insert = DaoHelper.getInstance(context).getWitnessDao().insert(momentDetail);
  21 + return insert;
  22 +
  23 + }
  24 +
  25 + public static void removeData(Context context, String id) {
  26 + WhereCondition mediasWC = WitnessDao.Properties.Id.eq(id);
  27 +
  28 + WitnessDao itemDao = DaoHelper.getInstance(context).getWitnessDao();
  29 +
  30 + Witness oldData = itemDao.queryBuilder().where(mediasWC).unique();
  31 + if (oldData != null)
  32 + itemDao.deleteInTx(oldData);
  33 + }
  34 +
  35 + public static List<Witness> loadData(Context context) {
  36 + WitnessDao dao = DaoHelper.getInstance(context).getWitnessDao();
  37 + List<Witness> list = dao.queryBuilder().list();
  38 + Collections.reverse(list);
  39 + return list;
  40 + }
  41 +
  42 +
  43 + public static void deleteWitnessItem(Context context, String time) {
  44 + WitnessDao dao = DaoHelper.getInstance(context).getWitnessDao();
  45 + dao.deleteInTx(dao.queryBuilder().where(WitnessDao.Properties.TimeStamp.eq(time)).unique());
  46 + }
  47 +
  48 +
  49 + public static void update(Context context, String time, Witness up) {
  50 + WitnessDao dao = DaoHelper.getInstance(context).getWitnessDao();
  51 + Witness load = dao.load(time);
  52 + load.setId(up.getId());
  53 + load.setSid(up.getSid());
  54 + load.setMedias(up.getMedias());
  55 + load.setTitle(up.getTitle());
  56 + load.setWit(up.getWit());
  57 + load.setType(up.getType());
  58 + load.setVideotype(up.getVideotype());
  59 + load.setGopath(up.getGopath());
  60 + load.setMultiplecategory(up.getMultiplecategory());
  61 + load.setTag(up.getTag());
  62 + load.setTimeStamp(time);
  63 + load.setDutation(up.getDutation());
  64 + load.setSrc(up.getSrc());
  65 + dao.updateInTx(load);
  66 + }
  67 +
  68 +}
core/database/src/main/java/com/cnlive/database/api/DarenDetailAPI.java 0 → 100644
  1 +package com.cnlive.database.api;
  2 +
  3 +import android.content.Context;
  4 +import android.util.Log;
  5 +
  6 +import com.cnlive.database.bean.DarenDetailMsg;
  7 +import com.cnlive.database.dao.DarenDetailMsgDao;
  8 +import com.cnlive.database.dbUtil.DaoHelper;
  9 +
  10 +/**
  11 + * Created by Lynn on 2018/7/21.
  12 + */
  13 +
  14 +public class DarenDetailAPI {
  15 + /**
  16 + * 插入达人详情
  17 + */
  18 + public static long insertData(Context context, DarenDetailMsg data) {
  19 + if (data == null) return -1;
  20 + DarenDetailMsgDao dao = DaoHelper.getInstance(context).getDarenDetailDao();
  21 + removeItem(context, data.getSid(), data.getDarenId());
  22 + Log.e("LynnTest", "end : " + System.currentTimeMillis());
  23 + return dao.insertOrReplace(data);
  24 + }
  25 +
  26 + /**
  27 + * @param context
  28 + * @param sid
  29 + * @param darenId
  30 + * @return
  31 + */
  32 + public static DarenDetailMsg loadData(Context context, String sid, String darenId) {
  33 + DarenDetailMsgDao dao = DaoHelper.getInstance(context).getDarenDetailDao();
  34 + return dao.queryBuilder()
  35 + .where(DarenDetailMsgDao.Properties.DarenId.eq(darenId), DarenDetailMsgDao.Properties.Sid.eq(sid)).unique();
  36 + }
  37 +
  38 + public static void clean(Context context) {
  39 + DarenDetailMsgDao darenDetailMsgDao = DaoHelper.getInstance(context).getDarenDetailDao();
  40 + darenDetailMsgDao.deleteAll();
  41 + }
  42 +
  43 + public static void removeItem(Context context, String sid, String darenId) {
  44 + DarenDetailMsgDao darenDetailMsgDao = DaoHelper.getInstance(context).getDarenDetailDao();
  45 + DarenDetailMsg darenDetailMsg = loadData(context, sid, darenId);
  46 + if (darenDetailMsg != null) darenDetailMsgDao.delete(darenDetailMsg);
  47 + }
  48 +
  49 + /**
  50 + * 更新达人是否被关注
  51 + *
  52 + * @param context
  53 + * @param sid
  54 + * @param darenId
  55 + * @param fans
  56 + */
  57 + public static void updateDarenState(Context context, String sid, String darenId, boolean fans) {
  58 + Log.e("LynnTest", "start : " + System.currentTimeMillis());
  59 + DarenDetailMsg detailMsg = loadData(context, sid, darenId);
  60 + if (detailMsg == null)
  61 + return;
  62 + detailMsg.setFan(fans);
  63 + insertData(context, detailMsg);
  64 + }
  65 +}
core/database/src/main/java/com/cnlive/database/api/ExceptionInfoAPI.java 0 → 100644
  1 +package com.cnlive.database.api;
  2 +
  3 +import android.content.Context;
  4 +
  5 +import com.cnlive.database.bean.ExceptionInfo;
  6 +import com.cnlive.database.dao.ExceptionInfoDao;
  7 +import com.cnlive.database.dbUtil.DaoHelper;
  8 +
  9 +import java.util.List;
  10 +
  11 +/**
  12 + * Created by xiansong on 2017/12/22.
  13 + */
  14 +
  15 +public class ExceptionInfoAPI {
  16 +
  17 + /**
  18 + * 获取异常日志列表
  19 + *
  20 + * @param context
  21 + * @return
  22 + */
  23 + public static List<ExceptionInfo> getList(Context context, String userId) {
  24 + ExceptionInfoDao dao = DaoHelper.getInstance(context).getExceptionInfoDao();
  25 + return dao.loadAll();
  26 + }
  27 +
  28 + /**
  29 + * 插入异常日志
  30 + *
  31 + * @param context
  32 + * @param info
  33 + */
  34 + public static void insertItem(Context context, ExceptionInfo info) {
  35 + ExceptionInfoDao dao = DaoHelper.getInstance(context).getExceptionInfoDao();
  36 + dao.insert(info);
  37 + }
  38 +
  39 +}
core/database/src/main/java/com/cnlive/database/api/NewNumberApi.java 0 → 100644
  1 +package com.cnlive.database.api;
  2 +
  3 +import android.content.Context;
  4 +
  5 +import com.cnlive.database.bean.NewsNumber;
  6 +import com.cnlive.database.dao.NewsNumberDao;
  7 +import com.cnlive.database.dbUtil.DaoHelper;
  8 +
  9 +import java.util.List;
  10 +
  11 +/**
  12 + * Created by Lynn on 2019/8/9.
  13 + */
  14 +public class NewNumberApi {
  15 + public static long insertData(Context context, NewsNumber newsNumber) {
  16 + if (newsNumber == null) {
  17 + return -1;
  18 + }
  19 +
  20 + NewsNumberDao dao = DaoHelper.getInstance(context).getNewsNumberDao();
  21 + if (loadData(context, newsNumber.getTs()) != null) {
  22 + return -1;
  23 + }
  24 + return dao.insertOrReplace(newsNumber);
  25 +
  26 + }
  27 +
  28 + public static List<NewsNumber> loadDatas(Context context, long ts, int limit, int pageNo) {
  29 + NewsNumberDao dao = DaoHelper.getInstance(context).getNewsNumberDao();
  30 + if (ts == -1) {
  31 + return dao.queryBuilder().orderDesc(NewsNumberDao.Properties.Ts).limit(limit).offset(pageNo * limit).list();
  32 + } else {
  33 + return dao.queryBuilder().orderDesc(NewsNumberDao.Properties.Ts).where(NewsNumberDao.Properties.Ts.lt(ts)).limit(limit).offset(pageNo * limit).list();
  34 + }
  35 + }
  36 +
  37 + public static long loadCount(Context context, long ts) {
  38 + NewsNumberDao dao = DaoHelper.getInstance(context).getNewsNumberDao();
  39 + if (ts == -1) {
  40 + return dao.queryBuilder().count();
  41 + }
  42 + return dao.queryBuilder().where(NewsNumberDao.Properties.Ts.le(ts)).count();
  43 + }
  44 +
  45 + public static NewsNumber loadData(Context context, String ts) {
  46 + NewsNumberDao dao = DaoHelper.getInstance(context).getNewsNumberDao();
  47 + return dao.queryBuilder().where(NewsNumberDao.Properties.Ts.eq(ts)).unique();
  48 + }
  49 +
  50 + /**
  51 + * 获取最新一条数据的时间戳
  52 + *
  53 + * @param userId
  54 + * @return
  55 + */
  56 + public static String loadNewestData(Context context, String userId) {
  57 + NewsNumberDao dao = DaoHelper.getInstance(context).getNewsNumberDao();
  58 + return dao.queryBuilder().orderDesc(NewsNumberDao.Properties.Ts).list().get(0).getTs();
  59 + }
  60 +}
core/database/src/main/java/com/cnlive/database/api/SearchContentAPI.java 0 → 100644
  1 +package com.cnlive.database.api;
  2 +
  3 +import android.content.Context;
  4 +
  5 +import com.alibaba.android.arouter.launcher.ARouter;
  6 +import com.cnlive.core.libs.base.arouter.user.CNLiveUserService;
  7 +import com.cnlive.database.bean.SearchContent;
  8 +import com.cnlive.database.dao.SearchContentDao;
  9 +import com.cnlive.database.dbUtil.DaoHelper;
  10 +
  11 +import java.util.ArrayList;
  12 +import java.util.Collections;
  13 +import java.util.List;
  14 +
  15 +
  16 +public class SearchContentAPI {
  17 +
  18 + public static boolean insertData(Context context, String history) {
  19 + SearchContentDao dao = DaoHelper.getInstance(context).getSearchContentDao();
  20 + CNLiveUserService service = (CNLiveUserService) ARouter.getInstance().navigation(CNLiveUserService.class);
  21 + String sid = service.getUid(context);
  22 + List<String> searchStrings = new ArrayList<>();
  23 + for (SearchContent item : loadData(context)) {
  24 + searchStrings.add(item.getContent());
  25 + }
  26 + SearchContent searchHistory = new SearchContent();
  27 + searchHistory.setContent(history);
  28 + searchHistory.setSid(sid);
  29 + if (!searchStrings.contains(history)) {
  30 + dao.insert(searchHistory);
  31 + return true;
  32 + } else {
  33 + dao.delete(dao.queryBuilder().where(SearchContentDao.Properties.Content.eq(history)).unique());
  34 + dao.insert(searchHistory);
  35 + }
  36 + return false;
  37 + }
  38 +
  39 +
  40 + public static List<SearchContent> loadData(Context context) {
  41 + CNLiveUserService service = (CNLiveUserService) ARouter.getInstance().navigation(CNLiveUserService.class);
  42 + String sid = service.getUid(context);
  43 + SearchContentDao dao = DaoHelper.getInstance(context).getSearchContentDao();
  44 + List<SearchContent> list = dao.queryBuilder().where(SearchContentDao.Properties.Sid.eq(sid)).list();
  45 + Collections.reverse(list);
  46 + return list;
  47 + }
  48 +
  49 +
  50 + public static void cleanData(Context context) {
  51 + SearchContentDao dao = DaoHelper.getInstance(context).getSearchContentDao();
  52 + dao.deleteAll();
  53 + }
  54 +}
core/database/src/main/java/com/cnlive/database/api/SearchHistoryAPI.java 0 → 100644
  1 +package com.cnlive.database.api;
  2 +
  3 +import android.content.Context;
  4 +
  5 +import com.alibaba.android.arouter.launcher.ARouter;
  6 +import com.cnlive.core.libs.base.arouter.user.CNLiveUserService;
  7 +import com.cnlive.database.bean.SearchHistory;
  8 +import com.cnlive.database.dao.SearchHistoryDao;
  9 +import com.cnlive.database.dbUtil.DaoHelper;
  10 +
  11 +import java.util.ArrayList;
  12 +import java.util.Collections;
  13 +import java.util.List;
  14 +
  15 +/**
  16 + * Created by cnlive201803 on 2018/5/30.
  17 + */
  18 +
  19 +public class SearchHistoryAPI {
  20 + /**
  21 + * 插入搜索历史
  22 + *
  23 + * @param context
  24 + * @param history
  25 + */
  26 + public static boolean insertData(Context context, String history) {
  27 + SearchHistoryDao dao = DaoHelper.getInstance(context).getSearchHistoryDao();
  28 + CNLiveUserService service = (CNLiveUserService) ARouter.getInstance().navigation(CNLiveUserService.class);
  29 + String sid = service.getUid(context);
  30 + List<String> searchStrings = new ArrayList<>();
  31 + for (SearchHistory item : loadData(context)) {
  32 + searchStrings.add(item.getHistory());
  33 + }
  34 + SearchHistory searchHistory = new SearchHistory();
  35 + searchHistory.setHistory(history);
  36 + searchHistory.setSid(sid);
  37 + if (!searchStrings.contains(history)) {
  38 + dao.insert(searchHistory);
  39 + return true;
  40 + } else {
  41 + dao.delete(dao.queryBuilder().where(SearchHistoryDao.Properties.History.eq(history)).unique());
  42 + dao.insert(searchHistory);
  43 + }
  44 + return false;
  45 + }
  46 +
  47 + /**
  48 + * 读取搜索历史
  49 + *
  50 + * @param context
  51 + * @return
  52 + */
  53 + public static List<SearchHistory> loadData(Context context) {
  54 + CNLiveUserService service = (CNLiveUserService) ARouter.getInstance().navigation(CNLiveUserService.class);
  55 + String sid = service.getUid(context);
  56 + SearchHistoryDao dao = DaoHelper.getInstance(context).getSearchHistoryDao();
  57 + List<SearchHistory> list = dao.queryBuilder().where(SearchHistoryDao.Properties.Sid.eq(sid)).list();
  58 + Collections.reverse(list);
  59 + return list;
  60 + }
  61 +
  62 + /**
  63 + * 情况搜索历史
  64 + *
  65 + * @param context
  66 + */
  67 + public static void cleanData(Context context) {
  68 + SearchHistoryDao dao = DaoHelper.getInstance(context).getSearchHistoryDao();
  69 + dao.deleteAll();
  70 + }
  71 +}
core/database/src/main/java/com/cnlive/database/bean/AudioPlayHistoricalRecord.java 0 → 100644
  1 +package com.cnlive.database.bean;
  2 +
  3 +import org.greenrobot.greendao.annotation.Entity;
  4 +import org.greenrobot.greendao.annotation.Generated;
  5 +import org.greenrobot.greendao.annotation.Id;
  6 +
  7 +// THIS CODE IS GENERATED BY greenDAO, EDIT ONLY INSIDE THE "KEEP"-SECTIONS
  8 +
  9 +// KEEP INCLUDES - put your custom includes here
  10 +// KEEP INCLUDES END
  11 +
  12 +/**
  13 + * Entity mapped to table "AUDIO_PLAY_HISTORICAL_RECORD".
  14 + */
  15 +@Entity
  16 +public class AudioPlayHistoricalRecord {
  17 +
  18 + @Id
  19 + private long contentId;
  20 + private String activeId;
  21 + private String aid;
  22 + private Long time;
  23 +
  24 + // KEEP FIELDS - put your custom fields here
  25 + // KEEP FIELDS END
  26 +
  27 + @Generated(hash = 40652824)
  28 + public AudioPlayHistoricalRecord() {
  29 + }
  30 +
  31 + public AudioPlayHistoricalRecord(long contentId) {
  32 + this.contentId = contentId;
  33 + }
  34 +
  35 + @Generated(hash = 2071813412)
  36 + public AudioPlayHistoricalRecord(long contentId, String activeId, String aid, Long time) {
  37 + this.contentId = contentId;
  38 + this.activeId = activeId;
  39 + this.aid = aid;
  40 + this.time = time;
  41 + }
  42 +
  43 + public long getContentId() {
  44 + return contentId;
  45 + }
  46 +
  47 + public void setContentId(long contentId) {
  48 + this.contentId = contentId;
  49 + }
  50 +
  51 + public String getActiveId() {
  52 + return activeId;
  53 + }
  54 +
  55 + public void setActiveId(String activeId) {
  56 + this.activeId = activeId;
  57 + }
  58 +
  59 + public String getAid() {
  60 + return aid;
  61 + }
  62 +
  63 + public void setAid(String aid) {
  64 + this.aid = aid;
  65 + }
  66 +
  67 + public Long getTime() {
  68 + return time;
  69 + }
  70 +
  71 + public void setTime(Long time) {
  72 + this.time = time;
  73 + }
  74 +
  75 + // KEEP METHODS - put your custom methods here
  76 + // KEEP METHODS END
  77 +
  78 +}
core/database/src/main/java/com/cnlive/database/bean/AudioPlayLastInfo.java 0 → 100644
  1 +package com.cnlive.database.bean;
  2 +
  3 +import org.greenrobot.greendao.annotation.Entity;
  4 +import org.greenrobot.greendao.annotation.Generated;
  5 +import org.greenrobot.greendao.annotation.Id;
  6 +import org.greenrobot.greendao.annotation.NotNull;
  7 +
  8 +// THIS CODE IS GENERATED BY greenDAO, EDIT ONLY INSIDE THE "KEEP"-SECTIONS
  9 +
  10 +// KEEP INCLUDES - put your custom includes here
  11 +// KEEP INCLUDES END
  12 +
  13 +/**
  14 + * Entity mapped to table "AUDIO_PLAY_LAST_INFO".
  15 + */
  16 +@Entity
  17 +public class AudioPlayLastInfo {
  18 +
  19 + @Id
  20 + @NotNull
  21 + private String sid;
  22 + private String activityId;
  23 + private String cmccId;
  24 + private String aid;
  25 + private String poster;
  26 + private String shareUrl;
  27 + private String contentId;
  28 + private String actor;
  29 + private String title;
  30 + private String channelName;
  31 + private String albumName;
  32 + private Double schedule;
  33 + private Integer counts;
  34 + private Boolean playState;
  35 + private String productId;
  36 + private String productType;
  37 + private String aProductId;
  38 + private String aProductType;
  39 + private Boolean isPayAlbum;
  40 + private Boolean isPayItem;
  41 + private String siteId;
  42 +
  43 + // KEEP FIELDS - put your custom fields here
  44 + // KEEP FIELDS END
  45 +
  46 + @Generated(hash = 1438086698)
  47 + public AudioPlayLastInfo() {
  48 + }
  49 +
  50 + public AudioPlayLastInfo(String sid) {
  51 + this.sid = sid;
  52 + }
  53 +
  54 + @Generated(hash = 927843729)
  55 + public AudioPlayLastInfo(@NotNull String sid, String activityId, String cmccId, String aid, String poster, String shareUrl, String contentId, String actor, String title, String channelName, String albumName, Double schedule, Integer counts, Boolean playState, String productId, String productType, String aProductId, String aProductType, Boolean isPayAlbum, Boolean isPayItem,
  56 + String siteId) {
  57 + this.sid = sid;
  58 + this.activityId = activityId;
  59 + this.cmccId = cmccId;
  60 + this.aid = aid;
  61 + this.poster = poster;
  62 + this.shareUrl = shareUrl;
  63 + this.contentId = contentId;
  64 + this.actor = actor;
  65 + this.title = title;
  66 + this.channelName = channelName;
  67 + this.albumName = albumName;
  68 + this.schedule = schedule;
  69 + this.counts = counts;
  70 + this.playState = playState;
  71 + this.productId = productId;
  72 + this.productType = productType;
  73 + this.aProductId = aProductId;
  74 + this.aProductType = aProductType;
  75 + this.isPayAlbum = isPayAlbum;
  76 + this.isPayItem = isPayItem;
  77 + this.siteId = siteId;
  78 + }
  79 +
  80 + @NotNull
  81 + public String getSid() {
  82 + return sid;
  83 + }
  84 +
  85 + /** Not-null value; ensure this value is available before it is saved to the database. */
  86 + public void setSid(@NotNull String sid) {
  87 + this.sid = sid;
  88 + }
  89 +
  90 + public String getActivityId() {
  91 + return activityId;
  92 + }
  93 +
  94 + public void setActivityId(String activityId) {
  95 + this.activityId = activityId;
  96 + }
  97 +
  98 + public String getCmccId() {
  99 + return cmccId;
  100 + }
  101 +
  102 + public void setCmccId(String cmccId) {
  103 + this.cmccId = cmccId;
  104 + }
  105 +
  106 + public String getAid() {
  107 + return aid;
  108 + }
  109 +
  110 + public void setAid(String aid) {
  111 + this.aid = aid;
  112 + }
  113 +
  114 + public String getPoster() {
  115 + return poster;
  116 + }
  117 +
  118 + public void setPoster(String poster) {
  119 + this.poster = poster;
  120 + }
  121 +
  122 + public String getShareUrl() {
  123 + return shareUrl;
  124 + }
  125 +
  126 + public void setShareUrl(String shareUrl) {
  127 + this.shareUrl = shareUrl;
  128 + }
  129 +
  130 + public String getContentId() {
  131 + return contentId;
  132 + }
  133 +
  134 + public void setContentId(String contentId) {
  135 + this.contentId = contentId;
  136 + }
  137 +
  138 + public String getActor() {
  139 + return actor;
  140 + }
  141 +
  142 + public void setActor(String actor) {
  143 + this.actor = actor;
  144 + }
  145 +
  146 + public String getTitle() {
  147 + return title;
  148 + }
  149 +
  150 + public void setTitle(String title) {
  151 + this.title = title;
  152 + }
  153 +
  154 + public String getChannelName() {
  155 + return channelName;
  156 + }
  157 +
  158 + public void setChannelName(String channelName) {
  159 + this.channelName = channelName;
  160 + }
  161 +
  162 + public String getAlbumName() {
  163 + return albumName;
  164 + }
  165 +
  166 + public void setAlbumName(String albumName) {
  167 + this.albumName = albumName;
  168 + }
  169 +
  170 + public Double getSchedule() {
  171 + return schedule;
  172 + }
  173 +
  174 + public void setSchedule(Double schedule) {
  175 + this.schedule = schedule;
  176 + }
  177 +
  178 + public Integer getCounts() {
  179 + return counts;
  180 + }
  181 +
  182 + public void setCounts(Integer counts) {
  183 + this.counts = counts;
  184 + }
  185 +
  186 + public Boolean getPlayState() {
  187 + return playState;
  188 + }
  189 +
  190 + public void setPlayState(Boolean playState) {
  191 + this.playState = playState;
  192 + }
  193 +
  194 + public String getProductId() {
  195 + return productId;
  196 + }
  197 +
  198 + public void setProductId(String productId) {
  199 + this.productId = productId;
  200 + }
  201 +
  202 + public String getProductType() {
  203 + return productType;
  204 + }
  205 +
  206 + public void setProductType(String productType) {
  207 + this.productType = productType;
  208 + }
  209 +
  210 + public String getAProductId() {
  211 + return aProductId;
  212 + }
  213 +
  214 + public void setAProductId(String aProductId) {
  215 + this.aProductId = aProductId;
  216 + }
  217 +
  218 + public String getAProductType() {
  219 + return aProductType;
  220 + }
  221 +
  222 + public void setAProductType(String aProductType) {
  223 + this.aProductType = aProductType;
  224 + }
  225 +
  226 + public Boolean getIsPayAlbum() {
  227 + return isPayAlbum;
  228 + }
  229 +
  230 + public void setIsPayAlbum(Boolean isPayAlbum) {
  231 + this.isPayAlbum = isPayAlbum;
  232 + }
  233 +
  234 + public Boolean getIsPayItem() {
  235 + return isPayItem;
  236 + }
  237 +
  238 + public void setIsPayItem(Boolean isPayItem) {
  239 + this.isPayItem = isPayItem;
  240 + }
  241 +
  242 + public String getSiteId() {
  243 + return siteId;
  244 + }
  245 +
  246 + public void setSiteId(String siteId) {
  247 + this.siteId = siteId;
  248 + }
  249 +
  250 + // KEEP METHODS - put your custom methods here
  251 + // KEEP METHODS END
  252 +
  253 +}
core/database/src/main/java/com/cnlive/database/bean/ChatFileMsg.java 0 → 100644
  1 +package com.cnlive.database.bean;
  2 +
  3 +import org.greenrobot.greendao.annotation.Entity;
  4 +import org.greenrobot.greendao.annotation.Generated;
  5 +import org.greenrobot.greendao.annotation.Id;
  6 +
  7 +// THIS CODE IS GENERATED BY greenDAO, EDIT ONLY INSIDE THE "KEEP"-SECTIONS
  8 +
  9 +// KEEP INCLUDES - put your custom includes here
  10 +// KEEP INCLUDES END
  11 +
  12 +/**
  13 + * Entity mapped to table "CHAT_FILE_MSG".
  14 + */
  15 +@Entity
  16 +public class ChatFileMsg {
  17 +
  18 + @Id
  19 + private long msgUniqueId;
  20 + private String fromUserId;
  21 + private String fromUserNick;
  22 + private String filePath;
  23 + private String fileName;
  24 + private Long fileSize;
  25 + private Long msgTime;
  26 +
  27 + // KEEP FIELDS - put your custom fields here
  28 + // KEEP FIELDS END
  29 +
  30 + @Generated(hash = 948317961)
  31 + public ChatFileMsg() {
  32 + }
  33 +
  34 + public ChatFileMsg(long msgUniqueId) {
  35 + this.msgUniqueId = msgUniqueId;
  36 + }
  37 +
  38 + @Generated(hash = 623510594)
  39 + public ChatFileMsg(long msgUniqueId, String fromUserId, String fromUserNick, String filePath, String fileName, Long fileSize, Long msgTime) {
  40 + this.msgUniqueId = msgUniqueId;
  41 + this.fromUserId = fromUserId;
  42 + this.fromUserNick = fromUserNick;
  43 + this.filePath = filePath;
  44 + this.fileName = fileName;
  45 + this.fileSize = fileSize;
  46 + this.msgTime = msgTime;
  47 + }
  48 +
  49 + public long getMsgUniqueId() {
  50 + return msgUniqueId;
  51 + }
  52 +
  53 + public void setMsgUniqueId(long msgUniqueId) {
  54 + this.msgUniqueId = msgUniqueId;
  55 + }
  56 +
  57 + public String getFromUserId() {
  58 + return fromUserId;
  59 + }
  60 +
  61 + public void setFromUserId(String fromUserId) {
  62 + this.fromUserId = fromUserId;
  63 + }
  64 +
  65 + public String getFromUserNick() {
  66 + return fromUserNick;
  67 + }
  68 +
  69 + public void setFromUserNick(String fromUserNick) {
  70 + this.fromUserNick = fromUserNick;
  71 + }
  72 +
  73 + public String getFilePath() {
  74 + return filePath;
  75 + }
  76 +
  77 + public void setFilePath(String filePath) {
  78 + this.filePath = filePath;
  79 + }
  80 +
  81 + public String getFileName() {
  82 + return fileName;
  83 + }
  84 +
  85 + public void setFileName(String fileName) {
  86 + this.fileName = fileName;
  87 + }
  88 +
  89 + public Long getFileSize() {
  90 + return fileSize;
  91 + }
  92 +
  93 + public void setFileSize(Long fileSize) {
  94 + this.fileSize = fileSize;
  95 + }
  96 +
  97 + public Long getMsgTime() {
  98 + return msgTime;
  99 + }
  100 +
  101 + public void setMsgTime(Long msgTime) {
  102 + this.msgTime = msgTime;
  103 + }
  104 +
  105 + // KEEP METHODS - put your custom methods here
  106 + // KEEP METHODS END
  107 +
  108 +}
core/database/src/main/java/com/cnlive/database/bean/ChatImageAndVideoMsg.java 0 → 100644
  1 +package com.cnlive.database.bean;
  2 +
  3 +import org.greenrobot.greendao.annotation.Entity;
  4 +import org.greenrobot.greendao.annotation.Generated;
  5 +import org.greenrobot.greendao.annotation.Id;
  6 +import org.greenrobot.greendao.annotation.NotNull;
  7 +
  8 +// THIS CODE IS GENERATED BY greenDAO, EDIT ONLY INSIDE THE "KEEP"-SECTIONS
  9 +
  10 +// KEEP INCLUDES - put your custom includes here
  11 +// KEEP INCLUDES END
  12 +
  13 +/**
  14 + * Entity mapped to table "CHAT_IMAGE_AND_VIDEO_MSG".
  15 + */
  16 +@Entity
  17 +public class ChatImageAndVideoMsg {
  18 +
  19 + @NotNull
  20 + private String sid;
  21 + private String conversationType;
  22 +
  23 + @NotNull
  24 + private String targetId;
  25 + private String sendState;
  26 + private Long sendTime;
  27 +
  28 + @Id
  29 + @NotNull
  30 + private String msgUniqueId;
  31 + private String messageLocator;
  32 + private String msgType;
  33 + private Long serverTime;
  34 + private Boolean isNewMessage;
  35 +
  36 + // KEEP FIELDS - put your custom fields here
  37 + // KEEP FIELDS END
  38 +
  39 + @Generated(hash = 1744419488)
  40 + public ChatImageAndVideoMsg() {
  41 + }
  42 +
  43 + public ChatImageAndVideoMsg(String msgUniqueId) {
  44 + this.msgUniqueId = msgUniqueId;
  45 + }
  46 +
  47 + @Generated(hash = 1571121271)
  48 + public ChatImageAndVideoMsg(@NotNull String sid, String conversationType, @NotNull String targetId, String sendState, Long sendTime, @NotNull String msgUniqueId, String messageLocator, String msgType, Long serverTime,
  49 + Boolean isNewMessage) {
  50 + this.sid = sid;
  51 + this.conversationType = conversationType;
  52 + this.targetId = targetId;
  53 + this.sendState = sendState;
  54 + this.sendTime = sendTime;
  55 + this.msgUniqueId = msgUniqueId;
  56 + this.messageLocator = messageLocator;
  57 + this.msgType = msgType;
  58 + this.serverTime = serverTime;
  59 + this.isNewMessage = isNewMessage;
  60 + }
  61 +
  62 + @NotNull
  63 + public String getSid() {
  64 + return sid;
  65 + }
  66 +
  67 + /** Not-null value; ensure this value is available before it is saved to the database. */
  68 + public void setSid(@NotNull String sid) {
  69 + this.sid = sid;
  70 + }
  71 +
  72 + public String getConversationType() {
  73 + return conversationType;
  74 + }
  75 +
  76 + public void setConversationType(String conversationType) {
  77 + this.conversationType = conversationType;
  78 + }
  79 +
  80 + @NotNull
  81 + public String getTargetId() {
  82 + return targetId;
  83 + }
  84 +
  85 + /** Not-null value; ensure this value is available before it is saved to the database. */
  86 + public void setTargetId(@NotNull String targetId) {
  87 + this.targetId = targetId;
  88 + }
  89 +
  90 + public String getSendState() {
  91 + return sendState;
  92 + }
  93 +
  94 + public void setSendState(String sendState) {
  95 + this.sendState = sendState;
  96 + }
  97 +
  98 + public Long getSendTime() {
  99 + return sendTime;
  100 + }
  101 +
  102 + public void setSendTime(Long sendTime) {
  103 + this.sendTime = sendTime;
  104 + }
  105 +
  106 + @NotNull
  107 + public String getMsgUniqueId() {
  108 + return msgUniqueId;
  109 + }
  110 +
  111 + /** Not-null value; ensure this value is available before it is saved to the database. */
  112 + public void setMsgUniqueId(@NotNull String msgUniqueId) {
  113 + this.msgUniqueId = msgUniqueId;
  114 + }
  115 +
  116 + public String getMessageLocator() {
  117 + return messageLocator;
  118 + }
  119 +
  120 + public void setMessageLocator(String messageLocator) {
  121 + this.messageLocator = messageLocator;
  122 + }
  123 +
  124 + public String getMsgType() {
  125 + return msgType;
  126 + }
  127 +
  128 + public void setMsgType(String msgType) {
  129 + this.msgType = msgType;
  130 + }
  131 +
  132 + public Long getServerTime() {
  133 + return serverTime;
  134 + }
  135 +
  136 + public void setServerTime(Long serverTime) {
  137 + this.serverTime = serverTime;
  138 + }
  139 +
  140 + public Boolean getIsNewMessage() {
  141 + return isNewMessage;
  142 + }
  143 +
  144 + public void setIsNewMessage(Boolean isNewMessage) {
  145 + this.isNewMessage = isNewMessage;
  146 + }
  147 +
  148 + // KEEP METHODS - put your custom methods here
  149 + // KEEP METHODS END
  150 +
  151 +}
core/database/src/main/java/com/cnlive/database/bean/ChatMedia.java 0 → 100644
  1 +package com.cnlive.database.bean;
  2 +
  3 +import org.greenrobot.greendao.annotation.Entity;
  4 +import org.greenrobot.greendao.annotation.Generated;
  5 +import org.greenrobot.greendao.annotation.Id;
  6 +import org.greenrobot.greendao.annotation.NotNull;
  7 +
  8 +// THIS CODE IS GENERATED BY greenDAO, EDIT ONLY INSIDE THE "KEEP"-SECTIONS
  9 +
  10 +// KEEP INCLUDES - put your custom includes here
  11 +// KEEP INCLUDES END
  12 +
  13 +/**
  14 + * Entity mapped to table "CHAT_MEDIA".
  15 + */
  16 +@Entity
  17 +public class ChatMedia {
  18 +
  19 + @Id
  20 + @NotNull
  21 + private String cachePath;
  22 + private String conversationId;
  23 + private String mediaType;
  24 + private String thumbPath;
  25 + private String videoDur;
  26 + private Long cacheTime;
  27 +
  28 + // KEEP FIELDS - put your custom fields here
  29 + // KEEP FIELDS END
  30 +
  31 + @Generated(hash = 1634186503)
  32 + public ChatMedia() {
  33 + }
  34 +
  35 + public ChatMedia(String cachePath) {
  36 + this.cachePath = cachePath;
  37 + }
  38 +
  39 + @Generated(hash = 868735363)
  40 + public ChatMedia(@NotNull String cachePath, String conversationId, String mediaType, String thumbPath, String videoDur,
  41 + Long cacheTime) {
  42 + this.cachePath = cachePath;
  43 + this.conversationId = conversationId;
  44 + this.mediaType = mediaType;
  45 + this.thumbPath = thumbPath;
  46 + this.videoDur = videoDur;
  47 + this.cacheTime = cacheTime;
  48 + }
  49 +
  50 + @NotNull
  51 + public String getCachePath() {
  52 + return cachePath;
  53 + }
  54 +
  55 + /** Not-null value; ensure this value is available before it is saved to the database. */
  56 + public void setCachePath(@NotNull String cachePath) {
  57 + this.cachePath = cachePath;
  58 + }
  59 +
  60 + public String getConversationId() {
  61 + return conversationId;
  62 + }
  63 +
  64 + public void setConversationId(String conversationId) {
  65 + this.conversationId = conversationId;
  66 + }
  67 +
  68 + public String getMediaType() {
  69 + return mediaType;
  70 + }
  71 +
  72 + public void setMediaType(String mediaType) {
  73 + this.mediaType = mediaType;
  74 + }
  75 +
  76 + public String getThumbPath() {
  77 + return thumbPath;
  78 + }
  79 +
  80 + public void setThumbPath(String thumbPath) {
  81 + this.thumbPath = thumbPath;
  82 + }
  83 +
  84 + public String getVideoDur() {
  85 + return videoDur;
  86 + }
  87 +
  88 + public void setVideoDur(String videoDur) {
  89 + this.videoDur = videoDur;
  90 + }
  91 +
  92 + public Long getCacheTime() {
  93 + return cacheTime;
  94 + }
  95 +
  96 + public void setCacheTime(Long cacheTime) {
  97 + this.cacheTime = cacheTime;
  98 + }
  99 +
  100 + // KEEP METHODS - put your custom methods here
  101 + // KEEP METHODS END
  102 +
  103 +}
core/database/src/main/java/com/cnlive/database/bean/ContactList.java 0 → 100644
  1 +package com.cnlive.database.bean;
  2 +
  3 +import org.greenrobot.greendao.annotation.Entity;
  4 +import org.greenrobot.greendao.annotation.Generated;
  5 +import org.greenrobot.greendao.annotation.Id;
  6 +import org.greenrobot.greendao.annotation.NotNull;
  7 +
  8 +// THIS CODE IS GENERATED BY greenDAO, EDIT ONLY INSIDE THE "KEEP"-SECTIONS
  9 +
  10 +// KEEP INCLUDES - put your custom includes here
  11 +// KEEP INCLUDES END
  12 +
  13 +/**
  14 + * Entity mapped to table "CONTACT_LIST".
  15 + */
  16 +@Entity
  17 +public class ContactList {
  18 +
  19 + @Id
  20 + @NotNull
  21 + private String friendId;
  22 + private String friendFaceUrl;
  23 + private String friendNickName;
  24 + private String friendRemark;
  25 + private String friendCustomInfoJson;
  26 +
  27 + // KEEP FIELDS - put your custom fields here
  28 + // KEEP FIELDS END
  29 +
  30 + @Generated(hash = 218058078)
  31 + public ContactList() {
  32 + }
  33 +
  34 + public ContactList(String friendId) {
  35 + this.friendId = friendId;
  36 + }
  37 +
  38 + @Generated(hash = 998692329)
  39 + public ContactList(@NotNull String friendId, String friendFaceUrl, String friendNickName, String friendRemark,
  40 + String friendCustomInfoJson) {
  41 + this.friendId = friendId;
  42 + this.friendFaceUrl = friendFaceUrl;
  43 + this.friendNickName = friendNickName;
  44 + this.friendRemark = friendRemark;
  45 + this.friendCustomInfoJson = friendCustomInfoJson;
  46 + }
  47 +
  48 + @NotNull
  49 + public String getFriendId() {
  50 + return friendId;
  51 + }
  52 +
  53 + /** Not-null value; ensure this value is available before it is saved to the database. */
  54 + public void setFriendId(@NotNull String friendId) {
  55 + this.friendId = friendId;
  56 + }
  57 +
  58 + public String getFriendFaceUrl() {
  59 + return friendFaceUrl;
  60 + }
  61 +
  62 + public void setFriendFaceUrl(String friendFaceUrl) {
  63 + this.friendFaceUrl = friendFaceUrl;
  64 + }
  65 +
  66 + public String getFriendNickName() {
  67 + return friendNickName;
  68 + }
  69 +
  70 + public void setFriendNickName(String friendNickName) {
  71 + this.friendNickName = friendNickName;
  72 + }
  73 +
  74 + public String getFriendRemark() {
  75 + return friendRemark;
  76 + }
  77 +
  78 + public void setFriendRemark(String friendRemark) {
  79 + this.friendRemark = friendRemark;
  80 + }
  81 +
  82 + public String getFriendCustomInfoJson() {
  83 + return friendCustomInfoJson;
  84 + }
  85 +
  86 + public void setFriendCustomInfoJson(String friendCustomInfoJson) {
  87 + this.friendCustomInfoJson = friendCustomInfoJson;
  88 + }
  89 +
  90 + // KEEP METHODS - put your custom methods here
  91 + // KEEP METHODS END
  92 +
  93 +}
core/database/src/main/java/com/cnlive/database/bean/ContanctDaRenEntity.java 0 → 100644
  1 +package com.cnlive.database.bean;
  2 +
  3 +import org.greenrobot.greendao.annotation.Entity;
  4 +import org.greenrobot.greendao.annotation.Generated;
  5 +import org.greenrobot.greendao.annotation.Id;
  6 +
  7 +// THIS CODE IS GENERATED BY greenDAO, EDIT ONLY INSIDE THE "KEEP"-SECTIONS
  8 +
  9 +// KEEP INCLUDES - put your custom includes here
  10 +// KEEP INCLUDES END
  11 +
  12 +/**
  13 + * Entity mapped to table "CONTANCT_DA_REN_ENTITY".
  14 + */
  15 +@Entity
  16 +public class ContanctDaRenEntity {
  17 +
  18 + @Id
  19 + private String uid;
  20 + private String cacheData;
  21 +
  22 + // KEEP FIELDS - put your custom fields here
  23 + // KEEP FIELDS END
  24 +
  25 + @Generated(hash = 1669209659)
  26 + public ContanctDaRenEntity() {
  27 + }
  28 +
  29 + public ContanctDaRenEntity(String uid) {
  30 + this.uid = uid;
  31 + }
  32 +
  33 + @Generated(hash = 2054202587)
  34 + public ContanctDaRenEntity(String uid, String cacheData) {
  35 + this.uid = uid;
  36 + this.cacheData = cacheData;
  37 + }
  38 +
  39 + public String getUid() {
  40 + return uid;
  41 + }
  42 +
  43 + public void setUid(String uid) {
  44 + this.uid = uid;
  45 + }
  46 +
  47 + public String getCacheData() {
  48 + return cacheData;
  49 + }
  50 +
  51 + public void setCacheData(String cacheData) {
  52 + this.cacheData = cacheData;
  53 + }
  54 +
  55 + // KEEP METHODS - put your custom methods here
  56 + // KEEP METHODS END
  57 +
  58 +}
core/database/src/main/java/com/cnlive/database/bean/ContanctGroupChatEntity.java 0 → 100644
  1 +package com.cnlive.database.bean;
  2 +
  3 +import org.greenrobot.greendao.annotation.Entity;
  4 +import org.greenrobot.greendao.annotation.Generated;
  5 +import org.greenrobot.greendao.annotation.Id;
  6 +
  7 +// THIS CODE IS GENERATED BY greenDAO, EDIT ONLY INSIDE THE "KEEP"-SECTIONS
  8 +
  9 +// KEEP INCLUDES - put your custom includes here
  10 +// KEEP INCLUDES END
  11 +
  12 +/**
  13 + * Entity mapped to table "CONTANCT_GROUP_CHAT_ENTITY".
  14 + */
  15 +@Entity
  16 +public class ContanctGroupChatEntity {
  17 +
  18 + @Id
  19 + private String uid;
  20 + private String cacheGroupListData;
  21 + private String cacheRequestNetData;
  22 +
  23 + // KEEP FIELDS - put your custom fields here
  24 + // KEEP FIELDS END
  25 +
  26 + @Generated(hash = 1958547765)
  27 + public ContanctGroupChatEntity() {
  28 + }
  29 +
  30 + public ContanctGroupChatEntity(String uid) {
  31 + this.uid = uid;
  32 + }
  33 +
  34 + @Generated(hash = 823251597)
  35 + public ContanctGroupChatEntity(String uid, String cacheGroupListData, String cacheRequestNetData) {
  36 + this.uid = uid;
  37 + this.cacheGroupListData = cacheGroupListData;
  38 + this.cacheRequestNetData = cacheRequestNetData;
  39 + }
  40 +
  41 + public String getUid() {
  42 + return uid;
  43 + }
  44 +
  45 + public void setUid(String uid) {
  46 + this.uid = uid;
  47 + }
  48 +
  49 + public String getCacheGroupListData() {
  50 + return cacheGroupListData;
  51 + }
  52 +
  53 + public void setCacheGroupListData(String cacheGroupListData) {
  54 + this.cacheGroupListData = cacheGroupListData;
  55 + }
  56 +
  57 + public String getCacheRequestNetData() {
  58 + return cacheRequestNetData;
  59 + }
  60 +
  61 + public void setCacheRequestNetData(String cacheRequestNetData) {
  62 + this.cacheRequestNetData = cacheRequestNetData;
  63 + }
  64 +
  65 + // KEEP METHODS - put your custom methods here
  66 + // KEEP METHODS END
  67 +
  68 +}
core/database/src/main/java/com/cnlive/database/bean/DBFriendCircleMessage.java 0 → 100644
  1 +package com.cnlive.database.bean;
  2 +
  3 +import org.greenrobot.greendao.annotation.Entity;
  4 +import org.greenrobot.greendao.annotation.Generated;
  5 +import org.greenrobot.greendao.annotation.Id;
  6 +import org.greenrobot.greendao.annotation.NotNull;
  7 +
  8 +// THIS CODE IS GENERATED BY greenDAO, EDIT ONLY INSIDE THE "KEEP"-SECTIONS
  9 +
  10 +// KEEP INCLUDES - put your custom includes here
  11 +// KEEP INCLUDES END
  12 +
  13 +/**
  14 + * Entity mapped to table "DBFRIEND_CIRCLE_MESSAGE".
  15 + */
  16 +@Entity
  17 +public class DBFriendCircleMessage {
  18 +
  19 + @Id
  20 + @NotNull
  21 + private String time;
  22 + private String sid;
  23 + private String momentId;
  24 + private String userIcon;
  25 + private String userName;
  26 + private String message;
  27 + private String contentImage;
  28 + private String contentType;
  29 + private String contentTitle;
  30 +
  31 + // KEEP FIELDS - put your custom fields here
  32 + // KEEP FIELDS END
  33 +
  34 + @Generated(hash = 1504929696)
  35 + public DBFriendCircleMessage() {
  36 + }
  37 +
  38 + public DBFriendCircleMessage(String time) {
  39 + this.time = time;
  40 + }
  41 +
  42 + @Generated(hash = 64828352)
  43 + public DBFriendCircleMessage(@NotNull String time, String sid, String momentId, String userIcon, String userName, String message, String contentImage, String contentType,
  44 + String contentTitle) {
  45 + this.time = time;
  46 + this.sid = sid;
  47 + this.momentId = momentId;
  48 + this.userIcon = userIcon;
  49 + this.userName = userName;
  50 + this.message = message;
  51 + this.contentImage = contentImage;
  52 + this.contentType = contentType;
  53 + this.contentTitle = contentTitle;
  54 + }
  55 +
  56 + @NotNull
  57 + public String getTime() {
  58 + return time;
  59 + }
  60 +
  61 + /** Not-null value; ensure this value is available before it is saved to the database. */
  62 + public void setTime(@NotNull String time) {
  63 + this.time = time;
  64 + }
  65 +
  66 + public String getSid() {
  67 + return sid;
  68 + }
  69 +
  70 + public void setSid(String sid) {
  71 + this.sid = sid;
  72 + }
  73 +
  74 + public String getMomentId() {
  75 + return momentId;
  76 + }
  77 +
  78 + public void setMomentId(String momentId) {
  79 + this.momentId = momentId;
  80 + }
  81 +
  82 + public String getUserIcon() {
  83 + return userIcon;
  84 + }
  85 +
  86 + public void setUserIcon(String userIcon) {
  87 + this.userIcon = userIcon;
  88 + }
  89 +
  90 + public String getUserName() {
  91 + return userName;
  92 + }
  93 +
  94 + public void setUserName(String userName) {
  95 + this.userName = userName;
  96 + }
  97 +
  98 + public String getMessage() {
  99 + return message;
  100 + }
  101 +
  102 + public void setMessage(String message) {
  103 + this.message = message;
  104 + }
  105 +
  106 + public String getContentImage() {
  107 + return contentImage;
  108 + }
  109 +
  110 + public void setContentImage(String contentImage) {
  111 + this.contentImage = contentImage;
  112 + }
  113 +
  114 + public String getContentType() {
  115 + return contentType;
  116 + }
  117 +
  118 + public void setContentType(String contentType) {
  119 + this.contentType = contentType;
  120 + }
  121 +
  122 + public String getContentTitle() {
  123 + return contentTitle;
  124 + }
  125 +
  126 + public void setContentTitle(String contentTitle) {
  127 + this.contentTitle = contentTitle;
  128 + }
  129 +
  130 + // KEEP METHODS - put your custom methods here
  131 + // KEEP METHODS END
  132 +
  133 +}
core/database/src/main/java/com/cnlive/database/bean/DBMomentDetail.java 0 → 100644
  1 +package com.cnlive.database.bean;
  2 +
  3 +
  4 +import com.cnlive.database.dao.DaoSession;
  5 +
  6 +import org.greenrobot.greendao.DaoException;
  7 +import org.greenrobot.greendao.annotation.Entity;
  8 +import org.greenrobot.greendao.annotation.Generated;
  9 +import org.greenrobot.greendao.annotation.Id;
  10 +import org.greenrobot.greendao.annotation.JoinProperty;
  11 +import org.greenrobot.greendao.annotation.NotNull;
  12 +import org.greenrobot.greendao.annotation.ToMany;
  13 +
  14 +import java.util.List;
  15 +import com.cnlive.database.dao.DBMomentItemDao;
  16 +import com.cnlive.database.dao.DBMomentDetailDao;
  17 +
  18 +// THIS CODE IS GENERATED BY greenDAO, EDIT ONLY INSIDE THE "KEEP"-SECTIONS
  19 +
  20 +// KEEP INCLUDES - put your custom includes here
  21 +// KEEP INCLUDES END
  22 +
  23 +/**
  24 + * Entity mapped to table "DBMOMENT_DETAIL".
  25 + */
  26 +@Entity(active = true)
  27 +public class DBMomentDetail {
  28 +
  29 + @Id
  30 + private String sid;
  31 + private int type;
  32 +
  33 + @NotNull
  34 + private String userIcon;
  35 +
  36 + @NotNull
  37 + private String userName;
  38 +
  39 + @NotNull
  40 + private String signature;
  41 +
  42 + /** Used to resolve relations */
  43 + @Generated(hash = 2040040024)
  44 + private transient DaoSession daoSession;
  45 + /** Used for active entity operations. */
  46 + @Generated(hash = 1017905756)
  47 + private transient DBMomentDetailDao myDao;
  48 + @ToMany(joinProperties = {
  49 + @JoinProperty(name = "sid", referencedName = "sid")
  50 + })
  51 + private List<DBMomentItem> momentItems;
  52 +
  53 + // KEEP FIELDS - put your custom fields here
  54 + // KEEP FIELDS END
  55 +
  56 + @Generated(hash = 1385898938)
  57 + public DBMomentDetail() {
  58 + }
  59 +
  60 + public DBMomentDetail(String sid) {
  61 + this.sid = sid;
  62 + }
  63 +
  64 + @Generated(hash = 1620964741)
  65 + public DBMomentDetail(String sid, int type, @NotNull String userIcon, @NotNull String userName, @NotNull String signature) {
  66 + this.sid = sid;
  67 + this.type = type;
  68 + this.userIcon = userIcon;
  69 + this.userName = userName;
  70 + this.signature = signature;
  71 + }
  72 +
  73 + /** called by internal mechanisms, do not call yourself. */
  74 + @Generated(hash = 1813724927)
  75 + public void __setDaoSession(DaoSession daoSession) {
  76 + this.daoSession = daoSession;
  77 + myDao = daoSession != null ? daoSession.getDBMomentDetailDao() : null;
  78 + }
  79 +
  80 + public String getSid() {
  81 + return sid;
  82 + }
  83 +
  84 + public void setSid(String sid) {
  85 + this.sid = sid;
  86 + }
  87 +
  88 + public int getType() {
  89 + return type;
  90 + }
  91 +
  92 + public void setType(int type) {
  93 + this.type = type;
  94 + }
  95 +
  96 + @NotNull
  97 + public String getUserIcon() {
  98 + return userIcon;
  99 + }
  100 +
  101 + /** Not-null value; ensure this value is available before it is saved to the database. */
  102 + public void setUserIcon(@NotNull String userIcon) {
  103 + this.userIcon = userIcon;
  104 + }
  105 +
  106 + @NotNull
  107 + public String getUserName() {
  108 + return userName;
  109 + }
  110 +
  111 + /** Not-null value; ensure this value is available before it is saved to the database. */
  112 + public void setUserName(@NotNull String userName) {
  113 + this.userName = userName;
  114 + }
  115 +
  116 + @NotNull
  117 + public String getSignature() {
  118 + return signature;
  119 + }
  120 +
  121 + /** Not-null value; ensure this value is available before it is saved to the database. */
  122 + public void setSignature(@NotNull String signature) {
  123 + this.signature = signature;
  124 + }
  125 +
  126 + /**
  127 + * To-many relationship, resolved on first access (and after reset).
  128 + * Changes to to-many relations are not persisted, make changes to the target entity.
  129 + */
  130 + @Generated(hash = 842034949)
  131 + public List<DBMomentItem> getMomentItems() {
  132 + if (momentItems == null) {
  133 + final DaoSession daoSession = this.daoSession;
  134 + if (daoSession == null) {
  135 + throw new DaoException("Entity is detached from DAO context");
  136 + }
  137 + DBMomentItemDao targetDao = daoSession.getDBMomentItemDao();
  138 + List<DBMomentItem> momentItemsNew = targetDao._queryDBMomentDetail_MomentItems(sid);
  139 + synchronized (this) {
  140 + if (momentItems == null) {
  141 + momentItems = momentItemsNew;
  142 + }
  143 + }
  144 + }
  145 + return momentItems;
  146 + }
  147 +
  148 + /** Resets a to-many relationship, making the next get call to query for a fresh result. */
  149 + @Generated(hash = 2004767669)
  150 + public synchronized void resetMomentItems() {
  151 + momentItems = null;
  152 + }
  153 +
  154 + /**
  155 + * Convenient call for {@link org.greenrobot.greendao.AbstractDao#delete(Object)}.
  156 + * Entity must attached to an entity context.
  157 + */
  158 + @Generated(hash = 128553479)
  159 + public void delete() {
  160 + if (myDao == null) {
  161 + throw new DaoException("Entity is detached from DAO context");
  162 + }
  163 + myDao.delete(this);
  164 + }
  165 +
  166 + /**
  167 + * Convenient call for {@link org.greenrobot.greendao.AbstractDao#update(Object)}.
  168 + * Entity must attached to an entity context.
  169 + */
  170 + @Generated(hash = 713229351)
  171 + public void update() {
  172 + if (myDao == null) {
  173 + throw new DaoException("Entity is detached from DAO context");
  174 + }
  175 + myDao.update(this);
  176 + }
  177 +
  178 + /**
  179 + * Convenient call for {@link org.greenrobot.greendao.AbstractDao#refresh(Object)}.
  180 + * Entity must attached to an entity context.
  181 + */
  182 + @Generated(hash = 1942392019)
  183 + public void refresh() {
  184 + if (myDao == null) {
  185 + throw new DaoException("Entity is detached from DAO context");
  186 + }
  187 + myDao.refresh(this);
  188 + }
  189 +
  190 + // KEEP METHODS - put your custom methods here
  191 + // KEEP METHODS END
  192 +
  193 +}
core/database/src/main/java/com/cnlive/database/bean/DBMomentItem.java 0 → 100644
  1 +package com.cnlive.database.bean;
  2 +
  3 +
  4 +import com.cnlive.database.dao.DaoSession;
  5 +
  6 +import org.greenrobot.greendao.DaoException;
  7 +import org.greenrobot.greendao.annotation.Entity;
  8 +import org.greenrobot.greendao.annotation.Generated;
  9 +import org.greenrobot.greendao.annotation.Id;
  10 +import org.greenrobot.greendao.annotation.NotNull;
  11 +import org.greenrobot.greendao.annotation.ToOne;
  12 +import com.cnlive.database.dao.DBMomentDetailDao;
  13 +import com.cnlive.database.dao.DBMomentItemDao;
  14 +
  15 +// THIS CODE IS GENERATED BY greenDAO, DO NOT EDIT. Enable "keep" sections if you want to edit.
  16 +
  17 +/**
  18 + * Entity mapped to table "DBMOMENT_ITEM".
  19 + */
  20 +@Entity(active = true)
  21 +public class DBMomentItem {
  22 +
  23 + @Id
  24 + private String id;
  25 + private String itemId;
  26 +
  27 + @NotNull
  28 + private String momentItemDetail;
  29 + private String sid;
  30 +
  31 + /** Used to resolve relations */
  32 + @Generated(hash = 2040040024)
  33 + private transient DaoSession daoSession;
  34 + /** Used for active entity operations. */
  35 + @Generated(hash = 1682324949)
  36 + private transient DBMomentItemDao myDao;
  37 + @ToOne(joinProperty = "sid")
  38 + private DBMomentDetail dBMomentDetail;
  39 +
  40 + @Generated(hash = 1023063607)
  41 + private transient String dBMomentDetail__resolvedKey;
  42 +
  43 + @Generated(hash = 1283454445)
  44 + public DBMomentItem() {
  45 + }
  46 +
  47 + public DBMomentItem(String id) {
  48 + this.id = id;
  49 + }
  50 +
  51 + @Generated(hash = 821818299)
  52 + public DBMomentItem(String id, String itemId, @NotNull String momentItemDetail, String sid) {
  53 + this.id = id;
  54 + this.itemId = itemId;
  55 + this.momentItemDetail = momentItemDetail;
  56 + this.sid = sid;
  57 + }
  58 +
  59 + /** called by internal mechanisms, do not call yourself. */
  60 + @Generated(hash = 1118667076)
  61 + public void __setDaoSession(DaoSession daoSession) {
  62 + this.daoSession = daoSession;
  63 + myDao = daoSession != null ? daoSession.getDBMomentItemDao() : null;
  64 + }
  65 +
  66 + public String getId() {
  67 + return id;
  68 + }
  69 +
  70 + public void setId(String id) {
  71 + this.id = id;
  72 + }
  73 +
  74 + public String getItemId() {
  75 + return itemId;
  76 + }
  77 +
  78 + public void setItemId(String itemId) {
  79 + this.itemId = itemId;
  80 + }
  81 +
  82 + @NotNull
  83 + public String getMomentItemDetail() {
  84 + return momentItemDetail;
  85 + }
  86 +
  87 + /** Not-null value; ensure this value is available before it is saved to the database. */
  88 + public void setMomentItemDetail(@NotNull String momentItemDetail) {
  89 + this.momentItemDetail = momentItemDetail;
  90 + }
  91 +
  92 + public String getSid() {
  93 + return sid;
  94 + }
  95 +
  96 + public void setSid(String sid) {
  97 + this.sid = sid;
  98 + }
  99 +
  100 + /** To-one relationship, resolved on first access. */
  101 + @Generated(hash = 159643884)
  102 + public DBMomentDetail getDBMomentDetail() {
  103 + String __key = this.sid;
  104 + if (dBMomentDetail__resolvedKey == null || dBMomentDetail__resolvedKey != __key) {
  105 + final DaoSession daoSession = this.daoSession;
  106 + if (daoSession == null) {
  107 + throw new DaoException("Entity is detached from DAO context");
  108 + }
  109 + DBMomentDetailDao targetDao = daoSession.getDBMomentDetailDao();
  110 + DBMomentDetail dBMomentDetailNew = targetDao.load(__key);
  111 + synchronized (this) {
  112 + dBMomentDetail = dBMomentDetailNew;
  113 + dBMomentDetail__resolvedKey = __key;
  114 + }
  115 + }
  116 + return dBMomentDetail;
  117 + }
  118 +
  119 + /** called by internal mechanisms, do not call yourself. */
  120 + @Generated(hash = 495632760)
  121 + public void setDBMomentDetail(DBMomentDetail dBMomentDetail) {
  122 + synchronized (this) {
  123 + this.dBMomentDetail = dBMomentDetail;
  124 + sid = dBMomentDetail == null ? null : dBMomentDetail.getSid();
  125 + dBMomentDetail__resolvedKey = sid;
  126 + }
  127 + }
  128 +
  129 + /**
  130 + * Convenient call for {@link org.greenrobot.greendao.AbstractDao#delete(Object)}.
  131 + * Entity must attached to an entity context.
  132 + */
  133 + @Generated(hash = 128553479)
  134 + public void delete() {
  135 + if (myDao == null) {
  136 + throw new DaoException("Entity is detached from DAO context");
  137 + }
  138 + myDao.delete(this);
  139 + }
  140 +
  141 + /**
  142 + * Convenient call for {@link org.greenrobot.greendao.AbstractDao#update(Object)}.
  143 + * Entity must attached to an entity context.
  144 + */
  145 + @Generated(hash = 713229351)
  146 + public void update() {
  147 + if (myDao == null) {
  148 + throw new DaoException("Entity is detached from DAO context");
  149 + }
  150 + myDao.update(this);
  151 + }
  152 +
  153 + /**
  154 + * Convenient call for {@link org.greenrobot.greendao.AbstractDao#refresh(Object)}.
  155 + * Entity must attached to an entity context.
  156 + */
  157 + @Generated(hash = 1942392019)
  158 + public void refresh() {
  159 + if (myDao == null) {
  160 + throw new DaoException("Entity is detached from DAO context");
  161 + }
  162 + myDao.refresh(this);
  163 + }
  164 +
  165 +}
core/database/src/main/java/com/cnlive/database/bean/DarenDetailMsg.java 0 → 100644
  1 +package com.cnlive.database.bean;
  2 +
  3 +import org.greenrobot.greendao.annotation.Entity;
  4 +import org.greenrobot.greendao.annotation.Generated;
  5 +import org.greenrobot.greendao.annotation.Id;
  6 +
  7 +// THIS CODE IS GENERATED BY greenDAO, EDIT ONLY INSIDE THE "KEEP"-SECTIONS
  8 +
  9 +// KEEP INCLUDES - put your custom includes here
  10 +// KEEP INCLUDES END
  11 +
  12 +/**
  13 + * Entity mapped to table "DAREN_DETAIL_MSG".
  14 + */
  15 +@Entity
  16 +public class DarenDetailMsg {
  17 +
  18 + @Id
  19 + private String darenId;
  20 + private String image;
  21 + private String custSign;
  22 + private String fansNum;
  23 + private Boolean fan;
  24 + private String sid;
  25 + private String address;
  26 + private String shopName;
  27 + private Float grade;
  28 + private Boolean online;
  29 + private String orderCount;
  30 + private String commentCount;
  31 + private String propagandas;
  32 + private String content;
  33 + private String category;
  34 +
  35 + // KEEP FIELDS - put your custom fields here
  36 + // KEEP FIELDS END
  37 +
  38 + @Generated(hash = 1523727014)
  39 + public DarenDetailMsg() {
  40 + }
  41 +
  42 + public DarenDetailMsg(String darenId) {
  43 + this.darenId = darenId;
  44 + }
  45 +
  46 + @Generated(hash = 708127880)
  47 + public DarenDetailMsg(String darenId, String image, String custSign, String fansNum, Boolean fan, String sid, String address, String shopName, Float grade, Boolean online, String orderCount, String commentCount, String propagandas, String content, String category) {
  48 + this.darenId = darenId;
  49 + this.image = image;
  50 + this.custSign = custSign;
  51 + this.fansNum = fansNum;
  52 + this.fan = fan;
  53 + this.sid = sid;
  54 + this.address = address;
  55 + this.shopName = shopName;
  56 + this.grade = grade;
  57 + this.online = online;
  58 + this.orderCount = orderCount;
  59 + this.commentCount = commentCount;
  60 + this.propagandas = propagandas;
  61 + this.content = content;
  62 + this.category = category;
  63 + }
  64 +
  65 + public String getDarenId() {
  66 + return darenId;
  67 + }
  68 +
  69 + public void setDarenId(String darenId) {
  70 + this.darenId = darenId;
  71 + }
  72 +
  73 + public String getImage() {
  74 + return image;
  75 + }
  76 +
  77 + public void setImage(String image) {
  78 + this.image = image;
  79 + }
  80 +
  81 + public String getCustSign() {
  82 + return custSign;
  83 + }
  84 +
  85 + public void setCustSign(String custSign) {
  86 + this.custSign = custSign;
  87 + }
  88 +
  89 + public String getFansNum() {
  90 + return fansNum;
  91 + }
  92 +
  93 + public void setFansNum(String fansNum) {
  94 + this.fansNum = fansNum;
  95 + }
  96 +
  97 + public Boolean getFan() {
  98 + return fan;
  99 + }
  100 +
  101 + public void setFan(Boolean fan) {
  102 + this.fan = fan;
  103 + }
  104 +
  105 + public String getSid() {
  106 + return sid;
  107 + }
  108 +
  109 + public void setSid(String sid) {
  110 + this.sid = sid;
  111 + }
  112 +
  113 + public String getAddress() {
  114 + return address;
  115 + }
  116 +
  117 + public void setAddress(String address) {
  118 + this.address = address;
  119 + }
  120 +
  121 + public String getShopName() {
  122 + return shopName;
  123 + }
  124 +
  125 + public void setShopName(String shopName) {
  126 + this.shopName = shopName;
  127 + }
  128 +
  129 + public Float getGrade() {
  130 + return grade;
  131 + }
  132 +
  133 + public void setGrade(Float grade) {
  134 + this.grade = grade;
  135 + }
  136 +
  137 + public Boolean getOnline() {
  138 + return online;
  139 + }
  140 +
  141 + public void setOnline(Boolean online) {
  142 + this.online = online;
  143 + }
  144 +
  145 + public String getOrderCount() {
  146 + return orderCount;
  147 + }
  148 +
  149 + public void setOrderCount(String orderCount) {
  150 + this.orderCount = orderCount;
  151 + }
  152 +
  153 + public String getCommentCount() {
  154 + return commentCount;
  155 + }
  156 +
  157 + public void setCommentCount(String commentCount) {
  158 + this.commentCount = commentCount;
  159 + }
  160 +
  161 + public String getPropagandas() {
  162 + return propagandas;
  163 + }
  164 +
  165 + public void setPropagandas(String propagandas) {
  166 + this.propagandas = propagandas;
  167 + }
  168 +
  169 + public String getContent() {
  170 + return content;
  171 + }
  172 +
  173 + public void setContent(String content) {
  174 + this.content = content;
  175 + }
  176 +
  177 + public String getCategory() {
  178 + return category;
  179 + }
  180 +
  181 + public void setCategory(String category) {
  182 + this.category = category;
  183 + }
  184 +
  185 + // KEEP METHODS - put your custom methods here
  186 + // KEEP METHODS END
  187 +
  188 +}
core/database/src/main/java/com/cnlive/database/bean/DarenListMsg.java 0 → 100644
  1 +package com.cnlive.database.bean;
  2 +
  3 +import org.greenrobot.greendao.annotation.Entity;
  4 +import org.greenrobot.greendao.annotation.Generated;
  5 +import org.greenrobot.greendao.annotation.Id;
  6 +import org.greenrobot.greendao.annotation.NotNull;
  7 +
  8 +// THIS CODE IS GENERATED BY greenDAO, EDIT ONLY INSIDE THE "KEEP"-SECTIONS
  9 +
  10 +// KEEP INCLUDES - put your custom includes here
  11 +// KEEP INCLUDES END
  12 +
  13 +/**
  14 + * Entity mapped to table "DAREN_LIST_MSG".
  15 + */
  16 +@Entity
  17 +public class DarenListMsg {
  18 +
  19 + @Id
  20 + @NotNull
  21 + private String sid;
  22 + private String darenList;
  23 +
  24 + // KEEP FIELDS - put your custom fields here
  25 + // KEEP FIELDS END
  26 +
  27 + @Generated(hash = 1764232799)
  28 + public DarenListMsg() {
  29 + }
  30 +
  31 + public DarenListMsg(String sid) {
  32 + this.sid = sid;
  33 + }
  34 +
  35 + @Generated(hash = 619713886)
  36 + public DarenListMsg(@NotNull String sid, String darenList) {
  37 + this.sid = sid;
  38 + this.darenList = darenList;
  39 + }
  40 +
  41 + @NotNull
  42 + public String getSid() {
  43 + return sid;
  44 + }
  45 +
  46 + /** Not-null value; ensure this value is available before it is saved to the database. */
  47 + public void setSid(@NotNull String sid) {
  48 + this.sid = sid;
  49 + }
  50 +
  51 + public String getDarenList() {
  52 + return darenList;
  53 + }
  54 +
  55 + public void setDarenList(String darenList) {
  56 + this.darenList = darenList;
  57 + }
  58 +
  59 + // KEEP METHODS - put your custom methods here
  60 + // KEEP METHODS END
  61 +
  62 +}
core/database/src/main/java/com/cnlive/database/bean/DownloadInfo.java 0 → 100644
  1 +package com.cnlive.database.bean;
  2 +
  3 +import org.greenrobot.greendao.annotation.Entity;
  4 +import org.greenrobot.greendao.annotation.Generated;
  5 +import org.greenrobot.greendao.annotation.Id;
  6 +import org.greenrobot.greendao.annotation.NotNull;
  7 +
  8 +
  9 +// THIS CODE IS GENERATED BY greenDAO, EDIT ONLY INSIDE THE "KEEP"-SECTIONS
  10 +
  11 +// KEEP INCLUDES - put your custom includes here
  12 +// KEEP INCLUDES END
  13 +
  14 +/**
  15 + * Entity mapped to table "DOWNLOAD_INFO".
  16 + */
  17 +@Entity
  18 +public class DownloadInfo{
  19 +
  20 + @Id
  21 + @NotNull
  22 + private String urlId;
  23 + private String url;
  24 + private String downloadStatus;
  25 + private String fileName;
  26 + private Long total;
  27 + private Long progress;
  28 + private String albumId;
  29 + private String contentId;
  30 + private String cmccId;
  31 + private String shareUrl;
  32 + private String albumImg;
  33 + private String actor;
  34 + private String albumName;
  35 + private Double schedule;
  36 + private String channelName;
  37 + private String fileSize;
  38 + private Integer counts;
  39 +
  40 + // KEEP FIELDS - put your custom fields here
  41 + // KEEP FIELDS END
  42 +
  43 + @Generated(hash = 327086747)
  44 + public DownloadInfo() {
  45 + }
  46 +
  47 + public DownloadInfo(String urlId) {
  48 + this.urlId = urlId;
  49 + }
  50 +
  51 + @Generated(hash = 986395589)
  52 + public DownloadInfo(@NotNull String urlId, String url, String downloadStatus, String fileName, Long total, Long progress, String albumId, String contentId, String cmccId, String shareUrl, String albumImg, String actor, String albumName, Double schedule, String channelName, String fileSize,
  53 + Integer counts) {
  54 + this.urlId = urlId;
  55 + this.url = url;
  56 + this.downloadStatus = downloadStatus;
  57 + this.fileName = fileName;
  58 + this.total = total;
  59 + this.progress = progress;
  60 + this.albumId = albumId;
  61 + this.contentId = contentId;
  62 + this.cmccId = cmccId;
  63 + this.shareUrl = shareUrl;
  64 + this.albumImg = albumImg;
  65 + this.actor = actor;
  66 + this.albumName = albumName;
  67 + this.schedule = schedule;
  68 + this.channelName = channelName;
  69 + this.fileSize = fileSize;
  70 + this.counts = counts;
  71 + }
  72 +
  73 + @NotNull
  74 + public String getUrlId() {
  75 + return urlId;
  76 + }
  77 +
  78 + /** Not-null value; ensure this value is available before it is saved to the database. */
  79 + public void setUrlId(@NotNull String urlId) {
  80 + this.urlId = urlId;
  81 + }
  82 +
  83 + public String getUrl() {
  84 + return url;
  85 + }
  86 +
  87 + public void setUrl(String url) {
  88 + this.url = url;
  89 + }
  90 +
  91 + public String getDownloadStatus() {
  92 + return downloadStatus;
  93 + }
  94 +
  95 + public void setDownloadStatus(String downloadStatus) {
  96 + this.downloadStatus = downloadStatus;
  97 + }
  98 +
  99 + public String getFileName() {
  100 + return fileName;
  101 + }
  102 +
  103 + public void setFileName(String fileName) {
  104 + this.fileName = fileName;
  105 + }
  106 +
  107 + public Long getTotal() {
  108 + return total;
  109 + }
  110 +
  111 + public void setTotal(Long total) {
  112 + this.total = total;
  113 + }
  114 +
  115 + public Long getProgress() {
  116 + return progress;
  117 + }
  118 +
  119 + public void setProgress(Long progress) {
  120 + this.progress = progress;
  121 + }
  122 +
  123 + public String getAlbumId() {
  124 + return albumId;
  125 + }
  126 +
  127 + public void setAlbumId(String albumId) {
  128 + this.albumId = albumId;
  129 + }
  130 +
  131 + public String getContentId() {
  132 + return contentId;
  133 + }
  134 +
  135 + public void setContentId(String contentId) {
  136 + this.contentId = contentId;
  137 + }
  138 +
  139 + public String getCmccId() {
  140 + return cmccId;
  141 + }
  142 +
  143 + public void setCmccId(String cmccId) {
  144 + this.cmccId = cmccId;
  145 + }
  146 +
  147 + public String getShareUrl() {
  148 + return shareUrl;
  149 + }
  150 +
  151 + public void setShareUrl(String shareUrl) {
  152 + this.shareUrl = shareUrl;
  153 + }
  154 +
  155 + public String getAlbumImg() {
  156 + return albumImg;
  157 + }
  158 +
  159 + public void setAlbumImg(String albumImg) {
  160 + this.albumImg = albumImg;
  161 + }
  162 +
  163 + public String getActor() {
  164 + return actor;
  165 + }
  166 +
  167 + public void setActor(String actor) {
  168 + this.actor = actor;
  169 + }
  170 +
  171 + public String getAlbumName() {
  172 + return albumName;
  173 + }
  174 +
  175 + public void setAlbumName(String albumName) {
  176 + this.albumName = albumName;
  177 + }
  178 +
  179 + public Double getSchedule() {
  180 + return schedule;
  181 + }
  182 +
  183 + public void setSchedule(Double schedule) {
  184 + this.schedule = schedule;
  185 + }
  186 +
  187 + public String getChannelName() {
  188 + return channelName;
  189 + }
  190 +
  191 + public void setChannelName(String channelName) {
  192 + this.channelName = channelName;
  193 + }
  194 +
  195 + public String getFileSize() {
  196 + return fileSize;
  197 + }
  198 +
  199 + public void setFileSize(String fileSize) {
  200 + this.fileSize = fileSize;
  201 + }
  202 +
  203 + public Integer getCounts() {
  204 + return counts;
  205 + }
  206 +
  207 + public void setCounts(Integer counts) {
  208 + this.counts = counts;
  209 + }
  210 +
  211 + // KEEP METHODS - put your custom methods here
  212 + // KEEP METHODS END
  213 +
  214 +}
core/database/src/main/java/com/cnlive/database/bean/DownloadNewInfo.java 0 → 100644
  1 +package com.cnlive.database.bean;
  2 +
  3 +import java.io.Serializable;
  4 +
  5 +/**
  6 + * created by hanyayun
  7 + * on 2020/1/2
  8 + */
  9 +public class DownloadNewInfo implements Serializable {
  10 +
  11 + private String urlId;
  12 + private String url;
  13 + private String downloadStatus;
  14 + private String fileName;
  15 + private Long total;
  16 + private Long progress;
  17 + private String albumId;
  18 + private String contentId;
  19 + private String cmccId;
  20 + private String shareUrl;
  21 + private String albumImg;
  22 + private String actor;
  23 + private String albumName;
  24 + private Double schedule;
  25 + private String channelName;
  26 + private String fileSize;
  27 + private Integer counts;
  28 +
  29 +
  30 + public DownloadNewInfo(String urlId, String url, String downloadStatus, String fileName, Long total, Long progress, String albumId, String contentId, String cmccId, String shareUrl, String albumImg, String actor, String albumName, Double schedule, String channelName, String fileSize, Integer counts) {
  31 + this.urlId = urlId;
  32 + this.url = url;
  33 + this.downloadStatus = downloadStatus;
  34 + this.fileName = fileName;
  35 + this.total = total;
  36 + this.progress = progress;
  37 + this.albumId = albumId;
  38 + this.contentId = contentId;
  39 + this.cmccId = cmccId;
  40 + this.shareUrl = shareUrl;
  41 + this.albumImg = albumImg;
  42 + this.actor = actor;
  43 + this.albumName = albumName;
  44 + this.schedule = schedule;
  45 + this.channelName = channelName;
  46 + this.fileSize = fileSize;
  47 + this.counts = counts;
  48 + }
  49 +
  50 + public String getUrlId() {
  51 + return urlId;
  52 + }
  53 +
  54 + /** Not-null value; ensure this value is available before it is saved to the database. */
  55 + public void setUrlId(String urlId) {
  56 + this.urlId = urlId;
  57 + }
  58 +
  59 + public String getUrl() {
  60 + return url;
  61 + }
  62 +
  63 + public void setUrl(String url) {
  64 + this.url = url;
  65 + }
  66 +
  67 + public String getDownloadStatus() {
  68 + return downloadStatus;
  69 + }
  70 +
  71 + public void setDownloadStatus(String downloadStatus) {
  72 + this.downloadStatus = downloadStatus;
  73 + }
  74 +
  75 + public String getFileName() {
  76 + return fileName;
  77 + }
  78 +
  79 + public void setFileName(String fileName) {
  80 + this.fileName = fileName;
  81 + }
  82 +
  83 + public Long getTotal() {
  84 + return total;
  85 + }
  86 +
  87 + public void setTotal(Long total) {
  88 + this.total = total;
  89 + }
  90 +
  91 + public Long getProgress() {
  92 + return progress;
  93 + }
  94 +
  95 + public void setProgress(Long progress) {
  96 + this.progress = progress;
  97 + }
  98 +
  99 + public String getAlbumId() {
  100 + return albumId;
  101 + }
  102 +
  103 + public void setAlbumId(String albumId) {
  104 + this.albumId = albumId;
  105 + }
  106 +
  107 + public String getContentId() {
  108 + return contentId;
  109 + }
  110 +
  111 + public void setContentId(String contentId) {
  112 + this.contentId = contentId;
  113 + }
  114 +
  115 + public String getCmccId() {
  116 + return cmccId;
  117 + }
  118 +
  119 + public void setCmccId(String cmccId) {
  120 + this.cmccId = cmccId;
  121 + }
  122 +
  123 + public String getShareUrl() {
  124 + return shareUrl;
  125 + }
  126 +
  127 + public void setShareUrl(String shareUrl) {
  128 + this.shareUrl = shareUrl;
  129 + }
  130 +
  131 + public String getAlbumImg() {
  132 + return albumImg;
  133 + }
  134 +
  135 + public void setAlbumImg(String albumImg) {
  136 + this.albumImg = albumImg;
  137 + }
  138 +
  139 + public String getActor() {
  140 + return actor;
  141 + }
  142 +
  143 + public void setActor(String actor) {
  144 + this.actor = actor;
  145 + }
  146 +
  147 + public String getAlbumName() {
  148 + return albumName;
  149 + }
  150 +
  151 + public void setAlbumName(String albumName) {
  152 + this.albumName = albumName;
  153 + }
  154 +
  155 + public Double getSchedule() {
  156 + return schedule;
  157 + }
  158 +
  159 + public void setSchedule(Double schedule) {
  160 + this.schedule = schedule;
  161 + }
  162 +
  163 + public String getChannelName() {
  164 + return channelName;
  165 + }
  166 +
  167 + public void setChannelName(String channelName) {
  168 + this.channelName = channelName;
  169 + }
  170 +
  171 + public String getFileSize() {
  172 + return fileSize;
  173 + }
  174 +
  175 + public void setFileSize(String fileSize) {
  176 + this.fileSize = fileSize;
  177 + }
  178 +
  179 + public Integer getCounts() {
  180 + return counts;
  181 + }
  182 +
  183 + public void setCounts(Integer counts) {
  184 + this.counts = counts;
  185 + }
  186 +
  187 + // KEEP METHODS - put your custom methods here
  188 + // KEEP METHODS END
  189 +
  190 +}
core/database/src/main/java/com/cnlive/database/bean/ExceptionInfo.java 0 → 100644
  1 +package com.cnlive.database.bean;
  2 +
  3 +import org.greenrobot.greendao.annotation.Entity;
  4 +import org.greenrobot.greendao.annotation.Generated;
  5 +import org.greenrobot.greendao.annotation.Id;
  6 +import org.greenrobot.greendao.annotation.NotNull;
  7 +
  8 +// THIS CODE IS GENERATED BY greenDAO, EDIT ONLY INSIDE THE "KEEP"-SECTIONS
  9 +
  10 +// KEEP INCLUDES - put your custom includes here
  11 +// KEEP INCLUDES END
  12 +
  13 +/**
  14 + * Entity mapped to table "EXCEPTION_INFO".
  15 + */
  16 +@Entity
  17 +public class ExceptionInfo {
  18 +
  19 + @Id(autoincrement = true)
  20 + private Long id;
  21 +
  22 + @NotNull
  23 + private String ErrorTag;
  24 +
  25 + @NotNull
  26 + private String ErrorMessage;
  27 +
  28 + // KEEP FIELDS - put your custom fields here
  29 + // KEEP FIELDS END
  30 +
  31 + @Generated(hash = 841014831)
  32 + public ExceptionInfo() {
  33 + }
  34 +
  35 + public ExceptionInfo(Long id) {
  36 + this.id = id;
  37 + }
  38 +
  39 + @Generated(hash = 1539241816)
  40 + public ExceptionInfo(Long id, @NotNull String ErrorTag, @NotNull String ErrorMessage) {
  41 + this.id = id;
  42 + this.ErrorTag = ErrorTag;
  43 + this.ErrorMessage = ErrorMessage;
  44 + }
  45 +
  46 + public Long getId() {
  47 + return id;
  48 + }
  49 +
  50 + public void setId(Long id) {
  51 + this.id = id;
  52 + }
  53 +
  54 + @NotNull
  55 + public String getErrorTag() {
  56 + return ErrorTag;
  57 + }
  58 +
  59 + /** Not-null value; ensure this value is available before it is saved to the database. */
  60 + public void setErrorTag(@NotNull String ErrorTag) {
  61 + this.ErrorTag = ErrorTag;
  62 + }
  63 +
  64 + @NotNull
  65 + public String getErrorMessage() {
  66 + return ErrorMessage;
  67 + }
  68 +
  69 + /** Not-null value; ensure this value is available before it is saved to the database. */
  70 + public void setErrorMessage(@NotNull String ErrorMessage) {
  71 + this.ErrorMessage = ErrorMessage;
  72 + }
  73 +
  74 + // KEEP METHODS - put your custom methods here
  75 + // KEEP METHODS END
  76 +
  77 +}
core/database/src/main/java/com/cnlive/database/bean/HolidayThemeInfo.java 0 → 100644
  1 +package com.cnlive.database.bean;
  2 +
  3 +import org.greenrobot.greendao.annotation.Entity;
  4 +import org.greenrobot.greendao.annotation.Generated;
  5 +import org.greenrobot.greendao.annotation.Id;
  6 +import org.greenrobot.greendao.annotation.NotNull;
  7 +
  8 +// THIS CODE IS GENERATED BY greenDAO, EDIT ONLY INSIDE THE "KEEP"-SECTIONS
  9 +
  10 +// KEEP INCLUDES - put your custom includes here
  11 +// KEEP INCLUDES END
  12 +
  13 +/**
  14 + * Entity mapped to table "HOLIDAY_THEME_INFO".
  15 + */
  16 +@Entity
  17 +public class HolidayThemeInfo {
  18 +
  19 + @Id
  20 + @NotNull
  21 + private String appid;
  22 + private String clickAfter;
  23 + private String clickBefore;
  24 + private String holidayThemeId;
  25 + private String imagePackage;
  26 + private String showSource;
  27 + private String isShow;
  28 + private Integer updateType;
  29 + private Boolean isDonwLoadSucess;
  30 + private String skinType;
  31 +
  32 + // KEEP FIELDS - put your custom fields here
  33 + // KEEP FIELDS END
  34 +
  35 + @Generated(hash = 646770330)
  36 + public HolidayThemeInfo() {
  37 + }
  38 +
  39 + public HolidayThemeInfo(String appid) {
  40 + this.appid = appid;
  41 + }
  42 +
  43 + @Generated(hash = 754843222)
  44 + public HolidayThemeInfo(@NotNull String appid, String clickAfter, String clickBefore, String holidayThemeId, String imagePackage, String showSource, String isShow, Integer updateType, Boolean isDonwLoadSucess,
  45 + String skinType) {
  46 + this.appid = appid;
  47 + this.clickAfter = clickAfter;
  48 + this.clickBefore = clickBefore;
  49 + this.holidayThemeId = holidayThemeId;
  50 + this.imagePackage = imagePackage;
  51 + this.showSource = showSource;
  52 + this.isShow = isShow;
  53 + this.updateType = updateType;
  54 + this.isDonwLoadSucess = isDonwLoadSucess;
  55 + this.skinType = skinType;
  56 + }
  57 +
  58 + @NotNull
  59 + public String getAppid() {
  60 + return appid;
  61 + }
  62 +
  63 + /** Not-null value; ensure this value is available before it is saved to the database. */
  64 + public void setAppid(@NotNull String appid) {
  65 + this.appid = appid;
  66 + }
  67 +
  68 + public String getClickAfter() {
  69 + return clickAfter;
  70 + }
  71 +
  72 + public void setClickAfter(String clickAfter) {
  73 + this.clickAfter = clickAfter;
  74 + }
  75 +
  76 + public String getClickBefore() {
  77 + return clickBefore;
  78 + }
  79 +
  80 + public void setClickBefore(String clickBefore) {
  81 + this.clickBefore = clickBefore;
  82 + }
  83 +
  84 + public String getHolidayThemeId() {
  85 + return holidayThemeId;
  86 + }
  87 +
  88 + public void setHolidayThemeId(String holidayThemeId) {
  89 + this.holidayThemeId = holidayThemeId;
  90 + }
  91 +
  92 + public String getImagePackage() {
  93 + return imagePackage;
  94 + }
  95 +
  96 + public void setImagePackage(String imagePackage) {
  97 + this.imagePackage = imagePackage;
  98 + }
  99 +
  100 + public String getShowSource() {
  101 + return showSource;
  102 + }
  103 +
  104 + public void setShowSource(String showSource) {
  105 + this.showSource = showSource;
  106 + }
  107 +
  108 + public String getIsShow() {
  109 + return isShow;
  110 + }
  111 +
  112 + public void setIsShow(String isShow) {
  113 + this.isShow = isShow;
  114 + }
  115 +
  116 + public Integer getUpdateType() {
  117 + return updateType;
  118 + }
  119 +
  120 + public void setUpdateType(Integer updateType) {
  121 + this.updateType = updateType;
  122 + }
  123 +
  124 + public Boolean getIsDonwLoadSucess() {
  125 + return isDonwLoadSucess;
  126 + }
  127 +
  128 + public void setIsDonwLoadSucess(Boolean isDonwLoadSucess) {
  129 + this.isDonwLoadSucess = isDonwLoadSucess;
  130 + }
  131 +
  132 + public String getSkinType() {
  133 + return skinType;
  134 + }
  135 +
  136 + public void setSkinType(String skinType) {
  137 + this.skinType = skinType;
  138 + }
  139 +
  140 + // KEEP METHODS - put your custom methods here
  141 + // KEEP METHODS END
  142 +
  143 +}
core/database/src/main/java/com/cnlive/database/bean/IMConversationInfo.java 0 → 100644
  1 +package com.cnlive.database.bean;
  2 +
  3 +import org.greenrobot.greendao.annotation.Entity;
  4 +import org.greenrobot.greendao.annotation.Generated;
  5 +import org.greenrobot.greendao.annotation.Id;
  6 +import org.greenrobot.greendao.annotation.NotNull;
  7 +
  8 +// THIS CODE IS GENERATED BY greenDAO, EDIT ONLY INSIDE THE "KEEP"-SECTIONS
  9 +
  10 +// KEEP INCLUDES - put your custom includes here
  11 +// KEEP INCLUDES END
  12 +
  13 +/**
  14 + * Entity mapped to table "IMCONVERSATION_INFO".
  15 + */
  16 +@Entity
  17 +public class IMConversationInfo {
  18 +
  19 + @Id
  20 + @NotNull
  21 + private String conversationId;
  22 + private String conversationType;
  23 + private String title;
  24 + private String des;
  25 + private String faceUrl;
  26 + private String conversationFaceUrl;
  27 + private Long timeStep;
  28 + private Long unreadCount;
  29 +
  30 + // KEEP FIELDS - put your custom fields here
  31 + // KEEP FIELDS END
  32 +
  33 + @Generated(hash = 1584740420)
  34 + public IMConversationInfo() {
  35 + }
  36 +
  37 + public IMConversationInfo(String conversationId) {
  38 + this.conversationId = conversationId;
  39 + }
  40 +
  41 + @Generated(hash = 972213813)
  42 + public IMConversationInfo(@NotNull String conversationId, String conversationType, String title, String des, String faceUrl, String conversationFaceUrl, Long timeStep,
  43 + Long unreadCount) {
  44 + this.conversationId = conversationId;
  45 + this.conversationType = conversationType;
  46 + this.title = title;
  47 + this.des = des;
  48 + this.faceUrl = faceUrl;
  49 + this.conversationFaceUrl = conversationFaceUrl;
  50 + this.timeStep = timeStep;
  51 + this.unreadCount = unreadCount;
  52 + }
  53 +
  54 + @NotNull
  55 + public String getConversationId() {
  56 + return conversationId;
  57 + }
  58 +
  59 + /** Not-null value; ensure this value is available before it is saved to the database. */
  60 + public void setConversationId(@NotNull String conversationId) {
  61 + this.conversationId = conversationId;
  62 + }
  63 +
  64 + public String getConversationType() {
  65 + return conversationType;
  66 + }
  67 +
  68 + public void setConversationType(String conversationType) {
  69 + this.conversationType = conversationType;
  70 + }
  71 +
  72 + public String getTitle() {
  73 + return title;
  74 + }
  75 +
  76 + public void setTitle(String title) {
  77 + this.title = title;
  78 + }
  79 +
  80 + public String getDes() {
  81 + return des;
  82 + }
  83 +
  84 + public void setDes(String des) {
  85 + this.des = des;
  86 + }
  87 +
  88 + public String getFaceUrl() {
  89 + return faceUrl;
  90 + }
  91 +
  92 + public void setFaceUrl(String faceUrl) {
  93 + this.faceUrl = faceUrl;
  94 + }
  95 +
  96 + public String getConversationFaceUrl() {
  97 + return conversationFaceUrl;
  98 + }
  99 +
  100 + public void setConversationFaceUrl(String conversationFaceUrl) {
  101 + this.conversationFaceUrl = conversationFaceUrl;
  102 + }
  103 +
  104 + public Long getTimeStep() {
  105 + return timeStep;
  106 + }
  107 +
  108 + public void setTimeStep(Long timeStep) {
  109 + this.timeStep = timeStep;
  110 + }
  111 +
  112 + public Long getUnreadCount() {
  113 + return unreadCount;
  114 + }
  115 +
  116 + public void setUnreadCount(Long unreadCount) {
  117 + this.unreadCount = unreadCount;
  118 + }
  119 +
  120 + // KEEP METHODS - put your custom methods here
  121 + // KEEP METHODS END
  122 +
  123 +}
core/database/src/main/java/com/cnlive/database/bean/IMGroupFaceMemberIds.java 0 → 100644
  1 +package com.cnlive.database.bean;
  2 +
  3 +import org.greenrobot.greendao.annotation.Entity;
  4 +import org.greenrobot.greendao.annotation.Generated;
  5 +import org.greenrobot.greendao.annotation.Id;
  6 +import org.greenrobot.greendao.annotation.NotNull;
  7 +
  8 +// THIS CODE IS GENERATED BY greenDAO, EDIT ONLY INSIDE THE "KEEP"-SECTIONS
  9 +
  10 +// KEEP INCLUDES - put your custom includes here
  11 +// KEEP INCLUDES END
  12 +
  13 +/**
  14 + * Entity mapped to table "IMGROUP_FACE_MEMBER_IDS".
  15 + */
  16 +@Entity
  17 +public class IMGroupFaceMemberIds {
  18 +
  19 + @Id
  20 + @NotNull
  21 + private String GroupId;
  22 + private String GroupFaceUrlIds;
  23 +
  24 + // KEEP FIELDS - put your custom fields here
  25 + // KEEP FIELDS END
  26 +
  27 + @Generated(hash = 193259065)
  28 + public IMGroupFaceMemberIds() {
  29 + }
  30 +
  31 + public IMGroupFaceMemberIds(String GroupId) {
  32 + this.GroupId = GroupId;
  33 + }
  34 +
  35 + @Generated(hash = 1656457009)
  36 + public IMGroupFaceMemberIds(@NotNull String GroupId, String GroupFaceUrlIds) {
  37 + this.GroupId = GroupId;
  38 + this.GroupFaceUrlIds = GroupFaceUrlIds;
  39 + }
  40 +
  41 + @NotNull
  42 + public String getGroupId() {
  43 + return GroupId;
  44 + }
  45 +
  46 + /** Not-null value; ensure this value is available before it is saved to the database. */
  47 + public void setGroupId(@NotNull String GroupId) {
  48 + this.GroupId = GroupId;
  49 + }
  50 +
  51 + public String getGroupFaceUrlIds() {
  52 + return GroupFaceUrlIds;
  53 + }
  54 +
  55 + public void setGroupFaceUrlIds(String GroupFaceUrlIds) {
  56 + this.GroupFaceUrlIds = GroupFaceUrlIds;
  57 + }
  58 +
  59 + // KEEP METHODS - put your custom methods here
  60 + // KEEP METHODS END
  61 +
  62 +}
core/database/src/main/java/com/cnlive/database/bean/IMGroupMembers.java 0 → 100644
  1 +package com.cnlive.database.bean;
  2 +
  3 +import org.greenrobot.greendao.annotation.Entity;
  4 +import org.greenrobot.greendao.annotation.Generated;
  5 +import org.greenrobot.greendao.annotation.Id;
  6 +import org.greenrobot.greendao.annotation.NotNull;
  7 +
  8 +// THIS CODE IS GENERATED BY greenDAO, EDIT ONLY INSIDE THE "KEEP"-SECTIONS
  9 +
  10 +// KEEP INCLUDES - put your custom includes here
  11 +// KEEP INCLUDES END
  12 +
  13 +/**
  14 + * Entity mapped to table "IMGROUP_MEMBERS".
  15 + */
  16 +@Entity
  17 +public class IMGroupMembers {
  18 +
  19 + @Id
  20 + @NotNull
  21 + private String GroupId;
  22 + private String GroupName;
  23 + private String GroupFaceUrl;
  24 + private String CombineGroupFaceUrl;
  25 +
  26 + // KEEP FIELDS - put your custom fields here
  27 + // KEEP FIELDS END
  28 +
  29 + @Generated(hash = 183870571)
  30 + public IMGroupMembers() {
  31 + }
  32 +
  33 + public IMGroupMembers(String GroupId) {
  34 + this.GroupId = GroupId;
  35 + }
  36 +
  37 + @Generated(hash = 275046691)
  38 + public IMGroupMembers(@NotNull String GroupId, String GroupName, String GroupFaceUrl,
  39 + String CombineGroupFaceUrl) {
  40 + this.GroupId = GroupId;
  41 + this.GroupName = GroupName;
  42 + this.GroupFaceUrl = GroupFaceUrl;
  43 + this.CombineGroupFaceUrl = CombineGroupFaceUrl;
  44 + }
  45 +
  46 + @NotNull
  47 + public String getGroupId() {
  48 + return GroupId;
  49 + }
  50 +
  51 + /** Not-null value; ensure this value is available before it is saved to the database. */
  52 + public void setGroupId(@NotNull String GroupId) {
  53 + this.GroupId = GroupId;
  54 + }
  55 +
  56 + public String getGroupName() {
  57 + return GroupName;
  58 + }
  59 +
  60 + public void setGroupName(String GroupName) {
  61 + this.GroupName = GroupName;
  62 + }
  63 +
  64 + public String getGroupFaceUrl() {
  65 + return GroupFaceUrl;
  66 + }
  67 +
  68 + public void setGroupFaceUrl(String GroupFaceUrl) {
  69 + this.GroupFaceUrl = GroupFaceUrl;
  70 + }
  71 +
  72 + public String getCombineGroupFaceUrl() {
  73 + return CombineGroupFaceUrl;
  74 + }
  75 +
  76 + public void setCombineGroupFaceUrl(String CombineGroupFaceUrl) {
  77 + this.CombineGroupFaceUrl = CombineGroupFaceUrl;
  78 + }
  79 +
  80 + // KEEP METHODS - put your custom methods here
  81 + // KEEP METHODS END
  82 +
  83 +}
core/database/src/main/java/com/cnlive/database/bean/IMGroupMembersList.java 0 → 100644
  1 +package com.cnlive.database.bean;
  2 +
  3 +import org.greenrobot.greendao.annotation.Entity;
  4 +import org.greenrobot.greendao.annotation.Generated;
  5 +import org.greenrobot.greendao.annotation.Id;
  6 +
  7 +// THIS CODE IS GENERATED BY greenDAO, EDIT ONLY INSIDE THE "KEEP"-SECTIONS
  8 +
  9 +// KEEP INCLUDES - put your custom includes here
  10 +// KEEP INCLUDES END
  11 +
  12 +/**
  13 + * Entity mapped to table "IMGROUP_MEMBERS_LIST".
  14 + */
  15 +@Entity
  16 +public class IMGroupMembersList {
  17 +
  18 + @Id(autoincrement = true)
  19 + private Long id;
  20 + private String GroupId;
  21 + private String memberId;
  22 + private String memberRemark;
  23 + private String memberFaceUrl;
  24 + private String memberNick;
  25 + private String memberRoleType;
  26 + private String memberNameCard;
  27 +
  28 + // KEEP FIELDS - put your custom fields here
  29 + // KEEP FIELDS END
  30 +
  31 + @Generated(hash = 167732717)
  32 + public IMGroupMembersList() {
  33 + }
  34 +
  35 + public IMGroupMembersList(Long id) {
  36 + this.id = id;
  37 + }
  38 +
  39 + @Generated(hash = 404302734)
  40 + public IMGroupMembersList(Long id, String GroupId, String memberId, String memberRemark, String memberFaceUrl, String memberNick, String memberRoleType, String memberNameCard) {
  41 + this.id = id;
  42 + this.GroupId = GroupId;
  43 + this.memberId = memberId;
  44 + this.memberRemark = memberRemark;
  45 + this.memberFaceUrl = memberFaceUrl;
  46 + this.memberNick = memberNick;
  47 + this.memberRoleType = memberRoleType;
  48 + this.memberNameCard = memberNameCard;
  49 + }
  50 +
  51 + public Long getId() {
  52 + return id;
  53 + }
  54 +
  55 + public void setId(Long id) {
  56 + this.id = id;
  57 + }
  58 +
  59 + public String getGroupId() {
  60 + return GroupId;
  61 + }
  62 +
  63 + public void setGroupId(String GroupId) {
  64 + this.GroupId = GroupId;
  65 + }
  66 +
  67 + public String getMemberId() {
  68 + return memberId;
  69 + }
  70 +
  71 + public void setMemberId(String memberId) {
  72 + this.memberId = memberId;
  73 + }
  74 +
  75 + public String getMemberRemark() {
  76 + return memberRemark;
  77 + }
  78 +
  79 + public void setMemberRemark(String memberRemark) {
  80 + this.memberRemark = memberRemark;
  81 + }
  82 +
  83 + public String getMemberFaceUrl() {
  84 + return memberFaceUrl;
  85 + }
  86 +
  87 + public void setMemberFaceUrl(String memberFaceUrl) {
  88 + this.memberFaceUrl = memberFaceUrl;
  89 + }
  90 +
  91 + public String getMemberNick() {
  92 + return memberNick;
  93 + }
  94 +
  95 + public void setMemberNick(String memberNick) {
  96 + this.memberNick = memberNick;
  97 + }
  98 +
  99 + public String getMemberRoleType() {
  100 + return memberRoleType;
  101 + }
  102 +
  103 + public void setMemberRoleType(String memberRoleType) {
  104 + this.memberRoleType = memberRoleType;
  105 + }
  106 +
  107 + public String getMemberNameCard() {
  108 + return memberNameCard;
  109 + }
  110 +
  111 + public void setMemberNameCard(String memberNameCard) {
  112 + this.memberNameCard = memberNameCard;
  113 + }
  114 +
  115 + // KEEP METHODS - put your custom methods here
  116 + // KEEP METHODS END
  117 +
  118 +}
core/database/src/main/java/com/cnlive/database/bean/IMGroupMembersManagerList.java 0 → 100644
  1 +package com.cnlive.database.bean;
  2 +
  3 +import org.greenrobot.greendao.annotation.Entity;
  4 +import org.greenrobot.greendao.annotation.Generated;
  5 +import org.greenrobot.greendao.annotation.Id;
  6 +
  7 +// THIS CODE IS GENERATED BY greenDAO, EDIT ONLY INSIDE THE "KEEP"-SECTIONS
  8 +
  9 +// KEEP INCLUDES - put your custom includes here
  10 +// KEEP INCLUDES END
  11 +
  12 +/**
  13 + * Entity mapped to table "IMGROUP_MEMBERS_MANAGER_LIST".
  14 + */
  15 +@Entity
  16 +public class IMGroupMembersManagerList {
  17 +
  18 + @Id(autoincrement = true)
  19 + private Long id;
  20 + private String GroupId;
  21 + private String memberId;
  22 +
  23 + // KEEP FIELDS - put your custom fields here
  24 + // KEEP FIELDS END
  25 +
  26 + @Generated(hash = 1327955001)
  27 + public IMGroupMembersManagerList() {
  28 + }
  29 +
  30 + public IMGroupMembersManagerList(Long id) {
  31 + this.id = id;
  32 + }
  33 +
  34 + @Generated(hash = 1013490095)
  35 + public IMGroupMembersManagerList(Long id, String GroupId, String memberId) {
  36 + this.id = id;
  37 + this.GroupId = GroupId;
  38 + this.memberId = memberId;
  39 + }
  40 +
  41 + public Long getId() {
  42 + return id;
  43 + }
  44 +
  45 + public void setId(Long id) {
  46 + this.id = id;
  47 + }
  48 +
  49 + public String getGroupId() {
  50 + return GroupId;
  51 + }
  52 +
  53 + public void setGroupId(String GroupId) {
  54 + this.GroupId = GroupId;
  55 + }
  56 +
  57 + public String getMemberId() {
  58 + return memberId;
  59 + }
  60 +
  61 + public void setMemberId(String memberId) {
  62 + this.memberId = memberId;
  63 + }
  64 +
  65 + // KEEP METHODS - put your custom methods here
  66 + // KEEP METHODS END
  67 +
  68 +}
core/database/src/main/java/com/cnlive/database/bean/IMUserInfo.java 0 → 100644
  1 +package com.cnlive.database.bean;
  2 +
  3 +import org.greenrobot.greendao.annotation.Entity;
  4 +import org.greenrobot.greendao.annotation.Generated;
  5 +import org.greenrobot.greendao.annotation.Id;
  6 +import org.greenrobot.greendao.annotation.NotNull;
  7 +
  8 +// THIS CODE IS GENERATED BY greenDAO, EDIT ONLY INSIDE THE "KEEP"-SECTIONS
  9 +
  10 +// KEEP INCLUDES - put your custom includes here
  11 +// KEEP INCLUDES END
  12 +
  13 +/**
  14 + * Entity mapped to table "IMUSER_INFO".
  15 + */
  16 +@Entity
  17 +public class IMUserInfo {
  18 +
  19 + @Id
  20 + @NotNull
  21 + private String UserId;
  22 + private String NickName;
  23 + private String Remark;
  24 + private String FaceUrl;
  25 +
  26 + // KEEP FIELDS - put your custom fields here
  27 + // KEEP FIELDS END
  28 +
  29 + @Generated(hash = 699328686)
  30 + public IMUserInfo() {
  31 + }
  32 +
  33 + public IMUserInfo(String UserId) {
  34 + this.UserId = UserId;
  35 + }
  36 +
  37 + @Generated(hash = 1445813298)
  38 + public IMUserInfo(@NotNull String UserId, String NickName, String Remark,
  39 + String FaceUrl) {
  40 + this.UserId = UserId;
  41 + this.NickName = NickName;
  42 + this.Remark = Remark;
  43 + this.FaceUrl = FaceUrl;
  44 + }
  45 +
  46 + @NotNull
  47 + public String getUserId() {
  48 + return UserId;
  49 + }
  50 +
  51 + /** Not-null value; ensure this value is available before it is saved to the database. */
  52 + public void setUserId(@NotNull String UserId) {
  53 + this.UserId = UserId;
  54 + }
  55 +
  56 + public String getNickName() {
  57 + return NickName;
  58 + }
  59 +
  60 + public void setNickName(String NickName) {
  61 + this.NickName = NickName;
  62 + }
  63 +
  64 + public String getRemark() {
  65 + return Remark;
  66 + }
  67 +
  68 + public void setRemark(String Remark) {
  69 + this.Remark = Remark;
  70 + }
  71 +
  72 + public String getFaceUrl() {
  73 + return FaceUrl;
  74 + }
  75 +
  76 + public void setFaceUrl(String FaceUrl) {
  77 + this.FaceUrl = FaceUrl;
  78 + }
  79 +
  80 + // KEEP METHODS - put your custom methods here
  81 + // KEEP METHODS END
  82 +
  83 +}
core/database/src/main/java/com/cnlive/database/bean/LaunchAdInfo.java 0 → 100644
  1 +package com.cnlive.database.bean;
  2 +
  3 +import org.greenrobot.greendao.annotation.Entity;
  4 +import org.greenrobot.greendao.annotation.Generated;
  5 +import org.greenrobot.greendao.annotation.Id;
  6 +import org.greenrobot.greendao.annotation.NotNull;
  7 +
  8 +// THIS CODE IS GENERATED BY greenDAO, EDIT ONLY INSIDE THE "KEEP"-SECTIONS
  9 +
  10 +// KEEP INCLUDES - put your custom includes here
  11 +// KEEP INCLUDES END
  12 +
  13 +/**
  14 + * Entity mapped to table "LAUNCH_AD_INFO".
  15 + */
  16 +@Entity
  17 +public class LaunchAdInfo {
  18 +
  19 + @Id
  20 + @NotNull
  21 + private String appid;
  22 + private String id;
  23 + private String wjjAdUrl;
  24 + private String wjjAdImgUrl;
  25 + private Boolean wjjAdv;
  26 + private String wjjAdImgPath;
  27 + private Integer duration;
  28 + private Integer modifyStatus;
  29 +
  30 + // KEEP FIELDS - put your custom fields here
  31 + // KEEP FIELDS END
  32 +
  33 + @Generated(hash = 727472882)
  34 + public LaunchAdInfo() {
  35 + }
  36 +
  37 + public LaunchAdInfo(String appid) {
  38 + this.appid = appid;
  39 + }
  40 +
  41 + @Generated(hash = 1914070053)
  42 + public LaunchAdInfo(@NotNull String appid, String id, String wjjAdUrl, String wjjAdImgUrl, Boolean wjjAdv, String wjjAdImgPath, Integer duration,
  43 + Integer modifyStatus) {
  44 + this.appid = appid;
  45 + this.id = id;
  46 + this.wjjAdUrl = wjjAdUrl;
  47 + this.wjjAdImgUrl = wjjAdImgUrl;
  48 + this.wjjAdv = wjjAdv;
  49 + this.wjjAdImgPath = wjjAdImgPath;
  50 + this.duration = duration;
  51 + this.modifyStatus = modifyStatus;
  52 + }
  53 +
  54 + @NotNull
  55 + public String getAppid() {
  56 + return appid;
  57 + }
  58 +
  59 + /** Not-null value; ensure this value is available before it is saved to the database. */
  60 + public void setAppid(@NotNull String appid) {
  61 + this.appid = appid;
  62 + }
  63 +
  64 + public String getId() {
  65 + return id;
  66 + }
  67 +
  68 + public void setId(String id) {
  69 + this.id = id;
  70 + }
  71 +
  72 + public String getWjjAdUrl() {
  73 + return wjjAdUrl;
  74 + }
  75 +
  76 + public void setWjjAdUrl(String wjjAdUrl) {
  77 + this.wjjAdUrl = wjjAdUrl;
  78 + }
  79 +
  80 + public String getWjjAdImgUrl() {
  81 + return wjjAdImgUrl;
  82 + }
  83 +
  84 + public void setWjjAdImgUrl(String wjjAdImgUrl) {
  85 + this.wjjAdImgUrl = wjjAdImgUrl;
  86 + }
  87 +
  88 + public Boolean getWjjAdv() {
  89 + return wjjAdv;
  90 + }
  91 +
  92 + public void setWjjAdv(Boolean wjjAdv) {
  93 + this.wjjAdv = wjjAdv;
  94 + }
  95 +
  96 + public String getWjjAdImgPath() {
  97 + return wjjAdImgPath;
  98 + }
  99 +
  100 + public void setWjjAdImgPath(String wjjAdImgPath) {
  101 + this.wjjAdImgPath = wjjAdImgPath;
  102 + }
  103 +
  104 + public Integer getDuration() {
  105 + return duration;
  106 + }
  107 +
  108 + public void setDuration(Integer duration) {
  109 + this.duration = duration;
  110 + }
  111 +
  112 + public Integer getModifyStatus() {
  113 + return modifyStatus;
  114 + }
  115 +
  116 + public void setModifyStatus(Integer modifyStatus) {
  117 + this.modifyStatus = modifyStatus;
  118 + }
  119 +
  120 + // KEEP METHODS - put your custom methods here
  121 + // KEEP METHODS END
  122 +
  123 +}
core/database/src/main/java/com/cnlive/database/bean/NewContactFriendEntity.java 0 → 100644
  1 +package com.cnlive.database.bean;
  2 +
  3 +import org.greenrobot.greendao.annotation.Entity;
  4 +import org.greenrobot.greendao.annotation.Generated;
  5 +import org.greenrobot.greendao.annotation.Id;
  6 +
  7 +// THIS CODE IS GENERATED BY greenDAO, EDIT ONLY INSIDE THE "KEEP"-SECTIONS
  8 +
  9 +// KEEP INCLUDES - put your custom includes here
  10 +// KEEP INCLUDES END
  11 +
  12 +/**
  13 + * Entity mapped to table "NEW_CONTACT_FRIEND_ENTITY".
  14 + */
  15 +@Entity
  16 +public class NewContactFriendEntity {
  17 +
  18 + @Id
  19 + private String uid;
  20 + private String cacheData;
  21 +
  22 + // KEEP FIELDS - put your custom fields here
  23 + // KEEP FIELDS END
  24 +
  25 + @Generated(hash = 1300800285)
  26 + public NewContactFriendEntity() {
  27 + }
  28 +
  29 + public NewContactFriendEntity(String uid) {
  30 + this.uid = uid;
  31 + }
  32 +
  33 + @Generated(hash = 1913403774)
  34 + public NewContactFriendEntity(String uid, String cacheData) {
  35 + this.uid = uid;
  36 + this.cacheData = cacheData;
  37 + }
  38 +
  39 + public String getUid() {
  40 + return uid;
  41 + }
  42 +
  43 + public void setUid(String uid) {
  44 + this.uid = uid;
  45 + }
  46 +
  47 + public String getCacheData() {
  48 + return cacheData;
  49 + }
  50 +
  51 + public void setCacheData(String cacheData) {
  52 + this.cacheData = cacheData;
  53 + }
  54 +
  55 + // KEEP METHODS - put your custom methods here
  56 + // KEEP METHODS END
  57 +
  58 +}
core/database/src/main/java/com/cnlive/database/bean/NewPhoneContactEntity.java 0 → 100644
  1 +package com.cnlive.database.bean;
  2 +
  3 +import org.greenrobot.greendao.annotation.Entity;
  4 +import org.greenrobot.greendao.annotation.Generated;
  5 +import org.greenrobot.greendao.annotation.Id;
  6 +
  7 +// THIS CODE IS GENERATED BY greenDAO, EDIT ONLY INSIDE THE "KEEP"-SECTIONS
  8 +
  9 +// KEEP INCLUDES - put your custom includes here
  10 +// KEEP INCLUDES END
  11 +
  12 +/**
  13 + * Entity mapped to table "NEW_PHONE_CONTACT_ENTITY".
  14 + */
  15 +@Entity
  16 +public class NewPhoneContactEntity {
  17 +
  18 + @Id
  19 + private String uid;
  20 + private String cacheData;
  21 +
  22 + // KEEP FIELDS - put your custom fields here
  23 + // KEEP FIELDS END
  24 +
  25 + @Generated(hash = 1709040540)
  26 + public NewPhoneContactEntity() {
  27 + }
  28 +
  29 + public NewPhoneContactEntity(String uid) {
  30 + this.uid = uid;
  31 + }
  32 +
  33 + @Generated(hash = 2067323115)
  34 + public NewPhoneContactEntity(String uid, String cacheData) {
  35 + this.uid = uid;
  36 + this.cacheData = cacheData;
  37 + }
  38 +
  39 + public String getUid() {
  40 + return uid;
  41 + }
  42 +
  43 + public void setUid(String uid) {
  44 + this.uid = uid;
  45 + }
  46 +
  47 + public String getCacheData() {
  48 + return cacheData;
  49 + }
  50 +
  51 + public void setCacheData(String cacheData) {
  52 + this.cacheData = cacheData;
  53 + }
  54 +
  55 + // KEEP METHODS - put your custom methods here
  56 + // KEEP METHODS END
  57 +
  58 +}
core/database/src/main/java/com/cnlive/database/bean/NewsNumber.java 0 → 100644
  1 +package com.cnlive.database.bean;
  2 +
  3 +import org.greenrobot.greendao.annotation.Entity;
  4 +import org.greenrobot.greendao.annotation.Generated;
  5 +import org.greenrobot.greendao.annotation.Id;
  6 +import org.greenrobot.greendao.annotation.NotNull;
  7 +
  8 +// THIS CODE IS GENERATED BY greenDAO, EDIT ONLY INSIDE THE "KEEP"-SECTIONS
  9 +
  10 +// KEEP INCLUDES - put your custom includes here
  11 +// KEEP INCLUDES END
  12 +
  13 +/**
  14 + * Entity mapped to table "NEWS_NUMBER".
  15 + */
  16 +@Entity
  17 +public class NewsNumber {
  18 +
  19 + @Id
  20 + @NotNull
  21 + private String ts;
  22 + private String newsList;
  23 +
  24 + // KEEP FIELDS - put your custom fields here
  25 + // KEEP FIELDS END
  26 +
  27 + @Generated(hash = 79811361)
  28 + public NewsNumber() {
  29 + }
  30 +
  31 + public NewsNumber(String ts) {
  32 + this.ts = ts;
  33 + }
  34 +
  35 + @Generated(hash = 831653806)
  36 + public NewsNumber(@NotNull String ts, String newsList) {
  37 + this.ts = ts;
  38 + this.newsList = newsList;
  39 + }
  40 +
  41 + @NotNull
  42 + public String getTs() {
  43 + return ts;
  44 + }
  45 +
  46 + /** Not-null value; ensure this value is available before it is saved to the database. */
  47 + public void setTs(@NotNull String ts) {
  48 + this.ts = ts;
  49 + }
  50 +
  51 + public String getNewsList() {
  52 + return newsList;
  53 + }
  54 +
  55 + public void setNewsList(String newsList) {
  56 + this.newsList = newsList;
  57 + }
  58 +
  59 + // KEEP METHODS - put your custom methods here
  60 + // KEEP METHODS END
  61 +
  62 +}
core/database/src/main/java/com/cnlive/database/bean/SearchContent.java 0 → 100644
  1 +package com.cnlive.database.bean;
  2 +
  3 +import org.greenrobot.greendao.annotation.Entity;
  4 +import org.greenrobot.greendao.annotation.Generated;
  5 +import org.greenrobot.greendao.annotation.Id;
  6 +import org.greenrobot.greendao.annotation.NotNull;
  7 +
  8 +// THIS CODE IS GENERATED BY greenDAO, EDIT ONLY INSIDE THE "KEEP"-SECTIONS
  9 +
  10 +// KEEP INCLUDES - put your custom includes here
  11 +// KEEP INCLUDES END
  12 +
  13 +/**
  14 + * Entity mapped to table "SEARCH_CONTENT".
  15 + */
  16 +@Entity
  17 +public class SearchContent {
  18 + private String sid;
  19 +
  20 + @Id
  21 + @NotNull
  22 + private String content;
  23 +
  24 + // KEEP FIELDS - put your custom fields here
  25 + // KEEP FIELDS END
  26 +
  27 + @Generated(hash = 206336392)
  28 + public SearchContent() {
  29 + }
  30 +
  31 + public SearchContent(String content) {
  32 + this.content = content;
  33 + }
  34 +
  35 + @Generated(hash = 634830022)
  36 + public SearchContent(String sid, @NotNull String content) {
  37 + this.sid = sid;
  38 + this.content = content;
  39 + }
  40 +
  41 + public String getSid() {
  42 + return sid;
  43 + }
  44 +
  45 + public void setSid(String sid) {
  46 + this.sid = sid;
  47 + }
  48 +
  49 + @NotNull
  50 + public String getContent() {
  51 + return content;
  52 + }
  53 +
  54 + /** Not-null value; ensure this value is available before it is saved to the database. */
  55 + public void setContent(@NotNull String content) {
  56 + this.content = content;
  57 + }
  58 +
  59 + // KEEP METHODS - put your custom methods here
  60 + // KEEP METHODS END
  61 +
  62 +}
core/database/src/main/java/com/cnlive/database/bean/SearchHistory.java 0 → 100644
  1 +package com.cnlive.database.bean;
  2 +
  3 +import org.greenrobot.greendao.annotation.Entity;
  4 +import org.greenrobot.greendao.annotation.Generated;
  5 +import org.greenrobot.greendao.annotation.Id;
  6 +import org.greenrobot.greendao.annotation.NotNull;
  7 +
  8 +// THIS CODE IS GENERATED BY greenDAO, EDIT ONLY INSIDE THE "KEEP"-SECTIONS
  9 +
  10 +// KEEP INCLUDES - put your custom includes here
  11 +// KEEP INCLUDES END
  12 +
  13 +/**
  14 + * Entity mapped to table "SEARCH_HISTORY".
  15 + */
  16 +@Entity
  17 +public class SearchHistory {
  18 + private String sid;
  19 +
  20 + @Id
  21 + @NotNull
  22 + private String history;
  23 +
  24 + // KEEP FIELDS - put your custom fields here
  25 + // KEEP FIELDS END
  26 +
  27 + @Generated(hash = 1905904755)
  28 + public SearchHistory() {
  29 + }
  30 +
  31 + public SearchHistory(String history) {
  32 + this.history = history;
  33 + }
  34 +
  35 + @Generated(hash = 2087782047)
  36 + public SearchHistory(String sid, @NotNull String history) {
  37 + this.sid = sid;
  38 + this.history = history;
  39 + }
  40 +
  41 + public String getSid() {
  42 + return sid;
  43 + }
  44 +
  45 + public void setSid(String sid) {
  46 + this.sid = sid;
  47 + }
  48 +
  49 + @NotNull
  50 + public String getHistory() {
  51 + return history;
  52 + }
  53 +
  54 + /** Not-null value; ensure this value is available before it is saved to the database. */
  55 + public void setHistory(@NotNull String history) {
  56 + this.history = history;
  57 + }
  58 +
  59 + // KEEP METHODS - put your custom methods here
  60 + // KEEP METHODS END
  61 +
  62 +}
core/database/src/main/java/com/cnlive/database/bean/SysNumReadable.java 0 → 100644
  1 +package com.cnlive.database.bean;
  2 +
  3 +import org.greenrobot.greendao.annotation.Entity;
  4 +import org.greenrobot.greendao.annotation.Generated;
  5 +import org.greenrobot.greendao.annotation.Id;
  6 +import org.greenrobot.greendao.annotation.NotNull;
  7 +
  8 +// THIS CODE IS GENERATED BY greenDAO, EDIT ONLY INSIDE THE "KEEP"-SECTIONS
  9 +
  10 +// KEEP INCLUDES - put your custom includes here
  11 +// KEEP INCLUDES END
  12 +
  13 +/**
  14 + * Entity mapped to table "SYS_NUM_READABLE".
  15 + */
  16 +@Entity
  17 +public class SysNumReadable {
  18 +
  19 + @Id
  20 + @NotNull
  21 + private String homeId;
  22 + private Long timeStep;
  23 +
  24 + // KEEP FIELDS - put your custom fields here
  25 + // KEEP FIELDS END
  26 +
  27 + @Generated(hash = 1800751102)
  28 + public SysNumReadable() {
  29 + }
  30 +
  31 + public SysNumReadable(String homeId) {
  32 + this.homeId = homeId;
  33 + }
  34 +
  35 + @Generated(hash = 1562660788)
  36 + public SysNumReadable(@NotNull String homeId, Long timeStep) {
  37 + this.homeId = homeId;
  38 + this.timeStep = timeStep;
  39 + }
  40 +
  41 + @NotNull
  42 + public String getHomeId() {
  43 + return homeId;
  44 + }
  45 +
  46 + /** Not-null value; ensure this value is available before it is saved to the database. */
  47 + public void setHomeId(@NotNull String homeId) {
  48 + this.homeId = homeId;
  49 + }
  50 +
  51 + public Long getTimeStep() {
  52 + return timeStep;
  53 + }
  54 +
  55 + public void setTimeStep(Long timeStep) {
  56 + this.timeStep = timeStep;
  57 + }
  58 +
  59 + // KEEP METHODS - put your custom methods here
  60 + // KEEP METHODS END
  61 +
  62 +}
core/database/src/main/java/com/cnlive/database/bean/User.java deleted 100644 → 0
1 -package com.cnlive.database.bean;  
2 -  
3 -import org.greenrobot.greendao.annotation.Entity;  
4 -import org.greenrobot.greendao.annotation.Id;  
5 -import org.greenrobot.greendao.annotation.Unique;  
6 -import org.greenrobot.greendao.annotation.Generated;  
7 -  
8 -/**  
9 - * created by hanyayun  
10 - * on 2019/12/12  
11 - */  
12 -  
13 -@Entity  
14 -public class User {  
15 - @Id(autoincrement = true)  
16 - Long id;  
17 - @Unique  
18 - int studentNo;//学号  
19 - int age; //年龄  
20 - String telPhone;//手机号  
21 - String sex; //性别  
22 - String name;//姓名  
23 - String address;//家庭住址  
24 - String schoolName;//学校名字  
25 - String grade;//几年级  
26 - @Generated(hash = 473708544)  
27 - public User(Long id, int studentNo, int age, String telPhone, String sex,  
28 - String name, String address, String schoolName, String grade) {  
29 - this.id = id;  
30 - this.studentNo = studentNo;  
31 - this.age = age;  
32 - this.telPhone = telPhone;  
33 - this.sex = sex;  
34 - this.name = name;  
35 - this.address = address;  
36 - this.schoolName = schoolName;  
37 - this.grade = grade;  
38 - }  
39 - @Generated(hash = 586692638)  
40 - public User() {  
41 - }  
42 - public Long getId() {  
43 - return this.id;  
44 - }  
45 - public void setId(Long id) {  
46 - this.id = id;  
47 - }  
48 - public int getStudentNo() {  
49 - return this.studentNo;  
50 - }  
51 - public void setStudentNo(int studentNo) {  
52 - this.studentNo = studentNo;  
53 - }  
54 - public int getAge() {  
55 - return this.age;  
56 - }  
57 - public void setAge(int age) {  
58 - this.age = age;  
59 - }  
60 - public String getTelPhone() {  
61 - return this.telPhone;  
62 - }  
63 - public void setTelPhone(String telPhone) {  
64 - this.telPhone = telPhone;  
65 - }  
66 - public String getSex() {  
67 - return this.sex;  
68 - }  
69 - public void setSex(String sex) {  
70 - this.sex = sex;  
71 - }  
72 - public String getName() {  
73 - return this.name;  
74 - }  
75 - public void setName(String name) {  
76 - this.name = name;  
77 - }  
78 - public String getAddress() {  
79 - return this.address;  
80 - }  
81 - public void setAddress(String address) {  
82 - this.address = address;  
83 - }  
84 - public String getSchoolName() {  
85 - return this.schoolName;  
86 - }  
87 - public void setSchoolName(String schoolName) {  
88 - this.schoolName = schoolName;  
89 - }  
90 - public String getGrade() {  
91 - return this.grade;  
92 - }  
93 - public void setGrade(String grade) {  
94 - this.grade = grade;  
95 - }  
96 -}  
core/database/src/main/java/com/cnlive/database/bean/Witness.java 0 → 100644
  1 +package com.cnlive.database.bean;
  2 +
  3 +import org.greenrobot.greendao.annotation.Entity;
  4 +import org.greenrobot.greendao.annotation.Generated;
  5 +import org.greenrobot.greendao.annotation.Id;
  6 +import org.greenrobot.greendao.annotation.NotNull;
  7 +
  8 +// THIS CODE IS GENERATED BY greenDAO, EDIT ONLY INSIDE THE "KEEP"-SECTIONS
  9 +
  10 +// KEEP INCLUDES - put your custom includes here
  11 +// KEEP INCLUDES END
  12 +
  13 +/**
  14 + * Entity mapped to table "WITNESS".
  15 + */
  16 +@Entity
  17 +public class Witness {
  18 + private String id;
  19 + private String sid;
  20 + private String medias;
  21 + private String title;
  22 + private String wit;
  23 + private Integer type;
  24 + private String videotype;
  25 + private String gopath;
  26 + private Integer multiplecategory;
  27 + private String tag;
  28 +
  29 + @Id
  30 + @NotNull
  31 + private String timeStamp;
  32 + private String dutation;
  33 + private String src;
  34 + private String taglist;
  35 +
  36 + // KEEP FIELDS - put your custom fields here
  37 + // KEEP FIELDS END
  38 +
  39 + @Generated(hash = 24525325)
  40 + public Witness() {
  41 + }
  42 +
  43 + public Witness(String timeStamp) {
  44 + this.timeStamp = timeStamp;
  45 + }
  46 +
  47 + @Generated(hash = 193853156)
  48 + public Witness(String id, String sid, String medias, String title, String wit, Integer type, String videotype, String gopath, Integer multiplecategory, String tag, @NotNull String timeStamp, String dutation, String src,
  49 + String taglist) {
  50 + this.id = id;
  51 + this.sid = sid;
  52 + this.medias = medias;
  53 + this.title = title;
  54 + this.wit = wit;
  55 + this.type = type;
  56 + this.videotype = videotype;
  57 + this.gopath = gopath;
  58 + this.multiplecategory = multiplecategory;
  59 + this.tag = tag;
  60 + this.timeStamp = timeStamp;
  61 + this.dutation = dutation;
  62 + this.src = src;
  63 + this.taglist = taglist;
  64 + }
  65 +
  66 + public String getId() {
  67 + return id;
  68 + }
  69 +
  70 + public void setId(String id) {
  71 + this.id = id;
  72 + }
  73 +
  74 + public String getSid() {
  75 + return sid;
  76 + }
  77 +
  78 + public void setSid(String sid) {
  79 + this.sid = sid;
  80 + }
  81 +
  82 + public String getMedias() {
  83 + return medias;
  84 + }
  85 +
  86 + public void setMedias(String medias) {
  87 + this.medias = medias;
  88 + }
  89 +
  90 + public String getTitle() {
  91 + return title;
  92 + }
  93 +
  94 + public void setTitle(String title) {
  95 + this.title = title;
  96 + }
  97 +
  98 + public String getWit() {
  99 + return wit;
  100 + }
  101 +
  102 + public void setWit(String wit) {
  103 + this.wit = wit;
  104 + }
  105 +
  106 + public Integer getType() {
  107 + return type;
  108 + }
  109 +
  110 + public void setType(Integer type) {
  111 + this.type = type;
  112 + }
  113 +
  114 + public String getVideotype() {
  115 + return videotype;
  116 + }
  117 +
  118 + public void setVideotype(String videotype) {
  119 + this.videotype = videotype;
  120 + }
  121 +
  122 + public String getGopath() {
  123 + return gopath;
  124 + }
  125 +
  126 + public void setGopath(String gopath) {
  127 + this.gopath = gopath;
  128 + }
  129 +
  130 + public Integer getMultiplecategory() {
  131 + return multiplecategory;
  132 + }
  133 +
  134 + public void setMultiplecategory(Integer multiplecategory) {
  135 + this.multiplecategory = multiplecategory;
  136 + }
  137 +
  138 + public String getTag() {
  139 + return tag;
  140 + }
  141 +
  142 + public void setTag(String tag) {
  143 + this.tag = tag;
  144 + }
  145 +
  146 + @NotNull
  147 + public String getTimeStamp() {
  148 + return timeStamp;
  149 + }
  150 +
  151 + /** Not-null value; ensure this value is available before it is saved to the database. */
  152 + public void setTimeStamp(@NotNull String timeStamp) {
  153 + this.timeStamp = timeStamp;
  154 + }
  155 +
  156 + public String getDutation() {
  157 + return dutation;
  158 + }
  159 +
  160 + public void setDutation(String dutation) {
  161 + this.dutation = dutation;
  162 + }
  163 +
  164 + public String getSrc() {
  165 + return src;
  166 + }
  167 +
  168 + public void setSrc(String src) {
  169 + this.src = src;
  170 + }
  171 +
  172 + public String getTaglist() {
  173 + return taglist;
  174 + }
  175 +
  176 + public void setTaglist(String taglist) {
  177 + this.taglist = taglist;
  178 + }
  179 +
  180 + // KEEP METHODS - put your custom methods here
  181 + // KEEP METHODS END
  182 +
  183 +}
core/database/src/main/java/com/cnlive/database/dao/AudioPlayHistoricalRecordDao.java 0 → 100644
  1 +package com.cnlive.database.dao;
  2 +
  3 +import android.database.Cursor;
  4 +import android.database.sqlite.SQLiteStatement;
  5 +
  6 +import org.greenrobot.greendao.AbstractDao;
  7 +import org.greenrobot.greendao.Property;
  8 +import org.greenrobot.greendao.internal.DaoConfig;
  9 +import org.greenrobot.greendao.database.Database;
  10 +import org.greenrobot.greendao.database.DatabaseStatement;
  11 +
  12 +import com.cnlive.database.bean.AudioPlayHistoricalRecord;
  13 +
  14 +// THIS CODE IS GENERATED BY greenDAO, DO NOT EDIT.
  15 +/**
  16 + * DAO for table "AUDIO_PLAY_HISTORICAL_RECORD".
  17 +*/
  18 +public class AudioPlayHistoricalRecordDao extends AbstractDao<AudioPlayHistoricalRecord, Long> {
  19 +
  20 + public static final String TABLENAME = "AUDIO_PLAY_HISTORICAL_RECORD";
  21 +
  22 + /**
  23 + * Properties of entity AudioPlayHistoricalRecord.<br/>
  24 + * Can be used for QueryBuilder and for referencing column names.
  25 + */
  26 + public static class Properties {
  27 + public final static Property ContentId = new Property(0, long.class, "contentId", true, "_id");
  28 + public final static Property ActiveId = new Property(1, String.class, "activeId", false, "ACTIVE_ID");
  29 + public final static Property Aid = new Property(2, String.class, "aid", false, "AID");
  30 + public final static Property Time = new Property(3, Long.class, "time", false, "TIME");
  31 + }
  32 +
  33 +
  34 + public AudioPlayHistoricalRecordDao(DaoConfig config) {
  35 + super(config);
  36 + }
  37 +
  38 + public AudioPlayHistoricalRecordDao(DaoConfig config, DaoSession daoSession) {
  39 + super(config, daoSession);
  40 + }
  41 +
  42 + /** Creates the underlying database table. */
  43 + public static void createTable(Database db, boolean ifNotExists) {
  44 + String constraint = ifNotExists? "IF NOT EXISTS ": "";
  45 + db.execSQL("CREATE TABLE " + constraint + "\"AUDIO_PLAY_HISTORICAL_RECORD\" (" + //
  46 + "\"_id\" INTEGER PRIMARY KEY NOT NULL ," + // 0: contentId
  47 + "\"ACTIVE_ID\" TEXT," + // 1: activeId
  48 + "\"AID\" TEXT," + // 2: aid
  49 + "\"TIME\" INTEGER);"); // 3: time
  50 + }
  51 +
  52 + /** Drops the underlying database table. */
  53 + public static void dropTable(Database db, boolean ifExists) {
  54 + String sql = "DROP TABLE " + (ifExists ? "IF EXISTS " : "") + "\"AUDIO_PLAY_HISTORICAL_RECORD\"";
  55 + db.execSQL(sql);
  56 + }
  57 +
  58 + @Override
  59 + protected final void bindValues(DatabaseStatement stmt, AudioPlayHistoricalRecord entity) {
  60 + stmt.clearBindings();
  61 + stmt.bindLong(1, entity.getContentId());
  62 +
  63 + String activeId = entity.getActiveId();
  64 + if (activeId != null) {
  65 + stmt.bindString(2, activeId);
  66 + }
  67 +
  68 + String aid = entity.getAid();
  69 + if (aid != null) {
  70 + stmt.bindString(3, aid);
  71 + }
  72 +
  73 + Long time = entity.getTime();
  74 + if (time != null) {
  75 + stmt.bindLong(4, time);
  76 + }
  77 + }
  78 +
  79 + @Override
  80 + protected final void bindValues(SQLiteStatement stmt, AudioPlayHistoricalRecord entity) {
  81 + stmt.clearBindings();
  82 + stmt.bindLong(1, entity.getContentId());
  83 +
  84 + String activeId = entity.getActiveId();
  85 + if (activeId != null) {
  86 + stmt.bindString(2, activeId);
  87 + }
  88 +
  89 + String aid = entity.getAid();
  90 + if (aid != null) {
  91 + stmt.bindString(3, aid);
  92 + }
  93 +
  94 + Long time = entity.getTime();
  95 + if (time != null) {
  96 + stmt.bindLong(4, time);
  97 + }
  98 + }
  99 +
  100 + @Override
  101 + public Long readKey(Cursor cursor, int offset) {
  102 + return cursor.getLong(offset + 0);
  103 + }
  104 +
  105 + @Override
  106 + public AudioPlayHistoricalRecord readEntity(Cursor cursor, int offset) {
  107 + AudioPlayHistoricalRecord entity = new AudioPlayHistoricalRecord( //
  108 + cursor.getLong(offset + 0), // contentId
  109 + cursor.isNull(offset + 1) ? null : cursor.getString(offset + 1), // activeId
  110 + cursor.isNull(offset + 2) ? null : cursor.getString(offset + 2), // aid
  111 + cursor.isNull(offset + 3) ? null : cursor.getLong(offset + 3) // time
  112 + );
  113 + return entity;
  114 + }
  115 +
  116 + @Override
  117 + public void readEntity(Cursor cursor, AudioPlayHistoricalRecord entity, int offset) {
  118 + entity.setContentId(cursor.getLong(offset + 0));
  119 + entity.setActiveId(cursor.isNull(offset + 1) ? null : cursor.getString(offset + 1));
  120 + entity.setAid(cursor.isNull(offset + 2) ? null : cursor.getString(offset + 2));
  121 + entity.setTime(cursor.isNull(offset + 3) ? null : cursor.getLong(offset + 3));
  122 + }
  123 +
  124 + @Override
  125 + protected final Long updateKeyAfterInsert(AudioPlayHistoricalRecord entity, long rowId) {
  126 + entity.setContentId(rowId);
  127 + return rowId;
  128 + }
  129 +
  130 + @Override
  131 + public Long getKey(AudioPlayHistoricalRecord entity) {
  132 + if(entity != null) {
  133 + return entity.getContentId();
  134 + } else {
  135 + return null;
  136 + }
  137 + }
  138 +
  139 + @Override
  140 + public boolean hasKey(AudioPlayHistoricalRecord entity) {
  141 + throw new UnsupportedOperationException("Unsupported for entities with a non-null key");
  142 + }
  143 +
  144 + @Override
  145 + protected final boolean isEntityUpdateable() {
  146 + return true;
  147 + }
  148 +
  149 +}
core/database/src/main/java/com/cnlive/database/dao/AudioPlayLastInfoDao.java 0 → 100644
  1 +package com.cnlive.database.dao;
  2 +
  3 +import android.database.Cursor;
  4 +import android.database.sqlite.SQLiteStatement;
  5 +
  6 +import org.greenrobot.greendao.AbstractDao;
  7 +import org.greenrobot.greendao.Property;
  8 +import org.greenrobot.greendao.internal.DaoConfig;
  9 +import org.greenrobot.greendao.database.Database;
  10 +import org.greenrobot.greendao.database.DatabaseStatement;
  11 +
  12 +import com.cnlive.database.bean.AudioPlayLastInfo;
  13 +
  14 +// THIS CODE IS GENERATED BY greenDAO, DO NOT EDIT.
  15 +/**
  16 + * DAO for table "AUDIO_PLAY_LAST_INFO".
  17 +*/
  18 +public class AudioPlayLastInfoDao extends AbstractDao<AudioPlayLastInfo, String> {
  19 +
  20 + public static final String TABLENAME = "AUDIO_PLAY_LAST_INFO";
  21 +
  22 + /**
  23 + * Properties of entity AudioPlayLastInfo.<br/>
  24 + * Can be used for QueryBuilder and for referencing column names.
  25 + */
  26 + public static class Properties {
  27 + public final static Property Sid = new Property(0, String.class, "sid", true, "SID");
  28 + public final static Property ActivityId = new Property(1, String.class, "activityId", false, "ACTIVITY_ID");
  29 + public final static Property CmccId = new Property(2, String.class, "cmccId", false, "CMCC_ID");
  30 + public final static Property Aid = new Property(3, String.class, "aid", false, "AID");
  31 + public final static Property Poster = new Property(4, String.class, "poster", false, "POSTER");
  32 + public final static Property ShareUrl = new Property(5, String.class, "shareUrl", false, "SHARE_URL");
  33 + public final static Property ContentId = new Property(6, String.class, "contentId", false, "CONTENT_ID");
  34 + public final static Property Actor = new Property(7, String.class, "actor", false, "ACTOR");
  35 + public final static Property Title = new Property(8, String.class, "title", false, "TITLE");
  36 + public final static Property ChannelName = new Property(9, String.class, "channelName", false, "CHANNEL_NAME");
  37 + public final static Property AlbumName = new Property(10, String.class, "albumName", false, "ALBUM_NAME");
  38 + public final static Property Schedule = new Property(11, Double.class, "schedule", false, "SCHEDULE");
  39 + public final static Property Counts = new Property(12, Integer.class, "counts", false, "COUNTS");
  40 + public final static Property PlayState = new Property(13, Boolean.class, "playState", false, "PLAY_STATE");
  41 + public final static Property ProductId = new Property(14, String.class, "productId", false, "PRODUCT_ID");
  42 + public final static Property ProductType = new Property(15, String.class, "productType", false, "PRODUCT_TYPE");
  43 + public final static Property AProductId = new Property(16, String.class, "aProductId", false, "A_PRODUCT_ID");
  44 + public final static Property AProductType = new Property(17, String.class, "aProductType", false, "A_PRODUCT_TYPE");
  45 + public final static Property IsPayAlbum = new Property(18, Boolean.class, "isPayAlbum", false, "IS_PAY_ALBUM");
  46 + public final static Property IsPayItem = new Property(19, Boolean.class, "isPayItem", false, "IS_PAY_ITEM");
  47 + public final static Property SiteId = new Property(20, String.class, "siteId", false, "SITE_ID");
  48 + }
  49 +
  50 +
  51 + public AudioPlayLastInfoDao(DaoConfig config) {
  52 + super(config);
  53 + }
  54 +
  55 + public AudioPlayLastInfoDao(DaoConfig config, DaoSession daoSession) {
  56 + super(config, daoSession);
  57 + }
  58 +
  59 + /** Creates the underlying database table. */
  60 + public static void createTable(Database db, boolean ifNotExists) {
  61 + String constraint = ifNotExists? "IF NOT EXISTS ": "";
  62 + db.execSQL("CREATE TABLE " + constraint + "\"AUDIO_PLAY_LAST_INFO\" (" + //
  63 + "\"SID\" TEXT PRIMARY KEY NOT NULL ," + // 0: sid
  64 + "\"ACTIVITY_ID\" TEXT," + // 1: activityId
  65 + "\"CMCC_ID\" TEXT," + // 2: cmccId
  66 + "\"AID\" TEXT," + // 3: aid
  67 + "\"POSTER\" TEXT," + // 4: poster
  68 + "\"SHARE_URL\" TEXT," + // 5: shareUrl
  69 + "\"CONTENT_ID\" TEXT," + // 6: contentId
  70 + "\"ACTOR\" TEXT," + // 7: actor
  71 + "\"TITLE\" TEXT," + // 8: title
  72 + "\"CHANNEL_NAME\" TEXT," + // 9: channelName
  73 + "\"ALBUM_NAME\" TEXT," + // 10: albumName
  74 + "\"SCHEDULE\" REAL," + // 11: schedule
  75 + "\"COUNTS\" INTEGER," + // 12: counts
  76 + "\"PLAY_STATE\" INTEGER," + // 13: playState
  77 + "\"PRODUCT_ID\" TEXT," + // 14: productId
  78 + "\"PRODUCT_TYPE\" TEXT," + // 15: productType
  79 + "\"A_PRODUCT_ID\" TEXT," + // 16: aProductId
  80 + "\"A_PRODUCT_TYPE\" TEXT," + // 17: aProductType
  81 + "\"IS_PAY_ALBUM\" INTEGER," + // 18: isPayAlbum
  82 + "\"IS_PAY_ITEM\" INTEGER," + // 19: isPayItem
  83 + "\"SITE_ID\" TEXT);"); // 20: siteId
  84 + }
  85 +
  86 + /** Drops the underlying database table. */
  87 + public static void dropTable(Database db, boolean ifExists) {
  88 + String sql = "DROP TABLE " + (ifExists ? "IF EXISTS " : "") + "\"AUDIO_PLAY_LAST_INFO\"";
  89 + db.execSQL(sql);
  90 + }
  91 +
  92 + @Override
  93 + protected final void bindValues(DatabaseStatement stmt, AudioPlayLastInfo entity) {
  94 + stmt.clearBindings();
  95 + stmt.bindString(1, entity.getSid());
  96 +
  97 + String activityId = entity.getActivityId();
  98 + if (activityId != null) {
  99 + stmt.bindString(2, activityId);
  100 + }
  101 +
  102 + String cmccId = entity.getCmccId();
  103 + if (cmccId != null) {
  104 + stmt.bindString(3, cmccId);
  105 + }
  106 +
  107 + String aid = entity.getAid();
  108 + if (aid != null) {
  109 + stmt.bindString(4, aid);
  110 + }
  111 +
  112 + String poster = entity.getPoster();
  113 + if (poster != null) {
  114 + stmt.bindString(5, poster);
  115 + }
  116 +
  117 + String shareUrl = entity.getShareUrl();
  118 + if (shareUrl != null) {
  119 + stmt.bindString(6, shareUrl);
  120 + }
  121 +
  122 + String contentId = entity.getContentId();
  123 + if (contentId != null) {
  124 + stmt.bindString(7, contentId);
  125 + }
  126 +
  127 + String actor = entity.getActor();
  128 + if (actor != null) {
  129 + stmt.bindString(8, actor);
  130 + }
  131 +
  132 + String title = entity.getTitle();
  133 + if (title != null) {
  134 + stmt.bindString(9, title);
  135 + }
  136 +
  137 + String channelName = entity.getChannelName();
  138 + if (channelName != null) {
  139 + stmt.bindString(10, channelName);
  140 + }
  141 +
  142 + String albumName = entity.getAlbumName();
  143 + if (albumName != null) {
  144 + stmt.bindString(11, albumName);
  145 + }
  146 +
  147 + Double schedule = entity.getSchedule();
  148 + if (schedule != null) {
  149 + stmt.bindDouble(12, schedule);
  150 + }
  151 +
  152 + Integer counts = entity.getCounts();
  153 + if (counts != null) {
  154 + stmt.bindLong(13, counts);
  155 + }
  156 +
  157 + Boolean playState = entity.getPlayState();
  158 + if (playState != null) {
  159 + stmt.bindLong(14, playState ? 1L: 0L);
  160 + }
  161 +
  162 + String productId = entity.getProductId();
  163 + if (productId != null) {
  164 + stmt.bindString(15, productId);
  165 + }
  166 +
  167 + String productType = entity.getProductType();
  168 + if (productType != null) {
  169 + stmt.bindString(16, productType);
  170 + }
  171 +
  172 + String aProductId = entity.getAProductId();
  173 + if (aProductId != null) {
  174 + stmt.bindString(17, aProductId);
  175 + }
  176 +
  177 + String aProductType = entity.getAProductType();
  178 + if (aProductType != null) {
  179 + stmt.bindString(18, aProductType);
  180 + }
  181 +
  182 + Boolean isPayAlbum = entity.getIsPayAlbum();
  183 + if (isPayAlbum != null) {
  184 + stmt.bindLong(19, isPayAlbum ? 1L: 0L);
  185 + }
  186 +
  187 + Boolean isPayItem = entity.getIsPayItem();
  188 + if (isPayItem != null) {
  189 + stmt.bindLong(20, isPayItem ? 1L: 0L);
  190 + }
  191 +
  192 + String siteId = entity.getSiteId();
  193 + if (siteId != null) {
  194 + stmt.bindString(21, siteId);
  195 + }
  196 + }
  197 +
  198 + @Override
  199 + protected final void bindValues(SQLiteStatement stmt, AudioPlayLastInfo entity) {
  200 + stmt.clearBindings();
  201 + stmt.bindString(1, entity.getSid());
  202 +
  203 + String activityId = entity.getActivityId();
  204 + if (activityId != null) {
  205 + stmt.bindString(2, activityId);
  206 + }
  207 +
  208 + String cmccId = entity.getCmccId();
  209 + if (cmccId != null) {
  210 + stmt.bindString(3, cmccId);
  211 + }
  212 +
  213 + String aid = entity.getAid();
  214 + if (aid != null) {
  215 + stmt.bindString(4, aid);
  216 + }
  217 +
  218 + String poster = entity.getPoster();
  219 + if (poster != null) {
  220 + stmt.bindString(5, poster);
  221 + }
  222 +
  223 + String shareUrl = entity.getShareUrl();
  224 + if (shareUrl != null) {
  225 + stmt.bindString(6, shareUrl);
  226 + }
  227 +
  228 + String contentId = entity.getContentId();
  229 + if (contentId != null) {
  230 + stmt.bindString(7, contentId);
  231 + }
  232 +
  233 + String actor = entity.getActor();
  234 + if (actor != null) {
  235 + stmt.bindString(8, actor);
  236 + }
  237 +
  238 + String title = entity.getTitle();
  239 + if (title != null) {
  240 + stmt.bindString(9, title);
  241 + }
  242 +
  243 + String channelName = entity.getChannelName();
  244 + if (channelName != null) {
  245 + stmt.bindString(10, channelName);
  246 + }
  247 +
  248 + String albumName = entity.getAlbumName();
  249 + if (albumName != null) {
  250 + stmt.bindString(11, albumName);
  251 + }
  252 +
  253 + Double schedule = entity.getSchedule();
  254 + if (schedule != null) {
  255 + stmt.bindDouble(12, schedule);
  256 + }
  257 +
  258 + Integer counts = entity.getCounts();
  259 + if (counts != null) {
  260 + stmt.bindLong(13, counts);
  261 + }
  262 +
  263 + Boolean playState = entity.getPlayState();
  264 + if (playState != null) {
  265 + stmt.bindLong(14, playState ? 1L: 0L);
  266 + }
  267 +
  268 + String productId = entity.getProductId();
  269 + if (productId != null) {
  270 + stmt.bindString(15, productId);
  271 + }
  272 +
  273 + String productType = entity.getProductType();
  274 + if (productType != null) {
  275 + stmt.bindString(16, productType);
  276 + }
  277 +
  278 + String aProductId = entity.getAProductId();
  279 + if (aProductId != null) {
  280 + stmt.bindString(17, aProductId);
  281 + }
  282 +
  283 + String aProductType = entity.getAProductType();
  284 + if (aProductType != null) {
  285 + stmt.bindString(18, aProductType);
  286 + }
  287 +
  288 + Boolean isPayAlbum = entity.getIsPayAlbum();
  289 + if (isPayAlbum != null) {
  290 + stmt.bindLong(19, isPayAlbum ? 1L: 0L);
  291 + }
  292 +
  293 + Boolean isPayItem = entity.getIsPayItem();
  294 + if (isPayItem != null) {
  295 + stmt.bindLong(20, isPayItem ? 1L: 0L);
  296 + }
  297 +
  298 + String siteId = entity.getSiteId();
  299 + if (siteId != null) {
  300 + stmt.bindString(21, siteId);
  301 + }
  302 + }
  303 +
  304 + @Override
  305 + public String readKey(Cursor cursor, int offset) {
  306 + return cursor.getString(offset + 0);
  307 + }
  308 +
  309 + @Override
  310 + public AudioPlayLastInfo readEntity(Cursor cursor, int offset) {
  311 + AudioPlayLastInfo entity = new AudioPlayLastInfo( //
  312 + cursor.getString(offset + 0), // sid
  313 + cursor.isNull(offset + 1) ? null : cursor.getString(offset + 1), // activityId
  314 + cursor.isNull(offset + 2) ? null : cursor.getString(offset + 2), // cmccId
  315 + cursor.isNull(offset + 3) ? null : cursor.getString(offset + 3), // aid
  316 + cursor.isNull(offset + 4) ? null : cursor.getString(offset + 4), // poster
  317 + cursor.isNull(offset + 5) ? null : cursor.getString(offset + 5), // shareUrl
  318 + cursor.isNull(offset + 6) ? null : cursor.getString(offset + 6), // contentId
  319 + cursor.isNull(offset + 7) ? null : cursor.getString(offset + 7), // actor
  320 + cursor.isNull(offset + 8) ? null : cursor.getString(offset + 8), // title
  321 + cursor.isNull(offset + 9) ? null : cursor.getString(offset + 9), // channelName
  322 + cursor.isNull(offset + 10) ? null : cursor.getString(offset + 10), // albumName
  323 + cursor.isNull(offset + 11) ? null : cursor.getDouble(offset + 11), // schedule
  324 + cursor.isNull(offset + 12) ? null : cursor.getInt(offset + 12), // counts
  325 + cursor.isNull(offset + 13) ? null : cursor.getShort(offset + 13) != 0, // playState
  326 + cursor.isNull(offset + 14) ? null : cursor.getString(offset + 14), // productId
  327 + cursor.isNull(offset + 15) ? null : cursor.getString(offset + 15), // productType
  328 + cursor.isNull(offset + 16) ? null : cursor.getString(offset + 16), // aProductId
  329 + cursor.isNull(offset + 17) ? null : cursor.getString(offset + 17), // aProductType
  330 + cursor.isNull(offset + 18) ? null : cursor.getShort(offset + 18) != 0, // isPayAlbum
  331 + cursor.isNull(offset + 19) ? null : cursor.getShort(offset + 19) != 0, // isPayItem
  332 + cursor.isNull(offset + 20) ? null : cursor.getString(offset + 20) // siteId
  333 + );
  334 + return entity;
  335 + }
  336 +
  337 + @Override
  338 + public void readEntity(Cursor cursor, AudioPlayLastInfo entity, int offset) {
  339 + entity.setSid(cursor.getString(offset + 0));
  340 + entity.setActivityId(cursor.isNull(offset + 1) ? null : cursor.getString(offset + 1));
  341 + entity.setCmccId(cursor.isNull(offset + 2) ? null : cursor.getString(offset + 2));
  342 + entity.setAid(cursor.isNull(offset + 3) ? null : cursor.getString(offset + 3));
  343 + entity.setPoster(cursor.isNull(offset + 4) ? null : cursor.getString(offset + 4));
  344 + entity.setShareUrl(cursor.isNull(offset + 5) ? null : cursor.getString(offset + 5));
  345 + entity.setContentId(cursor.isNull(offset + 6) ? null : cursor.getString(offset + 6));
  346 + entity.setActor(cursor.isNull(offset + 7) ? null : cursor.getString(offset + 7));
  347 + entity.setTitle(cursor.isNull(offset + 8) ? null : cursor.getString(offset + 8));
  348 + entity.setChannelName(cursor.isNull(offset + 9) ? null : cursor.getString(offset + 9));
  349 + entity.setAlbumName(cursor.isNull(offset + 10) ? null : cursor.getString(offset + 10));
  350 + entity.setSchedule(cursor.isNull(offset + 11) ? null : cursor.getDouble(offset + 11));
  351 + entity.setCounts(cursor.isNull(offset + 12) ? null : cursor.getInt(offset + 12));
  352 + entity.setPlayState(cursor.isNull(offset + 13) ? null : cursor.getShort(offset + 13) != 0);
  353 + entity.setProductId(cursor.isNull(offset + 14) ? null : cursor.getString(offset + 14));
  354 + entity.setProductType(cursor.isNull(offset + 15) ? null : cursor.getString(offset + 15));
  355 + entity.setAProductId(cursor.isNull(offset + 16) ? null : cursor.getString(offset + 16));
  356 + entity.setAProductType(cursor.isNull(offset + 17) ? null : cursor.getString(offset + 17));
  357 + entity.setIsPayAlbum(cursor.isNull(offset + 18) ? null : cursor.getShort(offset + 18) != 0);
  358 + entity.setIsPayItem(cursor.isNull(offset + 19) ? null : cursor.getShort(offset + 19) != 0);
  359 + entity.setSiteId(cursor.isNull(offset + 20) ? null : cursor.getString(offset + 20));
  360 + }
  361 +
  362 + @Override
  363 + protected final String updateKeyAfterInsert(AudioPlayLastInfo entity, long rowId) {
  364 + return entity.getSid();
  365 + }
  366 +
  367 + @Override
  368 + public String getKey(AudioPlayLastInfo entity) {
  369 + if(entity != null) {
  370 + return entity.getSid();
  371 + } else {
  372 + return null;
  373 + }
  374 + }
  375 +
  376 + @Override
  377 + public boolean hasKey(AudioPlayLastInfo entity) {
  378 + throw new UnsupportedOperationException("Unsupported for entities with a non-null key");
  379 + }
  380 +
  381 + @Override
  382 + protected final boolean isEntityUpdateable() {
  383 + return true;
  384 + }
  385 +
  386 +}
core/database/src/main/java/com/cnlive/database/dao/ChatFileMsgDao.java 0 → 100644
  1 +package com.cnlive.database.dao;
  2 +
  3 +import android.database.Cursor;
  4 +import android.database.sqlite.SQLiteStatement;
  5 +
  6 +import org.greenrobot.greendao.AbstractDao;
  7 +import org.greenrobot.greendao.Property;
  8 +import org.greenrobot.greendao.internal.DaoConfig;
  9 +import org.greenrobot.greendao.database.Database;
  10 +import org.greenrobot.greendao.database.DatabaseStatement;
  11 +
  12 +import com.cnlive.database.bean.ChatFileMsg;
  13 +
  14 +// THIS CODE IS GENERATED BY greenDAO, DO NOT EDIT.
  15 +/**
  16 + * DAO for table "CHAT_FILE_MSG".
  17 +*/
  18 +public class ChatFileMsgDao extends AbstractDao<ChatFileMsg, Long> {
  19 +
  20 + public static final String TABLENAME = "CHAT_FILE_MSG";
  21 +
  22 + /**
  23 + * Properties of entity ChatFileMsg.<br/>
  24 + * Can be used for QueryBuilder and for referencing column names.
  25 + */
  26 + public static class Properties {
  27 + public final static Property MsgUniqueId = new Property(0, long.class, "msgUniqueId", true, "_id");
  28 + public final static Property FromUserId = new Property(1, String.class, "fromUserId", false, "FROM_USER_ID");
  29 + public final static Property FromUserNick = new Property(2, String.class, "fromUserNick", false, "FROM_USER_NICK");
  30 + public final static Property FilePath = new Property(3, String.class, "filePath", false, "FILE_PATH");
  31 + public final static Property FileName = new Property(4, String.class, "fileName", false, "FILE_NAME");
  32 + public final static Property FileSize = new Property(5, Long.class, "fileSize", false, "FILE_SIZE");
  33 + public final static Property MsgTime = new Property(6, Long.class, "msgTime", false, "MSG_TIME");
  34 + }
  35 +
  36 +
  37 + public ChatFileMsgDao(DaoConfig config) {
  38 + super(config);
  39 + }
  40 +
  41 + public ChatFileMsgDao(DaoConfig config, DaoSession daoSession) {
  42 + super(config, daoSession);
  43 + }
  44 +
  45 + /** Creates the underlying database table. */
  46 + public static void createTable(Database db, boolean ifNotExists) {
  47 + String constraint = ifNotExists? "IF NOT EXISTS ": "";
  48 + db.execSQL("CREATE TABLE " + constraint + "\"CHAT_FILE_MSG\" (" + //
  49 + "\"_id\" INTEGER PRIMARY KEY NOT NULL ," + // 0: msgUniqueId
  50 + "\"FROM_USER_ID\" TEXT," + // 1: fromUserId
  51 + "\"FROM_USER_NICK\" TEXT," + // 2: fromUserNick
  52 + "\"FILE_PATH\" TEXT," + // 3: filePath
  53 + "\"FILE_NAME\" TEXT," + // 4: fileName
  54 + "\"FILE_SIZE\" INTEGER," + // 5: fileSize
  55 + "\"MSG_TIME\" INTEGER);"); // 6: msgTime
  56 + }
  57 +
  58 + /** Drops the underlying database table. */
  59 + public static void dropTable(Database db, boolean ifExists) {
  60 + String sql = "DROP TABLE " + (ifExists ? "IF EXISTS " : "") + "\"CHAT_FILE_MSG\"";
  61 + db.execSQL(sql);
  62 + }
  63 +
  64 + @Override
  65 + protected final void bindValues(DatabaseStatement stmt, ChatFileMsg entity) {
  66 + stmt.clearBindings();
  67 + stmt.bindLong(1, entity.getMsgUniqueId());
  68 +
  69 + String fromUserId = entity.getFromUserId();
  70 + if (fromUserId != null) {
  71 + stmt.bindString(2, fromUserId);
  72 + }
  73 +
  74 + String fromUserNick = entity.getFromUserNick();
  75 + if (fromUserNick != null) {
  76 + stmt.bindString(3, fromUserNick);
  77 + }
  78 +
  79 + String filePath = entity.getFilePath();
  80 + if (filePath != null) {
  81 + stmt.bindString(4, filePath);
  82 + }
  83 +
  84 + String fileName = entity.getFileName();
  85 + if (fileName != null) {
  86 + stmt.bindString(5, fileName);
  87 + }
  88 +
  89 + Long fileSize = entity.getFileSize();
  90 + if (fileSize != null) {
  91 + stmt.bindLong(6, fileSize);
  92 + }
  93 +
  94 + Long msgTime = entity.getMsgTime();
  95 + if (msgTime != null) {
  96 + stmt.bindLong(7, msgTime);
  97 + }
  98 + }
  99 +
  100 + @Override
  101 + protected final void bindValues(SQLiteStatement stmt, ChatFileMsg entity) {
  102 + stmt.clearBindings();
  103 + stmt.bindLong(1, entity.getMsgUniqueId());
  104 +
  105 + String fromUserId = entity.getFromUserId();
  106 + if (fromUserId != null) {
  107 + stmt.bindString(2, fromUserId);
  108 + }
  109 +
  110 + String fromUserNick = entity.getFromUserNick();
  111 + if (fromUserNick != null) {
  112 + stmt.bindString(3, fromUserNick);
  113 + }
  114 +
  115 + String filePath = entity.getFilePath();
  116 + if (filePath != null) {
  117 + stmt.bindString(4, filePath);
  118 + }
  119 +
  120 + String fileName = entity.getFileName();
  121 + if (fileName != null) {
  122 + stmt.bindString(5, fileName);
  123 + }
  124 +
  125 + Long fileSize = entity.getFileSize();
  126 + if (fileSize != null) {
  127 + stmt.bindLong(6, fileSize);
  128 + }
  129 +
  130 + Long msgTime = entity.getMsgTime();
  131 + if (msgTime != null) {
  132 + stmt.bindLong(7, msgTime);
  133 + }
  134 + }
  135 +
  136 + @Override
  137 + public Long readKey(Cursor cursor, int offset) {
  138 + return cursor.getLong(offset + 0);
  139 + }
  140 +
  141 + @Override
  142 + public ChatFileMsg readEntity(Cursor cursor, int offset) {
  143 + ChatFileMsg entity = new ChatFileMsg( //
  144 + cursor.getLong(offset + 0), // msgUniqueId
  145 + cursor.isNull(offset + 1) ? null : cursor.getString(offset + 1), // fromUserId
  146 + cursor.isNull(offset + 2) ? null : cursor.getString(offset + 2), // fromUserNick
  147 + cursor.isNull(offset + 3) ? null : cursor.getString(offset + 3), // filePath
  148 + cursor.isNull(offset + 4) ? null : cursor.getString(offset + 4), // fileName
  149 + cursor.isNull(offset + 5) ? null : cursor.getLong(offset + 5), // fileSize
  150 + cursor.isNull(offset + 6) ? null : cursor.getLong(offset + 6) // msgTime
  151 + );
  152 + return entity;
  153 + }
  154 +
  155 + @Override
  156 + public void readEntity(Cursor cursor, ChatFileMsg entity, int offset) {
  157 + entity.setMsgUniqueId(cursor.getLong(offset + 0));
  158 + entity.setFromUserId(cursor.isNull(offset + 1) ? null : cursor.getString(offset + 1));
  159 + entity.setFromUserNick(cursor.isNull(offset + 2) ? null : cursor.getString(offset + 2));
  160 + entity.setFilePath(cursor.isNull(offset + 3) ? null : cursor.getString(offset + 3));
  161 + entity.setFileName(cursor.isNull(offset + 4) ? null : cursor.getString(offset + 4));
  162 + entity.setFileSize(cursor.isNull(offset + 5) ? null : cursor.getLong(offset + 5));
  163 + entity.setMsgTime(cursor.isNull(offset + 6) ? null : cursor.getLong(offset + 6));
  164 + }
  165 +
  166 + @Override
  167 + protected final Long updateKeyAfterInsert(ChatFileMsg entity, long rowId) {
  168 + entity.setMsgUniqueId(rowId);
  169 + return rowId;
  170 + }
  171 +
  172 + @Override
  173 + public Long getKey(ChatFileMsg entity) {
  174 + if(entity != null) {
  175 + return entity.getMsgUniqueId();
  176 + } else {
  177 + return null;
  178 + }
  179 + }
  180 +
  181 + @Override
  182 + public boolean hasKey(ChatFileMsg entity) {
  183 + throw new UnsupportedOperationException("Unsupported for entities with a non-null key");
  184 + }
  185 +
  186 + @Override
  187 + protected final boolean isEntityUpdateable() {
  188 + return true;
  189 + }
  190 +
  191 +}