PaperPageItemBean.java
3.53 KB
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
package com.wd.foundation.bean.paper;
import java.util.List;
/**
* @Description: 电子报图上每份详情解析类
* @Author: liyub
* @Email: liyubing@wondertek.com.cn
* @CreateDate: 2023/7/12
* @UpdateRemark: 更新说明
* @Version: 1.0
*/
public class PaperPageItemBean {
/**
* 位置
*/
private String points;
/**
* 标题
*/
private String title;
/**
* 新闻肩标题
*/
private String shortTitle;
/**
* 副标题
*/
private String downTitle;
/**
* 新闻正文内容
*/
private String newsTxt;
/**
* 内容id
*/
private String newsId;
/**
* 【仅视频、图文】 1:点播,2:直播,3:活动,4:广告,5:专题,6:链接,7:榜单,8:图文,9:组图,10:H5新闻,11:频道,12:组件,13:音频,14动态图文,15动态视频
*/
private int newsType;
/**
* 关系id
*/
private String relId;
/**
* 关系对象id;频道id
*/
private String relObjectId;
/**
* 关系类型
*/
private String relType;
/**
* 图片
*/
private List<String> image;
/**
* 图片宽
*/
private int imageWidth;
/**
* 图片高度
*/
private int imageHeight;
public String getPoints() {
return points;
}
public void setPoints(String points) {
this.points = points;
}
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public List<String> getImage() {
return image;
}
public void setImage(List<String> image) {
this.image = image;
}
public String getNewsId() {
return newsId;
}
public void setNewsId(String newsId) {
this.newsId = newsId;
}
public void setNewsType(int newsType) {
this.newsType = newsType;
}
public int getNewsType() {
return newsType;
}
public String getRelId() {
return relId;
}
public void setRelId(String relId) {
this.relId = relId;
}
public String getRelObjectId() {
return relObjectId;
}
public void setRelObjectId(String relObjectId) {
this.relObjectId = relObjectId;
}
public String getRelType() {
return relType;
}
public void setRelType(String relType) {
this.relType = relType;
}
public int getImageWidth() {
return imageWidth;
}
public void setImageWidth(int imageWidth) {
this.imageWidth = imageWidth;
}
public int getImageHeight() {
return imageHeight;
}
public void setImageHeight(int imageHeight) {
this.imageHeight = imageHeight;
}
public String getShortTitle() {
return shortTitle;
}
public void setShortTitle(String shortTitle) {
this.shortTitle = shortTitle;
}
public String getDownTitle() {
return downTitle;
}
public void setDownTitle(String downTitle) {
this.downTitle = downTitle;
}
public String getNewsTxt() {
return newsTxt;
}
public void setNewsTxt(String newsTxt) {
this.newsTxt = newsTxt;
}
public boolean hasImage() {
return !(getImage() == null || getImage().size() == 0) && (getImageWidth() > 0 && getImageHeight() > 0);
}
public boolean imageSizeLegal(int imageDisplayWidth, int maxHeight) {
return (imageDisplayWidth * getImageHeight() / getImageWidth()) <= maxHeight;
}
}