177 lines
2.9 KiB
Plaintext
177 lines
2.9 KiB
Plaintext
|
package com.novelbook.android.bean;
|
||
|
|
||
|
import com.novelbook.android.db.Novel;
|
||
|
|
||
|
public class FirstPage {
|
||
|
private Banner[] banners;
|
||
|
private Block[] blocks;
|
||
|
private CateButton[] cateButtons;
|
||
|
|
||
|
public Banner[] getBanners() {
|
||
|
return banners;
|
||
|
}
|
||
|
|
||
|
public void setBanners(Banner[] banners) {
|
||
|
this.banners = banners;
|
||
|
}
|
||
|
|
||
|
public Block[] getBlocks() {
|
||
|
return blocks;
|
||
|
}
|
||
|
|
||
|
public void setBlocks(Block[] blocks) {
|
||
|
this.blocks = blocks;
|
||
|
}
|
||
|
|
||
|
public CateButton[] getCateButtons() {
|
||
|
return cateButtons;
|
||
|
}
|
||
|
|
||
|
public void setCateButtons(CateButton[] cateButtons) {
|
||
|
this.cateButtons = cateButtons;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* 分类按钮
|
||
|
*/
|
||
|
class CateButton{
|
||
|
//上方显示的图标
|
||
|
private String icon;
|
||
|
//下方文字
|
||
|
private String title;
|
||
|
//分类关键字
|
||
|
private String key;
|
||
|
|
||
|
public String getIcon() {
|
||
|
return icon;
|
||
|
}
|
||
|
|
||
|
public void setIcon(String icon) {
|
||
|
this.icon = icon;
|
||
|
}
|
||
|
|
||
|
public String getTitle() {
|
||
|
return title;
|
||
|
}
|
||
|
|
||
|
public void setTitle(String title) {
|
||
|
this.title = title;
|
||
|
}
|
||
|
|
||
|
public String getKey() {
|
||
|
return key;
|
||
|
}
|
||
|
|
||
|
public void setKey(String key) {
|
||
|
this.key = key;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
*首页大类别
|
||
|
*/
|
||
|
class Block{
|
||
|
private String title;
|
||
|
private String icon;
|
||
|
private SubBlock[] subBlocks;
|
||
|
private String key;
|
||
|
|
||
|
public String getKey() {
|
||
|
return key;
|
||
|
}
|
||
|
|
||
|
public void setKey(String key) {
|
||
|
this.key = key;
|
||
|
}
|
||
|
|
||
|
public String getTitle() {
|
||
|
return title;
|
||
|
}
|
||
|
|
||
|
public void setTitle(String title) {
|
||
|
this.title = title;
|
||
|
}
|
||
|
|
||
|
public String getIcon() {
|
||
|
return icon;
|
||
|
}
|
||
|
|
||
|
public void setIcon(String icon) {
|
||
|
this.icon = icon;
|
||
|
}
|
||
|
|
||
|
public SubBlock[] getSubBlocks() {
|
||
|
return subBlocks;
|
||
|
}
|
||
|
|
||
|
public void setSubBlocks(SubBlock[] subBlocks) {
|
||
|
this.subBlocks = subBlocks;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* 子类别
|
||
|
*/
|
||
|
class SubBlock{
|
||
|
int displayModel;
|
||
|
Novel[] nvs;
|
||
|
|
||
|
public int getDisplayModel() {
|
||
|
return displayModel;
|
||
|
}
|
||
|
|
||
|
public void setDisplayModel(int displayModel) {
|
||
|
this.displayModel = displayModel;
|
||
|
}
|
||
|
|
||
|
public Novel[] getNvs() {
|
||
|
return nvs;
|
||
|
}
|
||
|
|
||
|
public void setNvs(Novel[] nvs) {
|
||
|
this.nvs = nvs;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* banner
|
||
|
*/
|
||
|
class Banner{
|
||
|
private String txt;
|
||
|
private String imgUrl;
|
||
|
private String target;
|
||
|
private int type;
|
||
|
|
||
|
public String getTxt() {
|
||
|
return txt;
|
||
|
}
|
||
|
|
||
|
public void setTxt(String txt) {
|
||
|
this.txt = txt;
|
||
|
}
|
||
|
|
||
|
public String getImgUrl() {
|
||
|
return imgUrl;
|
||
|
}
|
||
|
|
||
|
public void setImgUrl(String imgUrl) {
|
||
|
this.imgUrl = imgUrl;
|
||
|
}
|
||
|
|
||
|
public String getTarget() {
|
||
|
return target;
|
||
|
}
|
||
|
|
||
|
public void setTarget(String target) {
|
||
|
this.target = target;
|
||
|
}
|
||
|
|
||
|
public int getType() {
|
||
|
return type;
|
||
|
}
|
||
|
|
||
|
public void setType(int type) {
|
||
|
this.type = type;
|
||
|
}
|
||
|
}
|