All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.banxa.model.TransactionFee Maven / Gradle / Ivy

The newest version!
package com.banxa.model;

import java.util.List;
import java.util.Objects;

public class TransactionFee {
    private String fiatCode;
    private String coinCode;
    private List fees;

    public TransactionFee() {
    }

    public TransactionFee(String fiatCode, String coinCode, List fees) {
        this.fiatCode = fiatCode;
        this.coinCode = coinCode;
        this.fees = fees;
    }

    public String getFiatCode() {
        return fiatCode;
    }

    public String getCoinCode() {
        return coinCode;
    }

    public List getFees() {
        return fees;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        TransactionFee that = (TransactionFee) o;
        return Objects.equals(getFiatCode(), that.getFiatCode()) && Objects.equals(getCoinCode(), that.getCoinCode());
    }

    @Override
    public int hashCode() {
        return Objects.hash(getFiatCode(), getCoinCode());
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy