|
|
@@ -3,6 +3,8 @@
|
|
|
*/
|
|
|
package kr.co.zumo.app.lifeplus.bean;
|
|
|
|
|
|
+import kr.co.zumo.app.lifeplus.bean.api.LifeplusContentsBean;
|
|
|
+
|
|
|
/**
|
|
|
* ContentsBean
|
|
|
* <pre>
|
|
|
@@ -15,76 +17,89 @@ package kr.co.zumo.app.lifeplus.bean;
|
|
|
*/
|
|
|
public class ContentsBean extends JsonBeanBase {
|
|
|
|
|
|
- private String categoryNumber;
|
|
|
- private String itemNumber;
|
|
|
- private String itemImageNumber;
|
|
|
- private String title;
|
|
|
- private String subTitle;
|
|
|
- private String imageName;
|
|
|
- private String imageUrl;
|
|
|
- private String contentUrl;
|
|
|
+ //final private String itemImageNumber;
|
|
|
+ final private String title;
|
|
|
+ final private String categoryNumber;
|
|
|
+ final private String itemNumber;
|
|
|
+ final private String subTitle;
|
|
|
+ final private String imageName;
|
|
|
+ final private String imageUrl;
|
|
|
+ final private String contentUrl;
|
|
|
+
|
|
|
+ private ContentsBean(Builder builder) {
|
|
|
+ title = builder.title;
|
|
|
+ categoryNumber = builder.categoryNumber;
|
|
|
+ itemNumber = builder.itemNumber;
|
|
|
+ subTitle = builder.subTitle;
|
|
|
+ imageName = builder.imageName;
|
|
|
+ imageUrl = builder.imageUrl;
|
|
|
+ contentUrl = builder.contentUrl;
|
|
|
+ }
|
|
|
|
|
|
public String getCategoryNumber() {
|
|
|
return categoryNumber;
|
|
|
}
|
|
|
|
|
|
- public void setCategoryNumber(String categoryNumber) {
|
|
|
- this.categoryNumber = categoryNumber;
|
|
|
- }
|
|
|
|
|
|
public String getItemNumber() {
|
|
|
return itemNumber;
|
|
|
}
|
|
|
|
|
|
- public void setItemNumber(String itemNumber) {
|
|
|
- this.itemNumber = itemNumber;
|
|
|
- }
|
|
|
|
|
|
- public String getItemImageNumber() {
|
|
|
- return itemImageNumber;
|
|
|
- }
|
|
|
-
|
|
|
- public void setItemImageNumber(String itemImageNumber) {
|
|
|
- this.itemImageNumber = itemImageNumber;
|
|
|
- }
|
|
|
+// public String getItemImageNumber() {
|
|
|
+// return itemImageNumber;
|
|
|
+// }
|
|
|
|
|
|
public String getTitle() {
|
|
|
return title;
|
|
|
}
|
|
|
|
|
|
- public void setTitle(String title) {
|
|
|
- this.title = title;
|
|
|
- }
|
|
|
|
|
|
public String getSubTitle() {
|
|
|
return subTitle;
|
|
|
}
|
|
|
|
|
|
- public void setSubTitle(String subTitle) {
|
|
|
- this.subTitle = subTitle;
|
|
|
- }
|
|
|
|
|
|
public String getImageName() {
|
|
|
return imageName;
|
|
|
}
|
|
|
|
|
|
- public void setImageName(String imageName) {
|
|
|
- this.imageName = imageName;
|
|
|
- }
|
|
|
|
|
|
public String getImageUrl() {
|
|
|
return imageUrl;
|
|
|
}
|
|
|
|
|
|
- public void setImageUrl(String imageUrl) {
|
|
|
- this.imageUrl = imageUrl;
|
|
|
- }
|
|
|
|
|
|
public String getContentUrl() {
|
|
|
return contentUrl;
|
|
|
}
|
|
|
|
|
|
- public void setContentUrl(String contentUrl) {
|
|
|
- this.contentUrl = contentUrl;
|
|
|
+ /**
|
|
|
+ * Builder
|
|
|
+ */
|
|
|
+ public static class Builder {
|
|
|
+ private String categoryNumber;
|
|
|
+ private String itemNumber;
|
|
|
+ // private String itemImageNumber;
|
|
|
+ private String title;
|
|
|
+ private String subTitle;
|
|
|
+ private String imageName;
|
|
|
+ private String imageUrl;
|
|
|
+ private String contentUrl;
|
|
|
+
|
|
|
+ public Builder(LifeplusContentsBean lifeplusContentsBean, String categoryNumber) {
|
|
|
+ this.categoryNumber = categoryNumber;
|
|
|
+ this.itemNumber = lifeplusContentsBean.getItemNumber();
|
|
|
+// this.itemImageNumber = lifeplusContentsBean.
|
|
|
+ this.title = lifeplusContentsBean.getTitle();
|
|
|
+ this.subTitle = lifeplusContentsBean.getSubTitle();
|
|
|
+ this.imageName = lifeplusContentsBean.getImageName();
|
|
|
+ this.imageUrl = lifeplusContentsBean.getImageUrl();
|
|
|
+ this.contentUrl = lifeplusContentsBean.getContentsUrl();
|
|
|
+ }
|
|
|
+
|
|
|
+ public ContentsBean build() {
|
|
|
+ return new ContentsBean(this);
|
|
|
+ }
|
|
|
}
|
|
|
}
|