| | |
| | | * 电站详情实体类 |
| | | */ |
| | | public class HouseInfoBean extends HouseIdBean { |
| | | private Location location;//电站地址 |
| | | private String address;//详细地址 |
| | | |
| | | private String latitude;//纬度 |
| | | private String longitude;//经度 |
| | | private String timezone;//时区 |
| | |
| | | |
| | | private String zoneType;//区域 |
| | | |
| | | |
| | | public Location getLocation() { |
| | | return location == null ? new Location() : location; |
| | | } |
| | | |
| | | public void setLocation(Location location) { |
| | | this.location = location; |
| | | } |
| | | |
| | | public String getAddress() { |
| | | return address == null ? "" : address; |
| | | } |
| | | |
| | | public void setAddress(String address) { |
| | | this.address = address; |
| | | } |
| | | |
| | | public String getLatitude() { |
| | | return latitude == null ? "" : latitude; |
| | |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 拼住宅地址 |
| | | * |
| | | * @return 住宅地址 |
| | | */ |
| | | public String getHomeAddress() { |
| | | if (this.location == null) { |
| | | return this.address; |
| | | } |
| | | return this.location.nationName + this.location.provinceName + this.location.cityName + this.address; |
| | | } |
| | | |
| | | } |