Blame | Last modification | View Log | RSS feed
package in.shop2020.mobileapi.serving.pojos;public class CreditHistoryPojo implements Comparable<CreditHistoryPojo>{private Long id;private Long user_id;private Long creditor_id;private Long payment_id;private Double amount;private String credit_type;private String created;private String shipping_id;public Long getId() {return id;}public void setId(Long id) {this.id = id;}public Long getUser_id() {return user_id;}public void setUser_id(Long user_id) {this.user_id = user_id;}public Long getCreditor_id() {return creditor_id;}public void setCreditor_id(Long creditor_id) {this.creditor_id = creditor_id;}public Long getPayment_id() {return payment_id;}public void setPayment_id(Long payment_id) {this.payment_id = payment_id;}public Double getAmount() {return amount;}public void setAmount(Double amount) {this.amount = amount;}public String getCredit_type() {return credit_type;}public void setCredit_type(String credit_type) {this.credit_type = credit_type;}public String getCreated() {return created;}public void setCreated(String created) {this.created = created;}public String getShipping_id() {return shipping_id;}public void setShipping_id(String shipping_id) {this.shipping_id = shipping_id;}@Overridepublic int compareTo(CreditHistoryPojo o) {if(id==o.getId()){return 0;}else if(id>o.getId())return 1;elsereturn -1;}}