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

com.yunpian.sdk.model.ResultDO Maven / Gradle / Ivy

package com.yunpian.sdk.model;

import java.io.Serializable;

/**
 * Created by bingone on 16/1/18.
 */
public class ResultDO implements Serializable{
    private boolean success;
    private T data;
    private Throwable e;

    public ResultDO() {
        this.success = false;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public Throwable getE() {
        return e;
    }

    public void setE(Throwable e) {
        this.e = e;
    }

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    @Override public String toString() {
        return "ResultDO{" +
            "data=" + data +
            ", success=" + success +
            ", e=" + e +
            '}';
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy