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

JavaVertXWebServer.supportFiles.ApiResponse.mustache Maven / Gradle / Ivy

The newest version!
package {{invokerPackage}};

public class ApiResponse {
    private final T data;
    private Integer statusCode;

    public ApiResponse(T data) {
        this.data = data;
    }

    public ApiResponse() {
        this.data = null;
    }

    public T getData() {
        return data;
    }

    public ApiResponse setStatusCode(Integer statusCode) {
        this.statusCode = statusCode;
        return this;
    }

    public Integer getStatusCode() {
        return statusCode;
    }
}
    





© 2015 - 2024 Weber Informatics LLC | Privacy Policy