Subversion Repositories SmartDukaan

Rev

Rev 33845 | Go to most recent revision | 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;
33885 tejus.loha 12
    private Boolean brandActive;
33845 tejus.loha 13
    private String dmsCode;
14
    private String serviceName;
15
    private Boolean active;
16
    private ServiceType serviceType;
17
 
18
    public WodFinMappingModel() {
19
    }
20
 
33885 tejus.loha 21
    public WodFinMappingModel(Integer id, String code, String outletName, String city, String brandName, Boolean brandActive, String dmsCode, String serviceName, String serviceType, Boolean active) {
33845 tejus.loha 22
        super();
23
        this.id = id;
24
        this.code = code;
25
        this.outletName = outletName;
26
        this.city = city;
27
        this.brandName = brandName;
33885 tejus.loha 28
        this.brandActive = brandActive;
33845 tejus.loha 29
 
30
        if (dmsCode == null || dmsCode.isEmpty())
31
            this.dmsCode = "";
32
        else
33
            this.dmsCode = dmsCode;
34
 
35
        this.serviceName = serviceName;
36
        if (serviceType == null) {
37
            this.serviceType = null;
38
        } else {
39
            this.serviceType = ServiceType.valueOf(serviceType);
40
        }
41
        this.active = active;
42
 
43
    }
44
 
33885 tejus.loha 45
    public Boolean getBrandActive() {
46
        return brandActive;
47
    }
48
 
49
    public void setBrandActive(Boolean brandActive) {
50
        this.brandActive = brandActive;
51
    }
52
 
33845 tejus.loha 53
    public Integer getId() {
54
        return id;
55
    }
56
 
57
    public void setId(Integer id) {
58
        this.id = id;
59
    }
60
 
61
 
62
    public String getCode() {
63
        return code;
64
    }
65
 
66
    public void setCode(String code) {
67
        this.code = code;
68
    }
69
 
70
    public String getOutletName() {
71
        return outletName;
72
    }
73
 
74
    public void setOutletName(String outletName) {
75
        this.outletName = outletName;
76
    }
77
 
78
    public String getCity() {
79
        return city;
80
    }
81
 
82
    public void setCity(String city) {
83
        this.city = city;
84
    }
85
 
86
    public String getBrandName() {
87
        return brandName;
88
    }
89
 
90
    public void setBrandName(String brandName) {
91
        this.brandName = brandName;
92
    }
93
 
94
    public String getDmsCode() {
95
        return dmsCode;
96
    }
97
 
98
    public void setDmsCode(String dmsCode) {
99
        this.dmsCode = dmsCode;
100
    }
101
 
102
    public String getServiceName() {
103
        return serviceName;
104
    }
105
 
106
    public void setServiceName(String serviceName) {
107
        this.serviceName = serviceName;
108
    }
109
 
110
    public Boolean getActive() {
111
        return active;
112
    }
113
 
114
    public void setActive(Boolean active) {
115
        this.active = active;
116
    }
117
 
118
    public ServiceType getServiceType() {
119
        return serviceType;
120
    }
121
 
122
    public void setServiceType(ServiceType serviceType) {
123
        this.serviceType = serviceType;
124
    }
125
 
126
    @Override
127
    public String toString() {
33885 tejus.loha 128
        return "WodFinMappingModel{" +
129
                "id=" + id +
130
                ", code='" + code + '\'' +
33845 tejus.loha 131
                ", outletName='" + outletName + '\'' +
132
                ", city='" + city + '\'' +
133
                ", brandName='" + brandName + '\'' +
33885 tejus.loha 134
                ", brandActive=" + brandActive +
33845 tejus.loha 135
                ", dmsCode='" + dmsCode + '\'' +
136
                ", serviceName='" + serviceName + '\'' +
33885 tejus.loha 137
                ", active=" + active +
138
                ", serviceType=" + serviceType +
33845 tejus.loha 139
                '}';
140
    }
141
}