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

com.bitcoin.blockchain.api.domain.ResponseBase Maven / Gradle / Ivy

package com.bitcoin.blockchain.api.domain;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by Jesion on 2015-02-25.
 */
public class ResponseBase implements Serializable {

    public ResponseBase() {

    }

    public ResponseBase(List errors) {
        this.errors = errors;
    }


    public void addError(Error error) {
        if (errors == null) {
            errors = new ArrayList();
        }
        this.errors.add(error);
    }

    private List errors;

    public List getErrors() {
        return errors;
    }

    public void setErrors(List errors) {
        this.errors = errors;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy