package tkio.model;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Transient;
import java.util.Date;
import java.util.HashMap;

@Entity
public class Crowd {
    private Long id;
    private Boolean hobbyLabel;
    private Boolean payLabel;
    private Boolean weights;
    private String dataRange;
    private String iosAppkey;
    private String androidAppKey;
    private Long rootAccount;
    private Integer status;
    private Date createTime;
    private String iosAppName;
    private String androidAppName;
    private Integer payment;
    private Long applyAccount;

    private HashMap<String, Object> map;
    private Long deviceid_cnt;
    private Double price;
    private Double total;

    private String contractCode;

    @Id
    @GeneratedValue
    public Long getId() {
        return id;
    }

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

    public Boolean getHobbyLabel() {
        return hobbyLabel;
    }

    public void setHobbyLabel(Boolean hobbyLabel) {
        this.hobbyLabel = hobbyLabel;
    }

    public Boolean getPayLabel() {
        return payLabel;
    }

    public void setPayLabel(Boolean payLabel) {
        this.payLabel = payLabel;
    }

    public Boolean getWeights() {
        return weights;
    }

    public void setWeights(Boolean weights) {
        this.weights = weights;
    }

    public String getDataRange() {
        return dataRange;
    }

    public void setDataRange(String dataRange) {
        this.dataRange = dataRange;
    }

    public String getIosAppkey() {
        return iosAppkey;
    }

    public void setIosAppkey(String iosAppkey) {
        this.iosAppkey = iosAppkey;
    }

    public String getAndroidAppKey() {
        return androidAppKey;
    }

    public void setAndroidAppKey(String androidAppKey) {
        this.androidAppKey = androidAppKey;
    }

    public Long getRootAccount() {
        return rootAccount;
    }

    public void setRootAccount(Long rootAccount) {
        this.rootAccount = rootAccount;
    }

    public Long getApplyAccount() {
        return applyAccount;
    }

    public void setApplyAccount(Long applyAccount) {
        this.applyAccount = applyAccount;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getIosAppName() {
        return iosAppName;
    }

    public void setIosAppName(String iosAppName) {
        this.iosAppName = iosAppName;
    }

    public String getAndroidAppName() {
        return androidAppName;
    }

    public void setAndroidAppName(String androidAppName) {
        this.androidAppName = androidAppName;
    }

    public Integer getPayment() {
        return payment;
    }

    public void setPayment(Integer payment) {
        this.payment = payment;
    }

    @Transient
    public HashMap<String, Object> getMap() {
        return map;
    }

    public void setMap(HashMap<String, Object> map) {
        this.map = map;
    }

    @Transient
    public Long getDeviceid_cnt() {
        return deviceid_cnt;
    }

    public void setDeviceid_cnt(Long deviceid_cnt) {
        this.deviceid_cnt = deviceid_cnt;
    }

    @Transient
    public Double getPrice() {
        return price;
    }

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

    @Transient
    public Double getTotal() {
        return total;
    }

    public void setTotal(Double total) {
        this.total = total;
    }

    public String getContractCode() {
        return contractCode;
    }

    public void setContractCode(String contractCode) {
        this.contractCode = contractCode;
    }
}
