Subversion Repositories SmartDukaan

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
18769 manish.sha 1
package in.shop2020.mobileapi.serving.pojos;
2
 
3
public class LoanHistoryPojo implements Comparable<LoanHistoryPojo>{
4
 
5
	private Long id; 
6
	private Long user_id; 
7
	private Long creditor_id; 
8
	private Long payment_id; 
9
	private Double amount; 
10
	private String credit_type; 
11
	private String created; 
12
	private String updated; 
13
	private String loan_id; 
14
	private String due_date; 
15
	private String value_date; 
16
	private String invoiceNumber;
17
 
18
	public Long getId() {
19
		return id;
20
	}
21
 
22
	public void setId(Long id) {
23
		this.id = id;
24
	}
25
 
26
	public Long getUser_id() {
27
		return user_id;
28
	}
29
 
30
	public void setUser_id(Long user_id) {
31
		this.user_id = user_id;
32
	}
33
 
34
	public Long getCreditor_id() {
35
		return creditor_id;
36
	}
37
 
38
	public void setCreditor_id(Long creditor_id) {
39
		this.creditor_id = creditor_id;
40
	}
41
 
42
	public Long getPayment_id() {
43
		return payment_id;
44
	}
45
 
46
	public void setPayment_id(Long payment_id) {
47
		this.payment_id = payment_id;
48
	}
49
 
50
	public Double getAmount() {
51
		return amount;
52
	}
53
 
54
	public void setAmount(Double amount) {
55
		this.amount = amount;
56
	}
57
 
58
	public String getCredit_type() {
59
		return credit_type;
60
	}
61
 
62
	public void setCredit_type(String credit_type) {
63
		this.credit_type = credit_type;
64
	}
65
 
66
	public String getCreated() {
67
		return created;
68
	}
69
 
70
	public void setCreated(String created) {
71
		this.created = created;
72
	}
73
 
74
	public String getUpdated() {
75
		return updated;
76
	}
77
 
78
	public void setUpdated(String updated) {
79
		this.updated = updated;
80
	}
81
 
82
	public String getLoan_id() {
83
		return loan_id;
84
	}
85
 
86
	public void setLoan_id(String loan_id) {
87
		this.loan_id = loan_id;
88
	}
89
 
90
	public String getDue_date() {
91
		return due_date;
92
	}
93
 
94
	public void setDue_date(String due_date) {
95
		this.due_date = due_date;
96
	}
97
 
98
	public String getValue_date() {
99
		return value_date;
100
	}
101
 
102
	public void setValue_date(String value_date) {
103
		this.value_date = value_date;
104
	}
105
 
106
	public String getInvoiceNumber() {
107
		return invoiceNumber;
108
	}
109
 
110
	public void setInvoiceNumber(String invoiceNumber) {
111
		this.invoiceNumber = invoiceNumber;
112
	}
113
 
114
	@Override
115
	public int compareTo(LoanHistoryPojo o) {
116
		if(id==o.getId()){
117
			return 0;
118
		}else if(id>o.getId())  
119
			return 1;  
120
		else  
121
			return -1;
122
	} 
123
 
124
 
125
}