Subversion Repositories SmartDukaan

Rev

Rev 33885 | Blame | Compare with Previous | Last modification | View Log | RSS feed

package com.spice.profitmandi.dao.model;

import com.spice.profitmandi.dao.enumuration.dtr.ServiceType;

public class WodFinMappingModel {

    private Integer id;
    private String code;
    private String outletName;
    private String city;
    private String brandName;
    private String dmsCode;
    private String serviceName;
    private Boolean active;
    private ServiceType serviceType;

    public WodFinMappingModel() {
    }

    public WodFinMappingModel(Integer id, String code, String outletName, String city, String brandName, String dmsCode, String serviceName, String serviceType, Boolean active) {
        super();
        this.id = id;
        this.code = code;
        this.outletName = outletName;
        this.city = city;
        this.brandName = brandName;


        if (dmsCode == null || dmsCode.isEmpty())
            this.dmsCode = "";
        else
            this.dmsCode = dmsCode;

        this.serviceName = serviceName;
        if (serviceType == null) {
            this.serviceType = null;
        } else {
            this.serviceType = ServiceType.valueOf(serviceType);
        }
        this.active = active;

    }


    public Integer getId() {
        return id;
    }

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


    public String getCode() {
        return code;
    }

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

    public String getOutletName() {
        return outletName;
    }

    public void setOutletName(String outletName) {
        this.outletName = outletName;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getBrandName() {
        return brandName;
    }

    public void setBrandName(String brandName) {
        this.brandName = brandName;
    }

    public String getDmsCode() {
        return dmsCode;
    }

    public void setDmsCode(String dmsCode) {
        this.dmsCode = dmsCode;
    }

    public String getServiceName() {
        return serviceName;
    }

    public void setServiceName(String serviceName) {
        this.serviceName = serviceName;
    }

    public Boolean getActive() {
        return active;
    }

    public void setActive(Boolean active) {
        this.active = active;
    }

    public ServiceType getServiceType() {
        return serviceType;
    }

    public void setServiceType(ServiceType serviceType) {
        this.serviceType = serviceType;
    }

    @Override
    public String toString() {
        return "WodFinMappingModel{" +
                "id=" + id +
                ", code='" + code + '\'' +
                ", outletName='" + outletName + '\'' +
                ", city='" + city + '\'' +
                ", brandName='" + brandName + '\'' +
                ", dmsCode='" + dmsCode + '\'' +
                ", serviceName='" + serviceName + '\'' +
                ", active=" + active +
                ", serviceType=" + serviceType +
                '}';
    }
}