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

com.github.shoothzj.javatool.module.BaseResponse Maven / Gradle / Ivy

There is a newer version: 3.1.15
Show newest version
package com.github.shoothzj.javatool.module;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @author AkkaJava
 * @param 
 */
public class BaseResponse {

    private static final Logger log = LoggerFactory.getLogger(BaseResponse.class);

    T body;

    StatusEnum status;

    public BaseResponse(T body) {
        this.body = body;
        this.status = StatusEnum.SUCCESS;
    }

    public BaseResponse(StatusEnum status) {
        this.status = status;
    }

    public boolean isSucess() {
        return StatusEnum.SUCCESS.equals(status);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy