Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
28582 amit.gupta 1
package com.spice.profitmandi.web.controller;
2
 
3
import com.fasterxml.jackson.annotation.JsonProperty;
4
import com.spice.profitmandi.dao.entity.fofo.Customer;
5
 
6
class CustomerModel {
7
 
8
	@JsonProperty(required = false)
9
	private Customer customer;
10
	@JsonProperty(required = true)
11
	private boolean exists;
12
 
13
	public CustomerModel(boolean exists, Customer customer) {
14
		super();
15
		this.customer = customer;
16
		this.exists = exists;
17
	}
18
 
19
	@Override
20
	public String toString() {
21
		return "CustomerModel [customer=" + customer + ", exists=" + exists + "]";
22
	}
23
 
24
	public Customer getCustomer() {
25
		return customer;
26
	}
27
 
28
	public void setCustomer(Customer customer) {
29
		this.customer = customer;
30
	}
31
 
32
	public boolean isExists() {
33
		return exists;
34
	}
35
 
36
	public void setExists(boolean exists) {
37
		this.exists = exists;
38
	}
39
}