![JAR search and dependency download from the Maven repository](/logo.png)
com.github.kongchen.swagger.docgen.remote.model.JResponseMessage Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of swagger-maven-plugin Show documentation
Show all versions of swagger-maven-plugin Show documentation
A maven build plugin which helps you generate API document during build phase
package com.github.kongchen.swagger.docgen.remote.model;
import com.github.kongchen.swagger.docgen.util.Utils;
import com.wordnik.swagger.model.ResponseMessage;
/**
* Created by chekong on 10/11/14.
*/
public class JResponseMessage implements CanBeSwaggerModel {
private int code;
private String message;
private String responseModel;
public void setCode(int code) {
this.code = code;
}
public void setMessage(String message) {
this.message = message;
}
public void setResponseModel(String responseModel) {
this.responseModel = responseModel;
}
public int getCode() {
return code;
}
public String getMessage() {
return message;
}
public String getResponseModel() {
return responseModel;
}
@Override
public ResponseMessage toSwaggerModel() {
return new ResponseMessage(code, message, Utils.getOption(responseModel));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy