Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
33845 tejus.loha 1
package com.spice.profitmandi.dao.model;
2
 
3
import com.spice.profitmandi.dao.enumuration.dtr.ServiceType;
4
 
5
public class WodFinMappingModel {
6
 
7
    private Integer id;
8
    private String code;
9
    private String outletName;
10
    private String city;
11
    private String brandName;
12
    private String dmsCode;
13
    private String serviceName;
14
    private Boolean active;
15
    private ServiceType serviceType;
16
 
17
    public WodFinMappingModel() {
18
    }
19
 
33887 tejus.loha 20
    public WodFinMappingModel(Integer id, String code, String outletName, String city, String brandName, String dmsCode, String serviceName, String serviceType, Boolean active) {
33845 tejus.loha 21
        super();
22
        this.id = id;
23
        this.code = code;
24
        this.outletName = outletName;
25
        this.city = city;
26
        this.brandName = brandName;
27
 
33887 tejus.loha 28
 
33845 tejus.loha 29
        if (dmsCode == null || dmsCode.isEmpty())
30
            this.dmsCode = "";
31
        else
32
            this.dmsCode = dmsCode;
33
 
34
        this.serviceName = serviceName;
35
        if (serviceType == null) {
36
            this.serviceType = null;
37
        } else {
38
            this.serviceType = ServiceType.valueOf(serviceType);
39
        }
40
        this.active = active;
41
 
42
    }
43
 
33885 tejus.loha 44
 
33845 tejus.loha 45
    public Integer getId() {
46
        return id;
47
    }
48
 
49
    public void setId(Integer id) {
50
        this.id = id;
51
    }
52
 
53
 
54
    public String getCode() {
55
        return code;
56
    }
57
 
58
    public void setCode(String code) {
59
        this.code = code;
60
    }
61
 
62
    public String getOutletName() {
63
        return outletName;
64
    }
65
 
66
    public void setOutletName(String outletName) {
67
        this.outletName = outletName;
68
    }
69
 
70
    public String getCity() {
71
        return city;
72
    }
73
 
74
    public void setCity(String city) {
75
        this.city = city;
76
    }
77
 
78
    public String getBrandName() {
79
        return brandName;
80
    }
81
 
82
    public void setBrandName(String brandName) {
83
        this.brandName = brandName;
84
    }
85
 
86
    public String getDmsCode() {
87
        return dmsCode;
88
    }
89
 
90
    public void setDmsCode(String dmsCode) {
91
        this.dmsCode = dmsCode;
92
    }
93
 
94
    public String getServiceName() {
95
        return serviceName;
96
    }
97
 
98
    public void setServiceName(String serviceName) {
99
        this.serviceName = serviceName;
100
    }
101
 
102
    public Boolean getActive() {
103
        return active;
104
    }
105
 
106
    public void setActive(Boolean active) {
107
        this.active = active;
108
    }
109
 
110
    public ServiceType getServiceType() {
111
        return serviceType;
112
    }
113
 
114
    public void setServiceType(ServiceType serviceType) {
115
        this.serviceType = serviceType;
116
    }
117
 
118
    @Override
119
    public String toString() {
33885 tejus.loha 120
        return "WodFinMappingModel{" +
121
                "id=" + id +
122
                ", code='" + code + '\'' +
33845 tejus.loha 123
                ", outletName='" + outletName + '\'' +
124
                ", city='" + city + '\'' +
125
                ", brandName='" + brandName + '\'' +
126
                ", dmsCode='" + dmsCode + '\'' +
127
                ", serviceName='" + serviceName + '\'' +
33885 tejus.loha 128
                ", active=" + active +
129
                ", serviceType=" + serviceType +
33845 tejus.loha 130
                '}';
131
    }
132
}