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

com.webcohesion.enunciate.modules.swagger.SwaggerResponse Maven / Gradle / Ivy

package com.webcohesion.enunciate.modules.swagger;

import com.webcohesion.enunciate.api.datatype.DataTypeReference;
import com.webcohesion.enunciate.api.resources.Parameter;

import java.util.List;

/**
 * @author Ryan Heaton
 */
public class SwaggerResponse {

  private final int code;
  private final DataTypeReference dataType;
  private final List headers;
  private final String description;

  public SwaggerResponse(int code, DataTypeReference dataType, List headers, String description) {
    this.code = code;
    this.dataType = dataType;
    this.headers = headers;
    this.description = description;
  }

  public int getCode() {
    return code;
  }

  public DataTypeReference getDataType() {
    return dataType;
  }

  public List getHeaders() {
    return headers;
  }

  public String getDescription() {
    return description;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy