package com.rv.home.rv.module.ui.main.home.bean;

import com.base.utils.ui.datetime.selector.util.TextUtil;
import com.ruiwenliu.wrapper.base.BaseBean;

import java.io.Serializable;
import java.util.List;

public class HomeHotGoodListBean extends BaseBean {

    private List<DataBean> data;
    private int code;

    public List<DataBean> getData() {
        return data;
    }

    public void setData(List<DataBean> data) {
        this.data = data;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public static class DataBean implements Serializable {
        private String id;// 1,
        private String name;// ": "38 顺德逢简水乡2日游1",
        private String imgUrl;// ": "https://xxtest.upyuns.com/image/admin/2019-06-17/39.png",
        private String name1;// ": "上海游2|东莞游|惠州游",
        private String price;// ": "88.00"
        private String longitude;//": 116.308479,--->经度
        private String latitude;//": 39.983171---->纬度

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getImgUrl() {
            return imgUrl;
        }

        public void setImgUrl(String imgUrl) {
            this.imgUrl = imgUrl;
        }

        public String getIcon() {
            String icon = "";
            if (!TextUtil.isEmpty(imgUrl)) {
                String[] icons = imgUrl.split(",");
                if (icons != null && icons.length > 0) {
                    icon = icons[0];
                } else {
                    icon = imgUrl;
                }
            }
            return icon;
        }

        public String getName1() {
            return name1;
        }

        public void setName1(String name1) {
            this.name1 = name1;
        }

        public String getPrice() {
            return price;
        }

        public void setPrice(String price) {
            this.price = price;
        }

        public String getLongitude() {
            return longitude;
        }

        public void setLongitude(String longitude) {
            this.longitude = longitude;
        }

        public String getLatitude() {
            return latitude;
        }

        public void setLatitude(String latitude) {
            this.latitude = latitude;
        }
    }
}
