-
Notifications
You must be signed in to change notification settings - Fork 19
/
NewsBean.java
68 lines (55 loc) · 1.44 KB
/
NewsBean.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
package com.example.qingchen.vrmr.DataBase;
import android.arch.persistence.room.Entity;
import android.arch.persistence.room.PrimaryKey;
import android.support.annotation.NonNull;
/**
* @author qingchen
* @date 17-11-10
*/
@Entity(primaryKeys = {"ctime","picUrl"})
public class NewsBean {
/**
* ctime : 2017-06-06 16:00
* title : 模式思考:为什么星巴克成了印钞机?
* description : 创业新闻
* picUrl : http://pic.chinaz.com/thumb/2017/0606/2017060614515724.jpg
* url : http://www.chinaz.com/start/2017/0606/720004.shtml
*/
@NonNull
private String ctime;
private String title;
private String description;
@NonNull
private String picUrl;
private String url;
public String getCtime() {
return ctime;
}
public void setCtime(@NonNull String ctime) {
this.ctime = ctime;
}
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public String getPicUrl() {
return picUrl;
}
public void setPicUrl(@NonNull String picUrl) {
this.picUrl = picUrl;
}
public String getUrl() {
return url;
}
public void setUrl(String url) {
this.url = url;
}
}