| | |
| | | package com.application.zhangshi_app_android.bean; |
| | | |
| | | import androidx.databinding.BaseObservable; |
| | | import androidx.databinding.Bindable; |
| | | |
| | | import java.io.Serializable; |
| | | |
| | | /** |
| | |
| | | public class CleanStorageBean implements Serializable { |
| | | //序号 |
| | | private int id; |
| | | //类型 |
| | | private String type; |
| | | //类型 0.保洁 1.收纳 |
| | | private int kind; |
| | | //适用人 |
| | | private String suitablePeople; |
| | | private String suitable; |
| | | //类别 |
| | | private String category; |
| | | private String type; |
| | | //保洁方法 |
| | | private String cleanMethod; |
| | | private String method; |
| | | //材料存放地 |
| | | private String materialStorageLocation; |
| | | private String place; |
| | | //放置地点 |
| | | private String placementLocation; |
| | | private String location; |
| | | //备注 |
| | | private String remark; |
| | | private String url; |
| | | //家庭id |
| | | private transient String familyId; |
| | | //创建时间 |
| | | private String createTime; |
| | | //发生时间 |
| | | private String happenTime; |
| | | |
| | | public CleanStorageBean(int id, String type, String suitablePeople, String category, String cleanMethod, String materialStorageLocation, String placementLocation, String remark, String url) { |
| | | this.id = id; |
| | | this.type = type; |
| | | this.suitablePeople = suitablePeople; |
| | | this.category = category; |
| | | this.cleanMethod = cleanMethod; |
| | | this.materialStorageLocation = materialStorageLocation; |
| | | this.placementLocation = placementLocation; |
| | | this.remark = remark; |
| | | this.url = url; |
| | | } |
| | | private int ownData = 1;//是否是自己家庭的数据 1 是 0 不是 |
| | | |
| | | public int getId() { |
| | | return id; |
| | |
| | | |
| | | public void setId(int id) { |
| | | this.id = id; |
| | | } |
| | | |
| | | |
| | | public void setKind(String kind) { |
| | | if (kind.equals("收纳")) { |
| | | this.kind = 1; |
| | | } else{ |
| | | this.kind = 0; |
| | | } |
| | | } |
| | | public String getKind() { |
| | | if (kind == 1) { |
| | | return "收纳"; |
| | | } else { |
| | | return "保洁"; |
| | | } |
| | | } |
| | | |
| | | public String getSuitable() { |
| | | return suitable; |
| | | } |
| | | |
| | | public void setSuitable(String suitable) { |
| | | this.suitable = suitable; |
| | | } |
| | | |
| | | public String getType() { |
| | |
| | | this.type = type; |
| | | } |
| | | |
| | | public String getSuitablePeople() { |
| | | return suitablePeople; |
| | | public String getMethod() { |
| | | return method; |
| | | } |
| | | |
| | | public void setSuitablePeople(String suitablePeople) { |
| | | this.suitablePeople = suitablePeople; |
| | | public void setMethod(String method) { |
| | | this.method = method; |
| | | } |
| | | |
| | | public String getCategory() { |
| | | return category; |
| | | public String getPlace() { |
| | | return place; |
| | | } |
| | | |
| | | public void setCategory(String category) { |
| | | this.category = category; |
| | | public void setPlace(String place) { |
| | | this.place = place; |
| | | } |
| | | |
| | | public String getCleanMethod() { |
| | | return cleanMethod; |
| | | public String getLocation() { |
| | | return location; |
| | | } |
| | | |
| | | public void setCleanMethod(String cleanMethod) { |
| | | this.cleanMethod = cleanMethod; |
| | | } |
| | | |
| | | public String getMaterialStorageLocation() { |
| | | return materialStorageLocation; |
| | | } |
| | | |
| | | public void setMaterialStorageLocation(String materialStorageLocation) { |
| | | this.materialStorageLocation = materialStorageLocation; |
| | | } |
| | | |
| | | public String getPlacementLocation() { |
| | | return placementLocation; |
| | | } |
| | | |
| | | public void setPlacementLocation(String placementLocation) { |
| | | this.placementLocation = placementLocation; |
| | | public void setLocation(String location) { |
| | | this.location = location; |
| | | } |
| | | |
| | | public String getRemark() { |
| | |
| | | public void setUrl(String url) { |
| | | this.url = url; |
| | | } |
| | | |
| | | public String getFamilyId() { |
| | | return familyId; |
| | | } |
| | | |
| | | public void setFamilyId(String familyId) { |
| | | this.familyId = familyId; |
| | | } |
| | | |
| | | public String getCreateTime() { |
| | | return createTime; |
| | | } |
| | | |
| | | public void setCreateTime(String createTime) { |
| | | this.createTime = createTime; |
| | | } |
| | | |
| | | public void setKind(int kind) { |
| | | this.kind = kind; |
| | | } |
| | | |
| | | public int getOwnData() { |
| | | return ownData; |
| | | } |
| | | |
| | | public void setOwnData(int ownData) { |
| | | this.ownData = ownData; |
| | | } |
| | | |
| | | public String getHappenTime() { |
| | | return happenTime; |
| | | } |
| | | |
| | | public void setHappenTime(String happenTime) { |
| | | this.happenTime = happenTime; |
| | | } |
| | | } |