Subversion Repositories SmartDukaan

Rev

Rev 25976 | View as "text/plain" | Blame | Compare with Previous | Last modification | View Log | RSS feed

package com.spice.profitmandi.dao.model;

public class AddPaymentResponse {
        private String transactionId;
        private String status;
        private String code;
        @Override
        public String toString() {
                return "AddPaymentResponse [transactionId=" + transactionId + ", status=" + status + ", code=" + code + "]";
        }
        public String getTransactionId() {
                return transactionId;
        }
        public void setTransactionId(String transactionId) {
                this.transactionId = transactionId;
        }
        public String getStatus() {
                return status;
        }
        public void setStatus(String status) {
                this.status = status;
        }
        public String getCode() {
                return code;
        }
        public void setCode(String code) {
                this.code = code;
        }
        @Override
        public int hashCode() {
                final int prime = 31;
                int result = 1;
                result = prime * result + ((code == null) ? 0 : code.hashCode());
                result = prime * result + ((status == null) ? 0 : status.hashCode());
                result = prime * result + ((transactionId == null) ? 0 : transactionId.hashCode());
                return result;
        }
        @Override
        public boolean equals(Object obj) {
                if (this == obj)
                        return true;
                if (obj == null)
                        return false;
                if (getClass() != obj.getClass())
                        return false;
                AddPaymentResponse other = (AddPaymentResponse) obj;
                if (code == null) {
                        if (other.code != null)
                                return false;
                } else if (!code.equals(other.code))
                        return false;
                if (status == null) {
                        if (other.status != null)
                                return false;
                } else if (!status.equals(other.status))
                        return false;
                if (transactionId == null) {
                        if (other.transactionId != null)
                                return false;
                } else if (!transactionId.equals(other.transactionId))
                        return false;
                return true;
        }
        
        
        
}