mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-06-29 04:00:51 +00:00
added samples
This commit is contained in:
parent
585311c06a
commit
e86837dd9a
36
bin/scala-petstore.sh
Executable file
36
bin/scala-petstore.sh
Executable file
@ -0,0 +1,36 @@
|
||||
#!/bin/sh
|
||||
|
||||
SCRIPT="$0"
|
||||
|
||||
while [ -h "$SCRIPT" ] ; do
|
||||
ls=`ls -ld "$SCRIPT"`
|
||||
link=`expr "$ls" : '.*-> \(.*\)$'`
|
||||
if expr "$link" : '/.*' > /dev/null; then
|
||||
SCRIPT="$link"
|
||||
else
|
||||
SCRIPT=`dirname "$SCRIPT"`/"$link"
|
||||
fi
|
||||
done
|
||||
|
||||
if [ ! -d "${APP_DIR}" ]; then
|
||||
APP_DIR=`dirname "$SCRIPT"`/..
|
||||
APP_DIR=`cd "${APP_DIR}"; pwd`
|
||||
fi
|
||||
|
||||
root=./modules/swagger-codegen-distribution/pom.xml
|
||||
|
||||
# gets version of swagger-codegen
|
||||
version=$(sed '/<project>/,/<\/project>/d;/<version>/!d;s/ *<\/\?version> *//g' $root | sed -n '2p' | sed -e 's,.*<version>\([^<]*\)</version>.*,\1,g')
|
||||
|
||||
executable="./modules/swagger-codegen-distribution/target/swagger-codegen-distribution-$version.jar"
|
||||
|
||||
if [ ! -f "$executable" ]
|
||||
then
|
||||
mvn clean package
|
||||
fi
|
||||
|
||||
# if you've executed sbt assembly previously it will use that instead.
|
||||
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
|
||||
ags="$@ -i http://petstore.swagger.wordnik.com/v2/swagger.json -l scala -o samples/client/petstore/scala"
|
||||
|
||||
java $JAVA_OPTS -jar $executable $ags
|
36
bin/scala-wordnik-api.sh
Executable file
36
bin/scala-wordnik-api.sh
Executable file
@ -0,0 +1,36 @@
|
||||
#!/bin/sh
|
||||
|
||||
SCRIPT="$0"
|
||||
|
||||
while [ -h "$SCRIPT" ] ; do
|
||||
ls=`ls -ld "$SCRIPT"`
|
||||
link=`expr "$ls" : '.*-> \(.*\)$'`
|
||||
if expr "$link" : '/.*' > /dev/null; then
|
||||
SCRIPT="$link"
|
||||
else
|
||||
SCRIPT=`dirname "$SCRIPT"`/"$link"
|
||||
fi
|
||||
done
|
||||
|
||||
if [ ! -d "${APP_DIR}" ]; then
|
||||
APP_DIR=`dirname "$SCRIPT"`/..
|
||||
APP_DIR=`cd "${APP_DIR}"; pwd`
|
||||
fi
|
||||
|
||||
root=./modules/swagger-codegen-distribution/pom.xml
|
||||
|
||||
# gets version of swagger-codegen
|
||||
version=$(sed '/<project>/,/<\/project>/d;/<version>/!d;s/ *<\/\?version> *//g' $root | sed -n '2p' | sed -e 's,.*<version>\([^<]*\)</version>.*,\1,g')
|
||||
|
||||
executable="./modules/swagger-codegen-distribution/target/swagger-codegen-distribution-$version.jar"
|
||||
|
||||
if [ ! -f "$executable" ]
|
||||
then
|
||||
mvn clean package
|
||||
fi
|
||||
|
||||
# if you've executed sbt assembly previously it will use that instead.
|
||||
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
|
||||
ags="$@ -i modules/swagger-codegen/src/test/resources/2_0/wordnik.json -l scala -o samples/client/wordnik/scala"
|
||||
|
||||
java $JAVA_OPTS -jar $executable $ags
|
168
samples/client/wordnik/java/pom.xml
Normal file
168
samples/client/wordnik/java/pom.xml
Normal file
@ -0,0 +1,168 @@
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>io.swagger</groupId>
|
||||
<artifactId>swagger-client</artifactId>
|
||||
<packaging>jar</packaging>
|
||||
<name>swagger-client</name>
|
||||
<version>1.0.0</version>
|
||||
<scm>
|
||||
<connection>scm:git:git@github.com:wordnik/swagger-mustache.git</connection>
|
||||
<developerConnection>scm:git:git@github.com:wordnik/swagger-codegen.git</developerConnection>
|
||||
<url>https://github.com/wordnik/swagger-codegen</url>
|
||||
</scm>
|
||||
<prerequisites>
|
||||
<maven>2.2.0</maven>
|
||||
</prerequisites>
|
||||
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-surefire-plugin</artifactId>
|
||||
<version>2.12</version>
|
||||
<configuration>
|
||||
<systemProperties>
|
||||
<property>
|
||||
<name>loggerPath</name>
|
||||
<value>conf/log4j.properties</value>
|
||||
</property>
|
||||
</systemProperties>
|
||||
<argLine>-Xms512m -Xmx1500m</argLine>
|
||||
<parallel>methods</parallel>
|
||||
<forkMode>pertest</forkMode>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<artifactId>maven-dependency-plugin</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<phase>package</phase>
|
||||
<goals>
|
||||
<goal>copy-dependencies</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<outputDirectory>${project.build.directory}/lib</outputDirectory>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
|
||||
<!-- attach test jar -->
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-jar-plugin</artifactId>
|
||||
<version>2.2</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<goals>
|
||||
<goal>jar</goal>
|
||||
<goal>test-jar</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
<configuration>
|
||||
</configuration>
|
||||
</plugin>
|
||||
|
||||
<plugin>
|
||||
<groupId>org.codehaus.mojo</groupId>
|
||||
<artifactId>build-helper-maven-plugin</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>add_sources</id>
|
||||
<phase>generate-sources</phase>
|
||||
<goals>
|
||||
<goal>add-source</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<sources>
|
||||
<source>src/main/java</source>
|
||||
</sources>
|
||||
</configuration>
|
||||
</execution>
|
||||
<execution>
|
||||
<id>add_test_sources</id>
|
||||
<phase>generate-test-sources</phase>
|
||||
<goals>
|
||||
<goal>add-test-source</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<sources>
|
||||
<source>src/test/java</source>
|
||||
</sources>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-compiler-plugin</artifactId>
|
||||
<version>2.3.2</version>
|
||||
<configuration>
|
||||
<source>1.6</source>
|
||||
<target>1.6</target>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>com.wordnik</groupId>
|
||||
<artifactId>swagger-annotations</artifactId>
|
||||
<version>${swagger-annotations-version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.sun.jersey</groupId>
|
||||
<artifactId>jersey-client</artifactId>
|
||||
<version>${jersey-version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.sun.jersey.contribs</groupId>
|
||||
<artifactId>jersey-multipart</artifactId>
|
||||
<version>${jersey-version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.fasterxml.jackson.core</groupId>
|
||||
<artifactId>jackson-core</artifactId>
|
||||
<version>${jackson-version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.fasterxml.jackson.core</groupId>
|
||||
<artifactId>jackson-annotations</artifactId>
|
||||
<version>${jackson-version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.fasterxml.jackson.core</groupId>
|
||||
<artifactId>jackson-databind</artifactId>
|
||||
<version>${jackson-version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.fasterxml.jackson.datatype</groupId>
|
||||
<artifactId>jackson-datatype-joda</artifactId>
|
||||
<version>2.1.5</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>joda-time</groupId>
|
||||
<artifactId>joda-time</artifactId>
|
||||
<version>${jodatime-version}</version>
|
||||
</dependency>
|
||||
|
||||
<!-- test dependencies -->
|
||||
<dependency>
|
||||
<groupId>junit</groupId>
|
||||
<artifactId>junit</artifactId>
|
||||
<version>${junit-version}</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
<properties>
|
||||
<swagger-annotations-version>1.5.0-M1</swagger-annotations-version>
|
||||
<jersey-version>1.7</jersey-version>
|
||||
<jackson-version>2.1.4</jackson-version>
|
||||
<jodatime-version>2.3</jodatime-version>
|
||||
<junit-version>4.8.1</junit-version>
|
||||
<maven-plugin-version>1.0.0</maven-plugin-version>
|
||||
<junit-version>4.8.1</junit-version>
|
||||
</properties>
|
||||
</project>
|
@ -0,0 +1,29 @@
|
||||
package io.swagger.client;
|
||||
|
||||
public class ApiException extends Exception {
|
||||
int code = 0;
|
||||
String message = null;
|
||||
|
||||
public ApiException() {}
|
||||
|
||||
public ApiException(int code, String message) {
|
||||
this.code = code;
|
||||
this.message = message;
|
||||
}
|
||||
|
||||
public int getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public void setCode(int code) {
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public String getMessage() {
|
||||
return message;
|
||||
}
|
||||
|
||||
public void setMessage(String message) {
|
||||
this.message = message;
|
||||
}
|
||||
}
|
@ -0,0 +1,187 @@
|
||||
package io.swagger.client;
|
||||
|
||||
import com.fasterxml.jackson.core.JsonGenerator.Feature;
|
||||
import com.fasterxml.jackson.databind.*;
|
||||
import com.fasterxml.jackson.annotation.*;
|
||||
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||
|
||||
import com.sun.jersey.api.client.Client;
|
||||
import com.sun.jersey.api.client.ClientResponse;
|
||||
import com.sun.jersey.api.client.config.ClientConfig;
|
||||
import com.sun.jersey.api.client.config.DefaultClientConfig;
|
||||
import com.sun.jersey.api.client.filter.LoggingFilter;
|
||||
import com.sun.jersey.api.client.WebResource.Builder;
|
||||
import com.sun.jersey.multipart.FormDataMultiPart;
|
||||
|
||||
import javax.ws.rs.core.Response.Status.Family;
|
||||
import javax.ws.rs.core.MediaType;
|
||||
|
||||
import java.util.Map;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.io.IOException;
|
||||
import java.net.URLEncoder;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
|
||||
public class ApiInvoker {
|
||||
private static ApiInvoker INSTANCE = new ApiInvoker();
|
||||
private Map<String, Client> hostMap = new HashMap<String, Client>();
|
||||
private Map<String, String> defaultHeaderMap = new HashMap<String, String>();
|
||||
private boolean isDebug = false;
|
||||
|
||||
public void enableDebug() {
|
||||
isDebug = true;
|
||||
}
|
||||
|
||||
public static ApiInvoker getInstance() {
|
||||
return INSTANCE;
|
||||
}
|
||||
|
||||
public void addDefaultHeader(String key, String value) {
|
||||
defaultHeaderMap.put(key, value);
|
||||
}
|
||||
|
||||
public String escapeString(String str) {
|
||||
try{
|
||||
return URLEncoder.encode(str, "utf8").replaceAll("\\+", "%20");
|
||||
}
|
||||
catch(UnsupportedEncodingException e) {
|
||||
return str;
|
||||
}
|
||||
}
|
||||
|
||||
public static Object deserialize(String json, String containerType, Class cls) throws ApiException {
|
||||
try{
|
||||
if("List".equals(containerType)) {
|
||||
JavaType typeInfo = JsonUtil.getJsonMapper().getTypeFactory().constructCollectionType(List.class, cls);
|
||||
List response = (List<?>) JsonUtil.getJsonMapper().readValue(json, typeInfo);
|
||||
return response;
|
||||
}
|
||||
else if(String.class.equals(cls)) {
|
||||
if(json != null && json.startsWith("\"") && json.endsWith("\"") && json.length() > 1)
|
||||
return json.substring(1, json.length() - 2);
|
||||
else
|
||||
return json;
|
||||
}
|
||||
else {
|
||||
return JsonUtil.getJsonMapper().readValue(json, cls);
|
||||
}
|
||||
}
|
||||
catch (IOException e) {
|
||||
throw new ApiException(500, e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
public static String serialize(Object obj) throws ApiException {
|
||||
try {
|
||||
if (obj != null)
|
||||
return JsonUtil.getJsonMapper().writeValueAsString(obj);
|
||||
else
|
||||
return null;
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw new ApiException(500, e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
public String invokeAPI(String host, String path, String method, Map<String, String> queryParams, Object body, Map<String, String> headerParams, Map<String, String> formParams, String contentType) throws ApiException {
|
||||
Client client = getClient(host);
|
||||
|
||||
StringBuilder b = new StringBuilder();
|
||||
|
||||
for(String key : queryParams.keySet()) {
|
||||
String value = queryParams.get(key);
|
||||
if (value != null){
|
||||
if(b.toString().length() == 0)
|
||||
b.append("?");
|
||||
else
|
||||
b.append("&");
|
||||
b.append(escapeString(key)).append("=").append(escapeString(value));
|
||||
}
|
||||
}
|
||||
String querystring = b.toString();
|
||||
|
||||
Builder builder = client.resource(host + path + querystring).accept("application/json");
|
||||
for(String key : headerParams.keySet()) {
|
||||
builder.header(key, headerParams.get(key));
|
||||
}
|
||||
|
||||
for(String key : defaultHeaderMap.keySet()) {
|
||||
if(!headerParams.containsKey(key)) {
|
||||
builder.header(key, defaultHeaderMap.get(key));
|
||||
}
|
||||
}
|
||||
ClientResponse response = null;
|
||||
|
||||
if("GET".equals(method)) {
|
||||
response = (ClientResponse) builder.get(ClientResponse.class);
|
||||
}
|
||||
else if ("POST".equals(method)) {
|
||||
if(body == null)
|
||||
response = builder.post(ClientResponse.class, null);
|
||||
else if(body instanceof FormDataMultiPart) {
|
||||
response = builder.type(contentType).post(ClientResponse.class, body);
|
||||
}
|
||||
else
|
||||
response = builder.type(contentType).post(ClientResponse.class, serialize(body));
|
||||
}
|
||||
else if ("PUT".equals(method)) {
|
||||
if(body == null)
|
||||
response = builder.put(ClientResponse.class, serialize(body));
|
||||
else {
|
||||
if("application/x-www-form-urlencoded".equals(contentType)) {
|
||||
StringBuilder formParamBuilder = new StringBuilder();
|
||||
|
||||
// encode the form params
|
||||
for(String key : formParams.keySet()) {
|
||||
String value = formParams.get(key);
|
||||
if(value != null && !"".equals(value.trim())) {
|
||||
if(formParamBuilder.length() > 0) {
|
||||
formParamBuilder.append("&");
|
||||
}
|
||||
try {
|
||||
formParamBuilder.append(URLEncoder.encode(key, "utf8")).append("=").append(URLEncoder.encode(value, "utf8"));
|
||||
}
|
||||
catch (Exception e) {
|
||||
// move on to next
|
||||
}
|
||||
}
|
||||
}
|
||||
response = builder.type(contentType).put(ClientResponse.class, formParamBuilder.toString());
|
||||
}
|
||||
else
|
||||
response = builder.type(contentType).put(ClientResponse.class, serialize(body));
|
||||
}
|
||||
}
|
||||
else if ("DELETE".equals(method)) {
|
||||
if(body == null)
|
||||
response = builder.delete(ClientResponse.class, serialize(body));
|
||||
else
|
||||
response = builder.type(contentType).delete(ClientResponse.class, serialize(body));
|
||||
}
|
||||
else {
|
||||
throw new ApiException(500, "unknown method type " + method);
|
||||
}
|
||||
if(response.getClientResponseStatus() == ClientResponse.Status.NO_CONTENT) {
|
||||
return null;
|
||||
}
|
||||
else if(response.getClientResponseStatus().getFamily() == Family.SUCCESSFUL) {
|
||||
return (String) response.getEntity(String.class);
|
||||
}
|
||||
else {
|
||||
throw new ApiException(
|
||||
response.getClientResponseStatus().getStatusCode(),
|
||||
response.getEntity(String.class));
|
||||
}
|
||||
}
|
||||
|
||||
private Client getClient(String host) {
|
||||
if(!hostMap.containsKey(host)) {
|
||||
Client client = Client.create();
|
||||
if(isDebug)
|
||||
client.addFilter(new LoggingFilter());
|
||||
hostMap.put(host, client);
|
||||
}
|
||||
return hostMap.get(host);
|
||||
}
|
||||
}
|
@ -0,0 +1,23 @@
|
||||
package io.swagger.client;
|
||||
|
||||
import com.fasterxml.jackson.annotation.*;
|
||||
import com.fasterxml.jackson.databind.*;
|
||||
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||
import com.fasterxml.jackson.core.JsonGenerator.Feature;
|
||||
|
||||
import com.fasterxml.jackson.datatype.joda.*;
|
||||
|
||||
public class JsonUtil {
|
||||
public static ObjectMapper mapper;
|
||||
|
||||
static {
|
||||
mapper = new ObjectMapper();
|
||||
mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);
|
||||
mapper.disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS);
|
||||
mapper.registerModule(new JodaModule());
|
||||
}
|
||||
|
||||
public static ObjectMapper getJsonMapper() {
|
||||
return mapper;
|
||||
}
|
||||
}
|
@ -0,0 +1,297 @@
|
||||
package io.swagger.client.api;
|
||||
|
||||
import io.swagger.client.ApiException;
|
||||
import io.swagger.client.ApiInvoker;
|
||||
|
||||
import io.swagger.client.model.*;
|
||||
|
||||
import java.util.*;
|
||||
|
||||
|
||||
import com.sun.jersey.multipart.FormDataMultiPart;
|
||||
|
||||
import javax.ws.rs.core.MediaType;
|
||||
|
||||
import java.io.File;
|
||||
import java.util.Map;
|
||||
import java.util.HashMap;
|
||||
|
||||
public class AccountApi {
|
||||
String basePath = "http://api.wordnik.com/v4";
|
||||
ApiInvoker apiInvoker = ApiInvoker.getInstance();
|
||||
|
||||
public ApiInvoker getInvoker() {
|
||||
return apiInvoker;
|
||||
}
|
||||
|
||||
public void setBasePath(String basePath) {
|
||||
this.basePath = basePath;
|
||||
}
|
||||
|
||||
public String getBasePath() {
|
||||
return basePath;
|
||||
}
|
||||
|
||||
|
||||
|
||||
public void getApiTokenStatus (String api_key) throws ApiException {
|
||||
Object postBody = null;
|
||||
|
||||
|
||||
// create path and map variables
|
||||
String path = "/account.json/apiTokenStatus".replaceAll("\\{format\\}","json");
|
||||
|
||||
// query params
|
||||
Map<String, String> queryParams = new HashMap<String, String>();
|
||||
Map<String, String> headerParams = new HashMap<String, String>();
|
||||
Map<String, String> formParams = new HashMap<String, String>();
|
||||
|
||||
|
||||
headerParams.put("api_key", api_key);
|
||||
|
||||
String[] contentTypes = {
|
||||
|
||||
};
|
||||
|
||||
String contentType = contentTypes.length > 0 ? contentTypes[0] : "application/json";
|
||||
|
||||
if(contentType.startsWith("multipart/form-data")) {
|
||||
boolean hasFields = false;
|
||||
FormDataMultiPart mp = new FormDataMultiPart();
|
||||
|
||||
if(hasFields)
|
||||
postBody = mp;
|
||||
}
|
||||
else {
|
||||
|
||||
}
|
||||
|
||||
try {
|
||||
String response = apiInvoker.invokeAPI(basePath, path, "GET", queryParams, postBody, headerParams, formParams, contentType);
|
||||
if(response != null){
|
||||
return ;
|
||||
}
|
||||
else {
|
||||
return ;
|
||||
}
|
||||
} catch (ApiException ex) {
|
||||
if(ex.getCode() == 404) {
|
||||
return ;
|
||||
}
|
||||
else {
|
||||
throw ex;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public void authenticate (String username, String password) throws ApiException {
|
||||
Object postBody = null;
|
||||
|
||||
|
||||
// create path and map variables
|
||||
String path = "/account.json/authenticate/{username}".replaceAll("\\{format\\}","json")
|
||||
.replaceAll("\\{" + "username" + "\\}", apiInvoker.escapeString(username.toString()));
|
||||
|
||||
// query params
|
||||
Map<String, String> queryParams = new HashMap<String, String>();
|
||||
Map<String, String> headerParams = new HashMap<String, String>();
|
||||
Map<String, String> formParams = new HashMap<String, String>();
|
||||
|
||||
if(!"null".equals(String.valueOf(password)))
|
||||
queryParams.put("password", String.valueOf(password));
|
||||
|
||||
|
||||
String[] contentTypes = {
|
||||
|
||||
};
|
||||
|
||||
String contentType = contentTypes.length > 0 ? contentTypes[0] : "application/json";
|
||||
|
||||
if(contentType.startsWith("multipart/form-data")) {
|
||||
boolean hasFields = false;
|
||||
FormDataMultiPart mp = new FormDataMultiPart();
|
||||
|
||||
if(hasFields)
|
||||
postBody = mp;
|
||||
}
|
||||
else {
|
||||
|
||||
}
|
||||
|
||||
try {
|
||||
String response = apiInvoker.invokeAPI(basePath, path, "GET", queryParams, postBody, headerParams, formParams, contentType);
|
||||
if(response != null){
|
||||
return ;
|
||||
}
|
||||
else {
|
||||
return ;
|
||||
}
|
||||
} catch (ApiException ex) {
|
||||
if(ex.getCode() == 404) {
|
||||
return ;
|
||||
}
|
||||
else {
|
||||
throw ex;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public void authenticatePost (String username, String body) throws ApiException {
|
||||
Object postBody = body;
|
||||
|
||||
|
||||
// create path and map variables
|
||||
String path = "/account.json/authenticate/{username}".replaceAll("\\{format\\}","json")
|
||||
.replaceAll("\\{" + "username" + "\\}", apiInvoker.escapeString(username.toString()));
|
||||
|
||||
// query params
|
||||
Map<String, String> queryParams = new HashMap<String, String>();
|
||||
Map<String, String> headerParams = new HashMap<String, String>();
|
||||
Map<String, String> formParams = new HashMap<String, String>();
|
||||
|
||||
|
||||
|
||||
String[] contentTypes = {
|
||||
|
||||
};
|
||||
|
||||
String contentType = contentTypes.length > 0 ? contentTypes[0] : "application/json";
|
||||
|
||||
if(contentType.startsWith("multipart/form-data")) {
|
||||
boolean hasFields = false;
|
||||
FormDataMultiPart mp = new FormDataMultiPart();
|
||||
|
||||
if(hasFields)
|
||||
postBody = mp;
|
||||
}
|
||||
else {
|
||||
|
||||
}
|
||||
|
||||
try {
|
||||
String response = apiInvoker.invokeAPI(basePath, path, "POST", queryParams, postBody, headerParams, formParams, contentType);
|
||||
if(response != null){
|
||||
return ;
|
||||
}
|
||||
else {
|
||||
return ;
|
||||
}
|
||||
} catch (ApiException ex) {
|
||||
if(ex.getCode() == 404) {
|
||||
return ;
|
||||
}
|
||||
else {
|
||||
throw ex;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public void getLoggedInUser (String auth_token) throws ApiException {
|
||||
Object postBody = null;
|
||||
|
||||
|
||||
// create path and map variables
|
||||
String path = "/account.json/user".replaceAll("\\{format\\}","json");
|
||||
|
||||
// query params
|
||||
Map<String, String> queryParams = new HashMap<String, String>();
|
||||
Map<String, String> headerParams = new HashMap<String, String>();
|
||||
Map<String, String> formParams = new HashMap<String, String>();
|
||||
|
||||
|
||||
headerParams.put("auth_token", auth_token);
|
||||
|
||||
String[] contentTypes = {
|
||||
|
||||
};
|
||||
|
||||
String contentType = contentTypes.length > 0 ? contentTypes[0] : "application/json";
|
||||
|
||||
if(contentType.startsWith("multipart/form-data")) {
|
||||
boolean hasFields = false;
|
||||
FormDataMultiPart mp = new FormDataMultiPart();
|
||||
|
||||
if(hasFields)
|
||||
postBody = mp;
|
||||
}
|
||||
else {
|
||||
|
||||
}
|
||||
|
||||
try {
|
||||
String response = apiInvoker.invokeAPI(basePath, path, "GET", queryParams, postBody, headerParams, formParams, contentType);
|
||||
if(response != null){
|
||||
return ;
|
||||
}
|
||||
else {
|
||||
return ;
|
||||
}
|
||||
} catch (ApiException ex) {
|
||||
if(ex.getCode() == 404) {
|
||||
return ;
|
||||
}
|
||||
else {
|
||||
throw ex;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public void getWordListsForLoggedInUser (String auth_token, Integer skip, Integer limit) throws ApiException {
|
||||
Object postBody = null;
|
||||
|
||||
|
||||
// create path and map variables
|
||||
String path = "/account.json/wordLists".replaceAll("\\{format\\}","json");
|
||||
|
||||
// query params
|
||||
Map<String, String> queryParams = new HashMap<String, String>();
|
||||
Map<String, String> headerParams = new HashMap<String, String>();
|
||||
Map<String, String> formParams = new HashMap<String, String>();
|
||||
|
||||
if(!"null".equals(String.valueOf(skip)))
|
||||
queryParams.put("skip", String.valueOf(skip));
|
||||
if(!"null".equals(String.valueOf(limit)))
|
||||
queryParams.put("limit", String.valueOf(limit));
|
||||
|
||||
headerParams.put("auth_token", auth_token);
|
||||
|
||||
String[] contentTypes = {
|
||||
|
||||
};
|
||||
|
||||
String contentType = contentTypes.length > 0 ? contentTypes[0] : "application/json";
|
||||
|
||||
if(contentType.startsWith("multipart/form-data")) {
|
||||
boolean hasFields = false;
|
||||
FormDataMultiPart mp = new FormDataMultiPart();
|
||||
|
||||
if(hasFields)
|
||||
postBody = mp;
|
||||
}
|
||||
else {
|
||||
|
||||
}
|
||||
|
||||
try {
|
||||
String response = apiInvoker.invokeAPI(basePath, path, "GET", queryParams, postBody, headerParams, formParams, contentType);
|
||||
if(response != null){
|
||||
return ;
|
||||
}
|
||||
else {
|
||||
return ;
|
||||
}
|
||||
} catch (ApiException ex) {
|
||||
if(ex.getCode() == 404) {
|
||||
return ;
|
||||
}
|
||||
else {
|
||||
throw ex;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,661 @@
|
||||
package io.swagger.client.api;
|
||||
|
||||
import io.swagger.client.ApiException;
|
||||
import io.swagger.client.ApiInvoker;
|
||||
|
||||
import io.swagger.client.model.*;
|
||||
|
||||
import java.util.*;
|
||||
|
||||
|
||||
import com.sun.jersey.multipart.FormDataMultiPart;
|
||||
|
||||
import javax.ws.rs.core.MediaType;
|
||||
|
||||
import java.io.File;
|
||||
import java.util.Map;
|
||||
import java.util.HashMap;
|
||||
|
||||
public class WordApi {
|
||||
String basePath = "http://api.wordnik.com/v4";
|
||||
ApiInvoker apiInvoker = ApiInvoker.getInstance();
|
||||
|
||||
public ApiInvoker getInvoker() {
|
||||
return apiInvoker;
|
||||
}
|
||||
|
||||
public void setBasePath(String basePath) {
|
||||
this.basePath = basePath;
|
||||
}
|
||||
|
||||
public String getBasePath() {
|
||||
return basePath;
|
||||
}
|
||||
|
||||
|
||||
|
||||
public void getWord (String word, String useCanonical, String includeSuggestions) throws ApiException {
|
||||
Object postBody = null;
|
||||
|
||||
|
||||
// create path and map variables
|
||||
String path = "/word.json/{word}".replaceAll("\\{format\\}","json")
|
||||
.replaceAll("\\{" + "word" + "\\}", apiInvoker.escapeString(word.toString()));
|
||||
|
||||
// query params
|
||||
Map<String, String> queryParams = new HashMap<String, String>();
|
||||
Map<String, String> headerParams = new HashMap<String, String>();
|
||||
Map<String, String> formParams = new HashMap<String, String>();
|
||||
|
||||
if(!"null".equals(String.valueOf(useCanonical)))
|
||||
queryParams.put("useCanonical", String.valueOf(useCanonical));
|
||||
if(!"null".equals(String.valueOf(includeSuggestions)))
|
||||
queryParams.put("includeSuggestions", String.valueOf(includeSuggestions));
|
||||
|
||||
|
||||
String[] contentTypes = {
|
||||
|
||||
};
|
||||
|
||||
String contentType = contentTypes.length > 0 ? contentTypes[0] : "application/json";
|
||||
|
||||
if(contentType.startsWith("multipart/form-data")) {
|
||||
boolean hasFields = false;
|
||||
FormDataMultiPart mp = new FormDataMultiPart();
|
||||
|
||||
if(hasFields)
|
||||
postBody = mp;
|
||||
}
|
||||
else {
|
||||
|
||||
}
|
||||
|
||||
try {
|
||||
String response = apiInvoker.invokeAPI(basePath, path, "GET", queryParams, postBody, headerParams, formParams, contentType);
|
||||
if(response != null){
|
||||
return ;
|
||||
}
|
||||
else {
|
||||
return ;
|
||||
}
|
||||
} catch (ApiException ex) {
|
||||
if(ex.getCode() == 404) {
|
||||
return ;
|
||||
}
|
||||
else {
|
||||
throw ex;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public void getAudio (String word, String useCanonical, Integer limit) throws ApiException {
|
||||
Object postBody = null;
|
||||
|
||||
|
||||
// create path and map variables
|
||||
String path = "/word.json/{word}/audio".replaceAll("\\{format\\}","json")
|
||||
.replaceAll("\\{" + "word" + "\\}", apiInvoker.escapeString(word.toString()));
|
||||
|
||||
// query params
|
||||
Map<String, String> queryParams = new HashMap<String, String>();
|
||||
Map<String, String> headerParams = new HashMap<String, String>();
|
||||
Map<String, String> formParams = new HashMap<String, String>();
|
||||
|
||||
if(!"null".equals(String.valueOf(useCanonical)))
|
||||
queryParams.put("useCanonical", String.valueOf(useCanonical));
|
||||
if(!"null".equals(String.valueOf(limit)))
|
||||
queryParams.put("limit", String.valueOf(limit));
|
||||
|
||||
|
||||
String[] contentTypes = {
|
||||
|
||||
};
|
||||
|
||||
String contentType = contentTypes.length > 0 ? contentTypes[0] : "application/json";
|
||||
|
||||
if(contentType.startsWith("multipart/form-data")) {
|
||||
boolean hasFields = false;
|
||||
FormDataMultiPart mp = new FormDataMultiPart();
|
||||
|
||||
if(hasFields)
|
||||
postBody = mp;
|
||||
}
|
||||
else {
|
||||
|
||||
}
|
||||
|
||||
try {
|
||||
String response = apiInvoker.invokeAPI(basePath, path, "GET", queryParams, postBody, headerParams, formParams, contentType);
|
||||
if(response != null){
|
||||
return ;
|
||||
}
|
||||
else {
|
||||
return ;
|
||||
}
|
||||
} catch (ApiException ex) {
|
||||
if(ex.getCode() == 404) {
|
||||
return ;
|
||||
}
|
||||
else {
|
||||
throw ex;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public void getDefinitions (String word, Integer limit, String partOfSpeech, String includeRelated, List<String> sourceDictionaries, String useCanonical, String includeTags) throws ApiException {
|
||||
Object postBody = null;
|
||||
|
||||
|
||||
// create path and map variables
|
||||
String path = "/word.json/{word}/definitions".replaceAll("\\{format\\}","json")
|
||||
.replaceAll("\\{" + "word" + "\\}", apiInvoker.escapeString(word.toString()));
|
||||
|
||||
// query params
|
||||
Map<String, String> queryParams = new HashMap<String, String>();
|
||||
Map<String, String> headerParams = new HashMap<String, String>();
|
||||
Map<String, String> formParams = new HashMap<String, String>();
|
||||
|
||||
if(!"null".equals(String.valueOf(limit)))
|
||||
queryParams.put("limit", String.valueOf(limit));
|
||||
if(!"null".equals(String.valueOf(partOfSpeech)))
|
||||
queryParams.put("partOfSpeech", String.valueOf(partOfSpeech));
|
||||
if(!"null".equals(String.valueOf(includeRelated)))
|
||||
queryParams.put("includeRelated", String.valueOf(includeRelated));
|
||||
if(!"null".equals(String.valueOf(sourceDictionaries)))
|
||||
queryParams.put("sourceDictionaries", String.valueOf(sourceDictionaries));
|
||||
if(!"null".equals(String.valueOf(useCanonical)))
|
||||
queryParams.put("useCanonical", String.valueOf(useCanonical));
|
||||
if(!"null".equals(String.valueOf(includeTags)))
|
||||
queryParams.put("includeTags", String.valueOf(includeTags));
|
||||
|
||||
|
||||
String[] contentTypes = {
|
||||
|
||||
};
|
||||
|
||||
String contentType = contentTypes.length > 0 ? contentTypes[0] : "application/json";
|
||||
|
||||
if(contentType.startsWith("multipart/form-data")) {
|
||||
boolean hasFields = false;
|
||||
FormDataMultiPart mp = new FormDataMultiPart();
|
||||
|
||||
if(hasFields)
|
||||
postBody = mp;
|
||||
}
|
||||
else {
|
||||
|
||||
}
|
||||
|
||||
try {
|
||||
String response = apiInvoker.invokeAPI(basePath, path, "GET", queryParams, postBody, headerParams, formParams, contentType);
|
||||
if(response != null){
|
||||
return ;
|
||||
}
|
||||
else {
|
||||
return ;
|
||||
}
|
||||
} catch (ApiException ex) {
|
||||
if(ex.getCode() == 404) {
|
||||
return ;
|
||||
}
|
||||
else {
|
||||
throw ex;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public void getEtymologies (String word, String useCanonical) throws ApiException {
|
||||
Object postBody = null;
|
||||
|
||||
|
||||
// create path and map variables
|
||||
String path = "/word.json/{word}/etymologies".replaceAll("\\{format\\}","json")
|
||||
.replaceAll("\\{" + "word" + "\\}", apiInvoker.escapeString(word.toString()));
|
||||
|
||||
// query params
|
||||
Map<String, String> queryParams = new HashMap<String, String>();
|
||||
Map<String, String> headerParams = new HashMap<String, String>();
|
||||
Map<String, String> formParams = new HashMap<String, String>();
|
||||
|
||||
if(!"null".equals(String.valueOf(useCanonical)))
|
||||
queryParams.put("useCanonical", String.valueOf(useCanonical));
|
||||
|
||||
|
||||
String[] contentTypes = {
|
||||
|
||||
};
|
||||
|
||||
String contentType = contentTypes.length > 0 ? contentTypes[0] : "application/json";
|
||||
|
||||
if(contentType.startsWith("multipart/form-data")) {
|
||||
boolean hasFields = false;
|
||||
FormDataMultiPart mp = new FormDataMultiPart();
|
||||
|
||||
if(hasFields)
|
||||
postBody = mp;
|
||||
}
|
||||
else {
|
||||
|
||||
}
|
||||
|
||||
try {
|
||||
String response = apiInvoker.invokeAPI(basePath, path, "GET", queryParams, postBody, headerParams, formParams, contentType);
|
||||
if(response != null){
|
||||
return ;
|
||||
}
|
||||
else {
|
||||
return ;
|
||||
}
|
||||
} catch (ApiException ex) {
|
||||
if(ex.getCode() == 404) {
|
||||
return ;
|
||||
}
|
||||
else {
|
||||
throw ex;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public void getExamples (String word, String includeDuplicates, String useCanonical, Integer skip, Integer limit) throws ApiException {
|
||||
Object postBody = null;
|
||||
|
||||
|
||||
// create path and map variables
|
||||
String path = "/word.json/{word}/examples".replaceAll("\\{format\\}","json")
|
||||
.replaceAll("\\{" + "word" + "\\}", apiInvoker.escapeString(word.toString()));
|
||||
|
||||
// query params
|
||||
Map<String, String> queryParams = new HashMap<String, String>();
|
||||
Map<String, String> headerParams = new HashMap<String, String>();
|
||||
Map<String, String> formParams = new HashMap<String, String>();
|
||||
|
||||
if(!"null".equals(String.valueOf(includeDuplicates)))
|
||||
queryParams.put("includeDuplicates", String.valueOf(includeDuplicates));
|
||||
if(!"null".equals(String.valueOf(useCanonical)))
|
||||
queryParams.put("useCanonical", String.valueOf(useCanonical));
|
||||
if(!"null".equals(String.valueOf(skip)))
|
||||
queryParams.put("skip", String.valueOf(skip));
|
||||
if(!"null".equals(String.valueOf(limit)))
|
||||
queryParams.put("limit", String.valueOf(limit));
|
||||
|
||||
|
||||
String[] contentTypes = {
|
||||
|
||||
};
|
||||
|
||||
String contentType = contentTypes.length > 0 ? contentTypes[0] : "application/json";
|
||||
|
||||
if(contentType.startsWith("multipart/form-data")) {
|
||||
boolean hasFields = false;
|
||||
FormDataMultiPart mp = new FormDataMultiPart();
|
||||
|
||||
if(hasFields)
|
||||
postBody = mp;
|
||||
}
|
||||
else {
|
||||
|
||||
}
|
||||
|
||||
try {
|
||||
String response = apiInvoker.invokeAPI(basePath, path, "GET", queryParams, postBody, headerParams, formParams, contentType);
|
||||
if(response != null){
|
||||
return ;
|
||||
}
|
||||
else {
|
||||
return ;
|
||||
}
|
||||
} catch (ApiException ex) {
|
||||
if(ex.getCode() == 404) {
|
||||
return ;
|
||||
}
|
||||
else {
|
||||
throw ex;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public void getWordFrequency (String word, String useCanonical, Integer startYear, Integer endYear) throws ApiException {
|
||||
Object postBody = null;
|
||||
|
||||
|
||||
// create path and map variables
|
||||
String path = "/word.json/{word}/frequency".replaceAll("\\{format\\}","json")
|
||||
.replaceAll("\\{" + "word" + "\\}", apiInvoker.escapeString(word.toString()));
|
||||
|
||||
// query params
|
||||
Map<String, String> queryParams = new HashMap<String, String>();
|
||||
Map<String, String> headerParams = new HashMap<String, String>();
|
||||
Map<String, String> formParams = new HashMap<String, String>();
|
||||
|
||||
if(!"null".equals(String.valueOf(useCanonical)))
|
||||
queryParams.put("useCanonical", String.valueOf(useCanonical));
|
||||
if(!"null".equals(String.valueOf(startYear)))
|
||||
queryParams.put("startYear", String.valueOf(startYear));
|
||||
if(!"null".equals(String.valueOf(endYear)))
|
||||
queryParams.put("endYear", String.valueOf(endYear));
|
||||
|
||||
|
||||
String[] contentTypes = {
|
||||
|
||||
};
|
||||
|
||||
String contentType = contentTypes.length > 0 ? contentTypes[0] : "application/json";
|
||||
|
||||
if(contentType.startsWith("multipart/form-data")) {
|
||||
boolean hasFields = false;
|
||||
FormDataMultiPart mp = new FormDataMultiPart();
|
||||
|
||||
if(hasFields)
|
||||
postBody = mp;
|
||||
}
|
||||
else {
|
||||
|
||||
}
|
||||
|
||||
try {
|
||||
String response = apiInvoker.invokeAPI(basePath, path, "GET", queryParams, postBody, headerParams, formParams, contentType);
|
||||
if(response != null){
|
||||
return ;
|
||||
}
|
||||
else {
|
||||
return ;
|
||||
}
|
||||
} catch (ApiException ex) {
|
||||
if(ex.getCode() == 404) {
|
||||
return ;
|
||||
}
|
||||
else {
|
||||
throw ex;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public void getHyphenation (String word, String useCanonical, String sourceDictionary, Integer limit) throws ApiException {
|
||||
Object postBody = null;
|
||||
|
||||
|
||||
// create path and map variables
|
||||
String path = "/word.json/{word}/hyphenation".replaceAll("\\{format\\}","json")
|
||||
.replaceAll("\\{" + "word" + "\\}", apiInvoker.escapeString(word.toString()));
|
||||
|
||||
// query params
|
||||
Map<String, String> queryParams = new HashMap<String, String>();
|
||||
Map<String, String> headerParams = new HashMap<String, String>();
|
||||
Map<String, String> formParams = new HashMap<String, String>();
|
||||
|
||||
if(!"null".equals(String.valueOf(useCanonical)))
|
||||
queryParams.put("useCanonical", String.valueOf(useCanonical));
|
||||
if(!"null".equals(String.valueOf(sourceDictionary)))
|
||||
queryParams.put("sourceDictionary", String.valueOf(sourceDictionary));
|
||||
if(!"null".equals(String.valueOf(limit)))
|
||||
queryParams.put("limit", String.valueOf(limit));
|
||||
|
||||
|
||||
String[] contentTypes = {
|
||||
|
||||
};
|
||||
|
||||
String contentType = contentTypes.length > 0 ? contentTypes[0] : "application/json";
|
||||
|
||||
if(contentType.startsWith("multipart/form-data")) {
|
||||
boolean hasFields = false;
|
||||
FormDataMultiPart mp = new FormDataMultiPart();
|
||||
|
||||
if(hasFields)
|
||||
postBody = mp;
|
||||
}
|
||||
else {
|
||||
|
||||
}
|
||||
|
||||
try {
|
||||
String response = apiInvoker.invokeAPI(basePath, path, "GET", queryParams, postBody, headerParams, formParams, contentType);
|
||||
if(response != null){
|
||||
return ;
|
||||
}
|
||||
else {
|
||||
return ;
|
||||
}
|
||||
} catch (ApiException ex) {
|
||||
if(ex.getCode() == 404) {
|
||||
return ;
|
||||
}
|
||||
else {
|
||||
throw ex;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public void getPhrases (String word, Integer limit, Integer wlmi, String useCanonical) throws ApiException {
|
||||
Object postBody = null;
|
||||
|
||||
|
||||
// create path and map variables
|
||||
String path = "/word.json/{word}/phrases".replaceAll("\\{format\\}","json")
|
||||
.replaceAll("\\{" + "word" + "\\}", apiInvoker.escapeString(word.toString()));
|
||||
|
||||
// query params
|
||||
Map<String, String> queryParams = new HashMap<String, String>();
|
||||
Map<String, String> headerParams = new HashMap<String, String>();
|
||||
Map<String, String> formParams = new HashMap<String, String>();
|
||||
|
||||
if(!"null".equals(String.valueOf(limit)))
|
||||
queryParams.put("limit", String.valueOf(limit));
|
||||
if(!"null".equals(String.valueOf(wlmi)))
|
||||
queryParams.put("wlmi", String.valueOf(wlmi));
|
||||
if(!"null".equals(String.valueOf(useCanonical)))
|
||||
queryParams.put("useCanonical", String.valueOf(useCanonical));
|
||||
|
||||
|
||||
String[] contentTypes = {
|
||||
|
||||
};
|
||||
|
||||
String contentType = contentTypes.length > 0 ? contentTypes[0] : "application/json";
|
||||
|
||||
if(contentType.startsWith("multipart/form-data")) {
|
||||
boolean hasFields = false;
|
||||
FormDataMultiPart mp = new FormDataMultiPart();
|
||||
|
||||
if(hasFields)
|
||||
postBody = mp;
|
||||
}
|
||||
else {
|
||||
|
||||
}
|
||||
|
||||
try {
|
||||
String response = apiInvoker.invokeAPI(basePath, path, "GET", queryParams, postBody, headerParams, formParams, contentType);
|
||||
if(response != null){
|
||||
return ;
|
||||
}
|
||||
else {
|
||||
return ;
|
||||
}
|
||||
} catch (ApiException ex) {
|
||||
if(ex.getCode() == 404) {
|
||||
return ;
|
||||
}
|
||||
else {
|
||||
throw ex;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public void getTextPronunciations (String word, String useCanonical, String sourceDictionary, String typeFormat, Integer limit) throws ApiException {
|
||||
Object postBody = null;
|
||||
|
||||
|
||||
// create path and map variables
|
||||
String path = "/word.json/{word}/pronunciations".replaceAll("\\{format\\}","json")
|
||||
.replaceAll("\\{" + "word" + "\\}", apiInvoker.escapeString(word.toString()));
|
||||
|
||||
// query params
|
||||
Map<String, String> queryParams = new HashMap<String, String>();
|
||||
Map<String, String> headerParams = new HashMap<String, String>();
|
||||
Map<String, String> formParams = new HashMap<String, String>();
|
||||
|
||||
if(!"null".equals(String.valueOf(useCanonical)))
|
||||
queryParams.put("useCanonical", String.valueOf(useCanonical));
|
||||
if(!"null".equals(String.valueOf(sourceDictionary)))
|
||||
queryParams.put("sourceDictionary", String.valueOf(sourceDictionary));
|
||||
if(!"null".equals(String.valueOf(typeFormat)))
|
||||
queryParams.put("typeFormat", String.valueOf(typeFormat));
|
||||
if(!"null".equals(String.valueOf(limit)))
|
||||
queryParams.put("limit", String.valueOf(limit));
|
||||
|
||||
|
||||
String[] contentTypes = {
|
||||
|
||||
};
|
||||
|
||||
String contentType = contentTypes.length > 0 ? contentTypes[0] : "application/json";
|
||||
|
||||
if(contentType.startsWith("multipart/form-data")) {
|
||||
boolean hasFields = false;
|
||||
FormDataMultiPart mp = new FormDataMultiPart();
|
||||
|
||||
if(hasFields)
|
||||
postBody = mp;
|
||||
}
|
||||
else {
|
||||
|
||||
}
|
||||
|
||||
try {
|
||||
String response = apiInvoker.invokeAPI(basePath, path, "GET", queryParams, postBody, headerParams, formParams, contentType);
|
||||
if(response != null){
|
||||
return ;
|
||||
}
|
||||
else {
|
||||
return ;
|
||||
}
|
||||
} catch (ApiException ex) {
|
||||
if(ex.getCode() == 404) {
|
||||
return ;
|
||||
}
|
||||
else {
|
||||
throw ex;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public void getRelatedWords (String word, String useCanonical, String relationshipTypes, Integer limitPerRelationshipType) throws ApiException {
|
||||
Object postBody = null;
|
||||
|
||||
|
||||
// create path and map variables
|
||||
String path = "/word.json/{word}/relatedWords".replaceAll("\\{format\\}","json")
|
||||
.replaceAll("\\{" + "word" + "\\}", apiInvoker.escapeString(word.toString()));
|
||||
|
||||
// query params
|
||||
Map<String, String> queryParams = new HashMap<String, String>();
|
||||
Map<String, String> headerParams = new HashMap<String, String>();
|
||||
Map<String, String> formParams = new HashMap<String, String>();
|
||||
|
||||
if(!"null".equals(String.valueOf(useCanonical)))
|
||||
queryParams.put("useCanonical", String.valueOf(useCanonical));
|
||||
if(!"null".equals(String.valueOf(relationshipTypes)))
|
||||
queryParams.put("relationshipTypes", String.valueOf(relationshipTypes));
|
||||
if(!"null".equals(String.valueOf(limitPerRelationshipType)))
|
||||
queryParams.put("limitPerRelationshipType", String.valueOf(limitPerRelationshipType));
|
||||
|
||||
|
||||
String[] contentTypes = {
|
||||
|
||||
};
|
||||
|
||||
String contentType = contentTypes.length > 0 ? contentTypes[0] : "application/json";
|
||||
|
||||
if(contentType.startsWith("multipart/form-data")) {
|
||||
boolean hasFields = false;
|
||||
FormDataMultiPart mp = new FormDataMultiPart();
|
||||
|
||||
if(hasFields)
|
||||
postBody = mp;
|
||||
}
|
||||
else {
|
||||
|
||||
}
|
||||
|
||||
try {
|
||||
String response = apiInvoker.invokeAPI(basePath, path, "GET", queryParams, postBody, headerParams, formParams, contentType);
|
||||
if(response != null){
|
||||
return ;
|
||||
}
|
||||
else {
|
||||
return ;
|
||||
}
|
||||
} catch (ApiException ex) {
|
||||
if(ex.getCode() == 404) {
|
||||
return ;
|
||||
}
|
||||
else {
|
||||
throw ex;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public void getTopExample (String word, String useCanonical) throws ApiException {
|
||||
Object postBody = null;
|
||||
|
||||
|
||||
// create path and map variables
|
||||
String path = "/word.json/{word}/topExample".replaceAll("\\{format\\}","json")
|
||||
.replaceAll("\\{" + "word" + "\\}", apiInvoker.escapeString(word.toString()));
|
||||
|
||||
// query params
|
||||
Map<String, String> queryParams = new HashMap<String, String>();
|
||||
Map<String, String> headerParams = new HashMap<String, String>();
|
||||
Map<String, String> formParams = new HashMap<String, String>();
|
||||
|
||||
if(!"null".equals(String.valueOf(useCanonical)))
|
||||
queryParams.put("useCanonical", String.valueOf(useCanonical));
|
||||
|
||||
|
||||
String[] contentTypes = {
|
||||
|
||||
};
|
||||
|
||||
String contentType = contentTypes.length > 0 ? contentTypes[0] : "application/json";
|
||||
|
||||
if(contentType.startsWith("multipart/form-data")) {
|
||||
boolean hasFields = false;
|
||||
FormDataMultiPart mp = new FormDataMultiPart();
|
||||
|
||||
if(hasFields)
|
||||
postBody = mp;
|
||||
}
|
||||
else {
|
||||
|
||||
}
|
||||
|
||||
try {
|
||||
String response = apiInvoker.invokeAPI(basePath, path, "GET", queryParams, postBody, headerParams, formParams, contentType);
|
||||
if(response != null){
|
||||
return ;
|
||||
}
|
||||
else {
|
||||
return ;
|
||||
}
|
||||
} catch (ApiException ex) {
|
||||
if(ex.getCode() == 404) {
|
||||
return ;
|
||||
}
|
||||
else {
|
||||
throw ex;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,359 @@
|
||||
package io.swagger.client.api;
|
||||
|
||||
import io.swagger.client.ApiException;
|
||||
import io.swagger.client.ApiInvoker;
|
||||
|
||||
import io.swagger.client.model.*;
|
||||
|
||||
import java.util.*;
|
||||
|
||||
import io.swagger.client.model.WordList;
|
||||
import java.util.*;
|
||||
import io.swagger.client.model.StringValue;
|
||||
|
||||
import com.sun.jersey.multipart.FormDataMultiPart;
|
||||
|
||||
import javax.ws.rs.core.MediaType;
|
||||
|
||||
import java.io.File;
|
||||
import java.util.Map;
|
||||
import java.util.HashMap;
|
||||
|
||||
public class WordListApi {
|
||||
String basePath = "http://api.wordnik.com/v4";
|
||||
ApiInvoker apiInvoker = ApiInvoker.getInstance();
|
||||
|
||||
public ApiInvoker getInvoker() {
|
||||
return apiInvoker;
|
||||
}
|
||||
|
||||
public void setBasePath(String basePath) {
|
||||
this.basePath = basePath;
|
||||
}
|
||||
|
||||
public String getBasePath() {
|
||||
return basePath;
|
||||
}
|
||||
|
||||
|
||||
|
||||
public void getWordListByPermalink (String permalink, String auth_token) throws ApiException {
|
||||
Object postBody = null;
|
||||
|
||||
|
||||
// create path and map variables
|
||||
String path = "/wordList.json/{permalink}".replaceAll("\\{format\\}","json")
|
||||
.replaceAll("\\{" + "permalink" + "\\}", apiInvoker.escapeString(permalink.toString()));
|
||||
|
||||
// query params
|
||||
Map<String, String> queryParams = new HashMap<String, String>();
|
||||
Map<String, String> headerParams = new HashMap<String, String>();
|
||||
Map<String, String> formParams = new HashMap<String, String>();
|
||||
|
||||
|
||||
headerParams.put("auth_token", auth_token);
|
||||
|
||||
String[] contentTypes = {
|
||||
|
||||
};
|
||||
|
||||
String contentType = contentTypes.length > 0 ? contentTypes[0] : "application/json";
|
||||
|
||||
if(contentType.startsWith("multipart/form-data")) {
|
||||
boolean hasFields = false;
|
||||
FormDataMultiPart mp = new FormDataMultiPart();
|
||||
|
||||
if(hasFields)
|
||||
postBody = mp;
|
||||
}
|
||||
else {
|
||||
|
||||
}
|
||||
|
||||
try {
|
||||
String response = apiInvoker.invokeAPI(basePath, path, "GET", queryParams, postBody, headerParams, formParams, contentType);
|
||||
if(response != null){
|
||||
return ;
|
||||
}
|
||||
else {
|
||||
return ;
|
||||
}
|
||||
} catch (ApiException ex) {
|
||||
if(ex.getCode() == 404) {
|
||||
return ;
|
||||
}
|
||||
else {
|
||||
throw ex;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public void updateWordList (String permalink, WordList body, String auth_token) throws ApiException {
|
||||
Object postBody = body;
|
||||
|
||||
|
||||
// create path and map variables
|
||||
String path = "/wordList.json/{permalink}".replaceAll("\\{format\\}","json")
|
||||
.replaceAll("\\{" + "permalink" + "\\}", apiInvoker.escapeString(permalink.toString()));
|
||||
|
||||
// query params
|
||||
Map<String, String> queryParams = new HashMap<String, String>();
|
||||
Map<String, String> headerParams = new HashMap<String, String>();
|
||||
Map<String, String> formParams = new HashMap<String, String>();
|
||||
|
||||
|
||||
headerParams.put("auth_token", auth_token);
|
||||
|
||||
String[] contentTypes = {
|
||||
|
||||
};
|
||||
|
||||
String contentType = contentTypes.length > 0 ? contentTypes[0] : "application/json";
|
||||
|
||||
if(contentType.startsWith("multipart/form-data")) {
|
||||
boolean hasFields = false;
|
||||
FormDataMultiPart mp = new FormDataMultiPart();
|
||||
|
||||
if(hasFields)
|
||||
postBody = mp;
|
||||
}
|
||||
else {
|
||||
|
||||
}
|
||||
|
||||
try {
|
||||
String response = apiInvoker.invokeAPI(basePath, path, "PUT", queryParams, postBody, headerParams, formParams, contentType);
|
||||
if(response != null){
|
||||
return ;
|
||||
}
|
||||
else {
|
||||
return ;
|
||||
}
|
||||
} catch (ApiException ex) {
|
||||
if(ex.getCode() == 404) {
|
||||
return ;
|
||||
}
|
||||
else {
|
||||
throw ex;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public void deleteWordList (String permalink, String auth_token) throws ApiException {
|
||||
Object postBody = null;
|
||||
|
||||
|
||||
// create path and map variables
|
||||
String path = "/wordList.json/{permalink}".replaceAll("\\{format\\}","json")
|
||||
.replaceAll("\\{" + "permalink" + "\\}", apiInvoker.escapeString(permalink.toString()));
|
||||
|
||||
// query params
|
||||
Map<String, String> queryParams = new HashMap<String, String>();
|
||||
Map<String, String> headerParams = new HashMap<String, String>();
|
||||
Map<String, String> formParams = new HashMap<String, String>();
|
||||
|
||||
|
||||
headerParams.put("auth_token", auth_token);
|
||||
|
||||
String[] contentTypes = {
|
||||
|
||||
};
|
||||
|
||||
String contentType = contentTypes.length > 0 ? contentTypes[0] : "application/json";
|
||||
|
||||
if(contentType.startsWith("multipart/form-data")) {
|
||||
boolean hasFields = false;
|
||||
FormDataMultiPart mp = new FormDataMultiPart();
|
||||
|
||||
if(hasFields)
|
||||
postBody = mp;
|
||||
}
|
||||
else {
|
||||
|
||||
}
|
||||
|
||||
try {
|
||||
String response = apiInvoker.invokeAPI(basePath, path, "DELETE", queryParams, postBody, headerParams, formParams, contentType);
|
||||
if(response != null){
|
||||
return ;
|
||||
}
|
||||
else {
|
||||
return ;
|
||||
}
|
||||
} catch (ApiException ex) {
|
||||
if(ex.getCode() == 404) {
|
||||
return ;
|
||||
}
|
||||
else {
|
||||
throw ex;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public void deleteWordsFromWordList (String permalink, List<StringValue> body, String auth_token) throws ApiException {
|
||||
Object postBody = body;
|
||||
|
||||
|
||||
// create path and map variables
|
||||
String path = "/wordList.json/{permalink}/deleteWords".replaceAll("\\{format\\}","json")
|
||||
.replaceAll("\\{" + "permalink" + "\\}", apiInvoker.escapeString(permalink.toString()));
|
||||
|
||||
// query params
|
||||
Map<String, String> queryParams = new HashMap<String, String>();
|
||||
Map<String, String> headerParams = new HashMap<String, String>();
|
||||
Map<String, String> formParams = new HashMap<String, String>();
|
||||
|
||||
|
||||
headerParams.put("auth_token", auth_token);
|
||||
|
||||
String[] contentTypes = {
|
||||
|
||||
};
|
||||
|
||||
String contentType = contentTypes.length > 0 ? contentTypes[0] : "application/json";
|
||||
|
||||
if(contentType.startsWith("multipart/form-data")) {
|
||||
boolean hasFields = false;
|
||||
FormDataMultiPart mp = new FormDataMultiPart();
|
||||
|
||||
if(hasFields)
|
||||
postBody = mp;
|
||||
}
|
||||
else {
|
||||
|
||||
}
|
||||
|
||||
try {
|
||||
String response = apiInvoker.invokeAPI(basePath, path, "POST", queryParams, postBody, headerParams, formParams, contentType);
|
||||
if(response != null){
|
||||
return ;
|
||||
}
|
||||
else {
|
||||
return ;
|
||||
}
|
||||
} catch (ApiException ex) {
|
||||
if(ex.getCode() == 404) {
|
||||
return ;
|
||||
}
|
||||
else {
|
||||
throw ex;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public void getWordListWords (String permalink, String sortBy, String sortOrder, Integer skip, Integer limit, String auth_token) throws ApiException {
|
||||
Object postBody = null;
|
||||
|
||||
|
||||
// create path and map variables
|
||||
String path = "/wordList.json/{permalink}/words".replaceAll("\\{format\\}","json")
|
||||
.replaceAll("\\{" + "permalink" + "\\}", apiInvoker.escapeString(permalink.toString()));
|
||||
|
||||
// query params
|
||||
Map<String, String> queryParams = new HashMap<String, String>();
|
||||
Map<String, String> headerParams = new HashMap<String, String>();
|
||||
Map<String, String> formParams = new HashMap<String, String>();
|
||||
|
||||
if(!"null".equals(String.valueOf(sortBy)))
|
||||
queryParams.put("sortBy", String.valueOf(sortBy));
|
||||
if(!"null".equals(String.valueOf(sortOrder)))
|
||||
queryParams.put("sortOrder", String.valueOf(sortOrder));
|
||||
if(!"null".equals(String.valueOf(skip)))
|
||||
queryParams.put("skip", String.valueOf(skip));
|
||||
if(!"null".equals(String.valueOf(limit)))
|
||||
queryParams.put("limit", String.valueOf(limit));
|
||||
|
||||
headerParams.put("auth_token", auth_token);
|
||||
|
||||
String[] contentTypes = {
|
||||
|
||||
};
|
||||
|
||||
String contentType = contentTypes.length > 0 ? contentTypes[0] : "application/json";
|
||||
|
||||
if(contentType.startsWith("multipart/form-data")) {
|
||||
boolean hasFields = false;
|
||||
FormDataMultiPart mp = new FormDataMultiPart();
|
||||
|
||||
if(hasFields)
|
||||
postBody = mp;
|
||||
}
|
||||
else {
|
||||
|
||||
}
|
||||
|
||||
try {
|
||||
String response = apiInvoker.invokeAPI(basePath, path, "GET", queryParams, postBody, headerParams, formParams, contentType);
|
||||
if(response != null){
|
||||
return ;
|
||||
}
|
||||
else {
|
||||
return ;
|
||||
}
|
||||
} catch (ApiException ex) {
|
||||
if(ex.getCode() == 404) {
|
||||
return ;
|
||||
}
|
||||
else {
|
||||
throw ex;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public void addWordsToWordList (String permalink, List<StringValue> body, String auth_token) throws ApiException {
|
||||
Object postBody = body;
|
||||
|
||||
|
||||
// create path and map variables
|
||||
String path = "/wordList.json/{permalink}/words".replaceAll("\\{format\\}","json")
|
||||
.replaceAll("\\{" + "permalink" + "\\}", apiInvoker.escapeString(permalink.toString()));
|
||||
|
||||
// query params
|
||||
Map<String, String> queryParams = new HashMap<String, String>();
|
||||
Map<String, String> headerParams = new HashMap<String, String>();
|
||||
Map<String, String> formParams = new HashMap<String, String>();
|
||||
|
||||
|
||||
headerParams.put("auth_token", auth_token);
|
||||
|
||||
String[] contentTypes = {
|
||||
|
||||
};
|
||||
|
||||
String contentType = contentTypes.length > 0 ? contentTypes[0] : "application/json";
|
||||
|
||||
if(contentType.startsWith("multipart/form-data")) {
|
||||
boolean hasFields = false;
|
||||
FormDataMultiPart mp = new FormDataMultiPart();
|
||||
|
||||
if(hasFields)
|
||||
postBody = mp;
|
||||
}
|
||||
else {
|
||||
|
||||
}
|
||||
|
||||
try {
|
||||
String response = apiInvoker.invokeAPI(basePath, path, "POST", queryParams, postBody, headerParams, formParams, contentType);
|
||||
if(response != null){
|
||||
return ;
|
||||
}
|
||||
else {
|
||||
return ;
|
||||
}
|
||||
} catch (ApiException ex) {
|
||||
if(ex.getCode() == 404) {
|
||||
return ;
|
||||
}
|
||||
else {
|
||||
throw ex;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,88 @@
|
||||
package io.swagger.client.api;
|
||||
|
||||
import io.swagger.client.ApiException;
|
||||
import io.swagger.client.ApiInvoker;
|
||||
|
||||
import io.swagger.client.model.*;
|
||||
|
||||
import java.util.*;
|
||||
|
||||
import io.swagger.client.model.WordList;
|
||||
|
||||
import com.sun.jersey.multipart.FormDataMultiPart;
|
||||
|
||||
import javax.ws.rs.core.MediaType;
|
||||
|
||||
import java.io.File;
|
||||
import java.util.Map;
|
||||
import java.util.HashMap;
|
||||
|
||||
public class WordListsApi {
|
||||
String basePath = "http://api.wordnik.com/v4";
|
||||
ApiInvoker apiInvoker = ApiInvoker.getInstance();
|
||||
|
||||
public ApiInvoker getInvoker() {
|
||||
return apiInvoker;
|
||||
}
|
||||
|
||||
public void setBasePath(String basePath) {
|
||||
this.basePath = basePath;
|
||||
}
|
||||
|
||||
public String getBasePath() {
|
||||
return basePath;
|
||||
}
|
||||
|
||||
|
||||
|
||||
public void createWordList (WordList body, String auth_token) throws ApiException {
|
||||
Object postBody = body;
|
||||
|
||||
|
||||
// create path and map variables
|
||||
String path = "/wordLists.json".replaceAll("\\{format\\}","json");
|
||||
|
||||
// query params
|
||||
Map<String, String> queryParams = new HashMap<String, String>();
|
||||
Map<String, String> headerParams = new HashMap<String, String>();
|
||||
Map<String, String> formParams = new HashMap<String, String>();
|
||||
|
||||
|
||||
headerParams.put("auth_token", auth_token);
|
||||
|
||||
String[] contentTypes = {
|
||||
|
||||
};
|
||||
|
||||
String contentType = contentTypes.length > 0 ? contentTypes[0] : "application/json";
|
||||
|
||||
if(contentType.startsWith("multipart/form-data")) {
|
||||
boolean hasFields = false;
|
||||
FormDataMultiPart mp = new FormDataMultiPart();
|
||||
|
||||
if(hasFields)
|
||||
postBody = mp;
|
||||
}
|
||||
else {
|
||||
|
||||
}
|
||||
|
||||
try {
|
||||
String response = apiInvoker.invokeAPI(basePath, path, "POST", queryParams, postBody, headerParams, formParams, contentType);
|
||||
if(response != null){
|
||||
return ;
|
||||
}
|
||||
else {
|
||||
return ;
|
||||
}
|
||||
} catch (ApiException ex) {
|
||||
if(ex.getCode() == 404) {
|
||||
return ;
|
||||
}
|
||||
else {
|
||||
throw ex;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,385 @@
|
||||
package io.swagger.client.api;
|
||||
|
||||
import io.swagger.client.ApiException;
|
||||
import io.swagger.client.ApiInvoker;
|
||||
|
||||
import io.swagger.client.model.*;
|
||||
|
||||
import java.util.*;
|
||||
|
||||
|
||||
import com.sun.jersey.multipart.FormDataMultiPart;
|
||||
|
||||
import javax.ws.rs.core.MediaType;
|
||||
|
||||
import java.io.File;
|
||||
import java.util.Map;
|
||||
import java.util.HashMap;
|
||||
|
||||
public class WordsApi {
|
||||
String basePath = "http://api.wordnik.com/v4";
|
||||
ApiInvoker apiInvoker = ApiInvoker.getInstance();
|
||||
|
||||
public ApiInvoker getInvoker() {
|
||||
return apiInvoker;
|
||||
}
|
||||
|
||||
public void setBasePath(String basePath) {
|
||||
this.basePath = basePath;
|
||||
}
|
||||
|
||||
public String getBasePath() {
|
||||
return basePath;
|
||||
}
|
||||
|
||||
|
||||
|
||||
public void getRandomWord (String hasDictionaryDef, String includePartOfSpeech, String excludePartOfSpeech, Integer minCorpusCount, Integer maxCorpusCount, Integer minDictionaryCount, Integer maxDictionaryCount, Integer minLength, Integer maxLength) throws ApiException {
|
||||
Object postBody = null;
|
||||
|
||||
|
||||
// create path and map variables
|
||||
String path = "/words.json/randomWord".replaceAll("\\{format\\}","json");
|
||||
|
||||
// query params
|
||||
Map<String, String> queryParams = new HashMap<String, String>();
|
||||
Map<String, String> headerParams = new HashMap<String, String>();
|
||||
Map<String, String> formParams = new HashMap<String, String>();
|
||||
|
||||
if(!"null".equals(String.valueOf(hasDictionaryDef)))
|
||||
queryParams.put("hasDictionaryDef", String.valueOf(hasDictionaryDef));
|
||||
if(!"null".equals(String.valueOf(includePartOfSpeech)))
|
||||
queryParams.put("includePartOfSpeech", String.valueOf(includePartOfSpeech));
|
||||
if(!"null".equals(String.valueOf(excludePartOfSpeech)))
|
||||
queryParams.put("excludePartOfSpeech", String.valueOf(excludePartOfSpeech));
|
||||
if(!"null".equals(String.valueOf(minCorpusCount)))
|
||||
queryParams.put("minCorpusCount", String.valueOf(minCorpusCount));
|
||||
if(!"null".equals(String.valueOf(maxCorpusCount)))
|
||||
queryParams.put("maxCorpusCount", String.valueOf(maxCorpusCount));
|
||||
if(!"null".equals(String.valueOf(minDictionaryCount)))
|
||||
queryParams.put("minDictionaryCount", String.valueOf(minDictionaryCount));
|
||||
if(!"null".equals(String.valueOf(maxDictionaryCount)))
|
||||
queryParams.put("maxDictionaryCount", String.valueOf(maxDictionaryCount));
|
||||
if(!"null".equals(String.valueOf(minLength)))
|
||||
queryParams.put("minLength", String.valueOf(minLength));
|
||||
if(!"null".equals(String.valueOf(maxLength)))
|
||||
queryParams.put("maxLength", String.valueOf(maxLength));
|
||||
|
||||
|
||||
String[] contentTypes = {
|
||||
|
||||
};
|
||||
|
||||
String contentType = contentTypes.length > 0 ? contentTypes[0] : "application/json";
|
||||
|
||||
if(contentType.startsWith("multipart/form-data")) {
|
||||
boolean hasFields = false;
|
||||
FormDataMultiPart mp = new FormDataMultiPart();
|
||||
|
||||
if(hasFields)
|
||||
postBody = mp;
|
||||
}
|
||||
else {
|
||||
|
||||
}
|
||||
|
||||
try {
|
||||
String response = apiInvoker.invokeAPI(basePath, path, "GET", queryParams, postBody, headerParams, formParams, contentType);
|
||||
if(response != null){
|
||||
return ;
|
||||
}
|
||||
else {
|
||||
return ;
|
||||
}
|
||||
} catch (ApiException ex) {
|
||||
if(ex.getCode() == 404) {
|
||||
return ;
|
||||
}
|
||||
else {
|
||||
throw ex;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public void getRandomWords (String hasDictionaryDef, String includePartOfSpeech, String excludePartOfSpeech, Integer minCorpusCount, Integer maxCorpusCount, Integer minDictionaryCount, Integer maxDictionaryCount, Integer minLength, Integer maxLength, String sortBy, String sortOrder, Integer limit) throws ApiException {
|
||||
Object postBody = null;
|
||||
|
||||
|
||||
// create path and map variables
|
||||
String path = "/words.json/randomWords".replaceAll("\\{format\\}","json");
|
||||
|
||||
// query params
|
||||
Map<String, String> queryParams = new HashMap<String, String>();
|
||||
Map<String, String> headerParams = new HashMap<String, String>();
|
||||
Map<String, String> formParams = new HashMap<String, String>();
|
||||
|
||||
if(!"null".equals(String.valueOf(hasDictionaryDef)))
|
||||
queryParams.put("hasDictionaryDef", String.valueOf(hasDictionaryDef));
|
||||
if(!"null".equals(String.valueOf(includePartOfSpeech)))
|
||||
queryParams.put("includePartOfSpeech", String.valueOf(includePartOfSpeech));
|
||||
if(!"null".equals(String.valueOf(excludePartOfSpeech)))
|
||||
queryParams.put("excludePartOfSpeech", String.valueOf(excludePartOfSpeech));
|
||||
if(!"null".equals(String.valueOf(minCorpusCount)))
|
||||
queryParams.put("minCorpusCount", String.valueOf(minCorpusCount));
|
||||
if(!"null".equals(String.valueOf(maxCorpusCount)))
|
||||
queryParams.put("maxCorpusCount", String.valueOf(maxCorpusCount));
|
||||
if(!"null".equals(String.valueOf(minDictionaryCount)))
|
||||
queryParams.put("minDictionaryCount", String.valueOf(minDictionaryCount));
|
||||
if(!"null".equals(String.valueOf(maxDictionaryCount)))
|
||||
queryParams.put("maxDictionaryCount", String.valueOf(maxDictionaryCount));
|
||||
if(!"null".equals(String.valueOf(minLength)))
|
||||
queryParams.put("minLength", String.valueOf(minLength));
|
||||
if(!"null".equals(String.valueOf(maxLength)))
|
||||
queryParams.put("maxLength", String.valueOf(maxLength));
|
||||
if(!"null".equals(String.valueOf(sortBy)))
|
||||
queryParams.put("sortBy", String.valueOf(sortBy));
|
||||
if(!"null".equals(String.valueOf(sortOrder)))
|
||||
queryParams.put("sortOrder", String.valueOf(sortOrder));
|
||||
if(!"null".equals(String.valueOf(limit)))
|
||||
queryParams.put("limit", String.valueOf(limit));
|
||||
|
||||
|
||||
String[] contentTypes = {
|
||||
|
||||
};
|
||||
|
||||
String contentType = contentTypes.length > 0 ? contentTypes[0] : "application/json";
|
||||
|
||||
if(contentType.startsWith("multipart/form-data")) {
|
||||
boolean hasFields = false;
|
||||
FormDataMultiPart mp = new FormDataMultiPart();
|
||||
|
||||
if(hasFields)
|
||||
postBody = mp;
|
||||
}
|
||||
else {
|
||||
|
||||
}
|
||||
|
||||
try {
|
||||
String response = apiInvoker.invokeAPI(basePath, path, "GET", queryParams, postBody, headerParams, formParams, contentType);
|
||||
if(response != null){
|
||||
return ;
|
||||
}
|
||||
else {
|
||||
return ;
|
||||
}
|
||||
} catch (ApiException ex) {
|
||||
if(ex.getCode() == 404) {
|
||||
return ;
|
||||
}
|
||||
else {
|
||||
throw ex;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public void reverseDictionary (String query, String findSenseForWord, String includeSourceDictionaries, String excludeSourceDictionaries, String includePartOfSpeech, String excludePartOfSpeech, Integer minCorpusCount, Integer maxCorpusCount, Integer minLength, Integer maxLength, String expandTerms, String includeTags, String sortBy, String sortOrder, String skip, Integer limit) throws ApiException {
|
||||
Object postBody = null;
|
||||
|
||||
|
||||
// create path and map variables
|
||||
String path = "/words.json/reverseDictionary".replaceAll("\\{format\\}","json");
|
||||
|
||||
// query params
|
||||
Map<String, String> queryParams = new HashMap<String, String>();
|
||||
Map<String, String> headerParams = new HashMap<String, String>();
|
||||
Map<String, String> formParams = new HashMap<String, String>();
|
||||
|
||||
if(!"null".equals(String.valueOf(query)))
|
||||
queryParams.put("query", String.valueOf(query));
|
||||
if(!"null".equals(String.valueOf(findSenseForWord)))
|
||||
queryParams.put("findSenseForWord", String.valueOf(findSenseForWord));
|
||||
if(!"null".equals(String.valueOf(includeSourceDictionaries)))
|
||||
queryParams.put("includeSourceDictionaries", String.valueOf(includeSourceDictionaries));
|
||||
if(!"null".equals(String.valueOf(excludeSourceDictionaries)))
|
||||
queryParams.put("excludeSourceDictionaries", String.valueOf(excludeSourceDictionaries));
|
||||
if(!"null".equals(String.valueOf(includePartOfSpeech)))
|
||||
queryParams.put("includePartOfSpeech", String.valueOf(includePartOfSpeech));
|
||||
if(!"null".equals(String.valueOf(excludePartOfSpeech)))
|
||||
queryParams.put("excludePartOfSpeech", String.valueOf(excludePartOfSpeech));
|
||||
if(!"null".equals(String.valueOf(minCorpusCount)))
|
||||
queryParams.put("minCorpusCount", String.valueOf(minCorpusCount));
|
||||
if(!"null".equals(String.valueOf(maxCorpusCount)))
|
||||
queryParams.put("maxCorpusCount", String.valueOf(maxCorpusCount));
|
||||
if(!"null".equals(String.valueOf(minLength)))
|
||||
queryParams.put("minLength", String.valueOf(minLength));
|
||||
if(!"null".equals(String.valueOf(maxLength)))
|
||||
queryParams.put("maxLength", String.valueOf(maxLength));
|
||||
if(!"null".equals(String.valueOf(expandTerms)))
|
||||
queryParams.put("expandTerms", String.valueOf(expandTerms));
|
||||
if(!"null".equals(String.valueOf(includeTags)))
|
||||
queryParams.put("includeTags", String.valueOf(includeTags));
|
||||
if(!"null".equals(String.valueOf(sortBy)))
|
||||
queryParams.put("sortBy", String.valueOf(sortBy));
|
||||
if(!"null".equals(String.valueOf(sortOrder)))
|
||||
queryParams.put("sortOrder", String.valueOf(sortOrder));
|
||||
if(!"null".equals(String.valueOf(skip)))
|
||||
queryParams.put("skip", String.valueOf(skip));
|
||||
if(!"null".equals(String.valueOf(limit)))
|
||||
queryParams.put("limit", String.valueOf(limit));
|
||||
|
||||
|
||||
String[] contentTypes = {
|
||||
|
||||
};
|
||||
|
||||
String contentType = contentTypes.length > 0 ? contentTypes[0] : "application/json";
|
||||
|
||||
if(contentType.startsWith("multipart/form-data")) {
|
||||
boolean hasFields = false;
|
||||
FormDataMultiPart mp = new FormDataMultiPart();
|
||||
|
||||
if(hasFields)
|
||||
postBody = mp;
|
||||
}
|
||||
else {
|
||||
|
||||
}
|
||||
|
||||
try {
|
||||
String response = apiInvoker.invokeAPI(basePath, path, "GET", queryParams, postBody, headerParams, formParams, contentType);
|
||||
if(response != null){
|
||||
return ;
|
||||
}
|
||||
else {
|
||||
return ;
|
||||
}
|
||||
} catch (ApiException ex) {
|
||||
if(ex.getCode() == 404) {
|
||||
return ;
|
||||
}
|
||||
else {
|
||||
throw ex;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public void searchWords (String query, String caseSensitive, String includePartOfSpeech, String excludePartOfSpeech, Integer minCorpusCount, Integer maxCorpusCount, Integer minDictionaryCount, Integer maxDictionaryCount, Integer minLength, Integer maxLength, Integer skip, Integer limit) throws ApiException {
|
||||
Object postBody = null;
|
||||
|
||||
|
||||
// create path and map variables
|
||||
String path = "/words.json/search/{query}".replaceAll("\\{format\\}","json")
|
||||
.replaceAll("\\{" + "query" + "\\}", apiInvoker.escapeString(query.toString()));
|
||||
|
||||
// query params
|
||||
Map<String, String> queryParams = new HashMap<String, String>();
|
||||
Map<String, String> headerParams = new HashMap<String, String>();
|
||||
Map<String, String> formParams = new HashMap<String, String>();
|
||||
|
||||
if(!"null".equals(String.valueOf(caseSensitive)))
|
||||
queryParams.put("caseSensitive", String.valueOf(caseSensitive));
|
||||
if(!"null".equals(String.valueOf(includePartOfSpeech)))
|
||||
queryParams.put("includePartOfSpeech", String.valueOf(includePartOfSpeech));
|
||||
if(!"null".equals(String.valueOf(excludePartOfSpeech)))
|
||||
queryParams.put("excludePartOfSpeech", String.valueOf(excludePartOfSpeech));
|
||||
if(!"null".equals(String.valueOf(minCorpusCount)))
|
||||
queryParams.put("minCorpusCount", String.valueOf(minCorpusCount));
|
||||
if(!"null".equals(String.valueOf(maxCorpusCount)))
|
||||
queryParams.put("maxCorpusCount", String.valueOf(maxCorpusCount));
|
||||
if(!"null".equals(String.valueOf(minDictionaryCount)))
|
||||
queryParams.put("minDictionaryCount", String.valueOf(minDictionaryCount));
|
||||
if(!"null".equals(String.valueOf(maxDictionaryCount)))
|
||||
queryParams.put("maxDictionaryCount", String.valueOf(maxDictionaryCount));
|
||||
if(!"null".equals(String.valueOf(minLength)))
|
||||
queryParams.put("minLength", String.valueOf(minLength));
|
||||
if(!"null".equals(String.valueOf(maxLength)))
|
||||
queryParams.put("maxLength", String.valueOf(maxLength));
|
||||
if(!"null".equals(String.valueOf(skip)))
|
||||
queryParams.put("skip", String.valueOf(skip));
|
||||
if(!"null".equals(String.valueOf(limit)))
|
||||
queryParams.put("limit", String.valueOf(limit));
|
||||
|
||||
|
||||
String[] contentTypes = {
|
||||
|
||||
};
|
||||
|
||||
String contentType = contentTypes.length > 0 ? contentTypes[0] : "application/json";
|
||||
|
||||
if(contentType.startsWith("multipart/form-data")) {
|
||||
boolean hasFields = false;
|
||||
FormDataMultiPart mp = new FormDataMultiPart();
|
||||
|
||||
if(hasFields)
|
||||
postBody = mp;
|
||||
}
|
||||
else {
|
||||
|
||||
}
|
||||
|
||||
try {
|
||||
String response = apiInvoker.invokeAPI(basePath, path, "GET", queryParams, postBody, headerParams, formParams, contentType);
|
||||
if(response != null){
|
||||
return ;
|
||||
}
|
||||
else {
|
||||
return ;
|
||||
}
|
||||
} catch (ApiException ex) {
|
||||
if(ex.getCode() == 404) {
|
||||
return ;
|
||||
}
|
||||
else {
|
||||
throw ex;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public void getWordOfTheDay (String date) throws ApiException {
|
||||
Object postBody = null;
|
||||
|
||||
|
||||
// create path and map variables
|
||||
String path = "/words.json/wordOfTheDay".replaceAll("\\{format\\}","json");
|
||||
|
||||
// query params
|
||||
Map<String, String> queryParams = new HashMap<String, String>();
|
||||
Map<String, String> headerParams = new HashMap<String, String>();
|
||||
Map<String, String> formParams = new HashMap<String, String>();
|
||||
|
||||
if(!"null".equals(String.valueOf(date)))
|
||||
queryParams.put("date", String.valueOf(date));
|
||||
|
||||
|
||||
String[] contentTypes = {
|
||||
|
||||
};
|
||||
|
||||
String contentType = contentTypes.length > 0 ? contentTypes[0] : "application/json";
|
||||
|
||||
if(contentType.startsWith("multipart/form-data")) {
|
||||
boolean hasFields = false;
|
||||
FormDataMultiPart mp = new FormDataMultiPart();
|
||||
|
||||
if(hasFields)
|
||||
postBody = mp;
|
||||
}
|
||||
else {
|
||||
|
||||
}
|
||||
|
||||
try {
|
||||
String response = apiInvoker.invokeAPI(basePath, path, "GET", queryParams, postBody, headerParams, formParams, contentType);
|
||||
if(response != null){
|
||||
return ;
|
||||
}
|
||||
else {
|
||||
return ;
|
||||
}
|
||||
} catch (ApiException ex) {
|
||||
if(ex.getCode() == 404) {
|
||||
return ;
|
||||
}
|
||||
else {
|
||||
throw ex;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,117 @@
|
||||
package io.swagger.client.model;
|
||||
|
||||
|
||||
import com.wordnik.swagger.annotations.*;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
|
||||
@ApiModel(description = "")
|
||||
public class ApiTokenStatus {
|
||||
private Boolean valid = null;
|
||||
private String token = null;
|
||||
private Long resetsInMillis = null;
|
||||
|
||||
//public enum resetsInMillisEnum { };
|
||||
|
||||
private Long remainingCalls = null;
|
||||
|
||||
//public enum remainingCallsEnum { };
|
||||
|
||||
private Long expiresInMillis = null;
|
||||
|
||||
//public enum expiresInMillisEnum { };
|
||||
|
||||
private Long totalRequests = null;
|
||||
|
||||
//public enum totalRequestsEnum { };
|
||||
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("valid")
|
||||
public Boolean getValid() {
|
||||
return valid;
|
||||
}
|
||||
public void setValid(Boolean valid) {
|
||||
this.valid = valid;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("token")
|
||||
public String getToken() {
|
||||
return token;
|
||||
}
|
||||
public void setToken(String token) {
|
||||
this.token = token;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("resetsInMillis")
|
||||
public Long getResetsInMillis() {
|
||||
return resetsInMillis;
|
||||
}
|
||||
public void setResetsInMillis(Long resetsInMillis) {
|
||||
this.resetsInMillis = resetsInMillis;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("remainingCalls")
|
||||
public Long getRemainingCalls() {
|
||||
return remainingCalls;
|
||||
}
|
||||
public void setRemainingCalls(Long remainingCalls) {
|
||||
this.remainingCalls = remainingCalls;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("expiresInMillis")
|
||||
public Long getExpiresInMillis() {
|
||||
return expiresInMillis;
|
||||
}
|
||||
public void setExpiresInMillis(Long expiresInMillis) {
|
||||
this.expiresInMillis = expiresInMillis;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("totalRequests")
|
||||
public Long getTotalRequests() {
|
||||
return totalRequests;
|
||||
}
|
||||
public void setTotalRequests(Long totalRequests) {
|
||||
this.totalRequests = totalRequests;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class ApiTokenStatus {\n");
|
||||
|
||||
sb.append(" valid: ").append(valid).append("\n");
|
||||
sb.append(" token: ").append(token).append("\n");
|
||||
sb.append(" resetsInMillis: ").append(resetsInMillis).append("\n");
|
||||
sb.append(" remainingCalls: ").append(remainingCalls).append("\n");
|
||||
sb.append(" expiresInMillis: ").append(expiresInMillis).append("\n");
|
||||
sb.append(" totalRequests: ").append(totalRequests).append("\n");
|
||||
sb.append("}\n");
|
||||
return sb.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,236 @@
|
||||
package io.swagger.client.model;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
import com.wordnik.swagger.annotations.*;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
|
||||
@ApiModel(description = "")
|
||||
public class AudioFile {
|
||||
private String attributionUrl = null;
|
||||
private Integer commentCount = null;
|
||||
|
||||
//public enum commentCountEnum { };
|
||||
|
||||
private Integer voteCount = null;
|
||||
|
||||
//public enum voteCountEnum { };
|
||||
|
||||
private String fileUrl = null;
|
||||
private String audioType = null;
|
||||
private Long id = null;
|
||||
|
||||
//public enum idEnum { };
|
||||
|
||||
private Double duration = null;
|
||||
|
||||
//public enum durationEnum { };
|
||||
|
||||
private String attributionText = null;
|
||||
private String createdBy = null;
|
||||
private String description = null;
|
||||
private Date createdAt = null;
|
||||
private Float voteWeightedAverage = null;
|
||||
|
||||
//public enum voteWeightedAverageEnum { };
|
||||
|
||||
private Float voteAverage = null;
|
||||
|
||||
//public enum voteAverageEnum { };
|
||||
|
||||
private String word = null;
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("attributionUrl")
|
||||
public String getAttributionUrl() {
|
||||
return attributionUrl;
|
||||
}
|
||||
public void setAttributionUrl(String attributionUrl) {
|
||||
this.attributionUrl = attributionUrl;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("commentCount")
|
||||
public Integer getCommentCount() {
|
||||
return commentCount;
|
||||
}
|
||||
public void setCommentCount(Integer commentCount) {
|
||||
this.commentCount = commentCount;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("voteCount")
|
||||
public Integer getVoteCount() {
|
||||
return voteCount;
|
||||
}
|
||||
public void setVoteCount(Integer voteCount) {
|
||||
this.voteCount = voteCount;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("fileUrl")
|
||||
public String getFileUrl() {
|
||||
return fileUrl;
|
||||
}
|
||||
public void setFileUrl(String fileUrl) {
|
||||
this.fileUrl = fileUrl;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("audioType")
|
||||
public String getAudioType() {
|
||||
return audioType;
|
||||
}
|
||||
public void setAudioType(String audioType) {
|
||||
this.audioType = audioType;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("id")
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
public void setId(Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("duration")
|
||||
public Double getDuration() {
|
||||
return duration;
|
||||
}
|
||||
public void setDuration(Double duration) {
|
||||
this.duration = duration;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("attributionText")
|
||||
public String getAttributionText() {
|
||||
return attributionText;
|
||||
}
|
||||
public void setAttributionText(String attributionText) {
|
||||
this.attributionText = attributionText;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("createdBy")
|
||||
public String getCreatedBy() {
|
||||
return createdBy;
|
||||
}
|
||||
public void setCreatedBy(String createdBy) {
|
||||
this.createdBy = createdBy;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("description")
|
||||
public String getDescription() {
|
||||
return description;
|
||||
}
|
||||
public void setDescription(String description) {
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("createdAt")
|
||||
public Date getCreatedAt() {
|
||||
return createdAt;
|
||||
}
|
||||
public void setCreatedAt(Date createdAt) {
|
||||
this.createdAt = createdAt;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("voteWeightedAverage")
|
||||
public Float getVoteWeightedAverage() {
|
||||
return voteWeightedAverage;
|
||||
}
|
||||
public void setVoteWeightedAverage(Float voteWeightedAverage) {
|
||||
this.voteWeightedAverage = voteWeightedAverage;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("voteAverage")
|
||||
public Float getVoteAverage() {
|
||||
return voteAverage;
|
||||
}
|
||||
public void setVoteAverage(Float voteAverage) {
|
||||
this.voteAverage = voteAverage;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("word")
|
||||
public String getWord() {
|
||||
return word;
|
||||
}
|
||||
public void setWord(String word) {
|
||||
this.word = word;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class AudioFile {\n");
|
||||
|
||||
sb.append(" attributionUrl: ").append(attributionUrl).append("\n");
|
||||
sb.append(" commentCount: ").append(commentCount).append("\n");
|
||||
sb.append(" voteCount: ").append(voteCount).append("\n");
|
||||
sb.append(" fileUrl: ").append(fileUrl).append("\n");
|
||||
sb.append(" audioType: ").append(audioType).append("\n");
|
||||
sb.append(" id: ").append(id).append("\n");
|
||||
sb.append(" duration: ").append(duration).append("\n");
|
||||
sb.append(" attributionText: ").append(attributionText).append("\n");
|
||||
sb.append(" createdBy: ").append(createdBy).append("\n");
|
||||
sb.append(" description: ").append(description).append("\n");
|
||||
sb.append(" createdAt: ").append(createdAt).append("\n");
|
||||
sb.append(" voteWeightedAverage: ").append(voteWeightedAverage).append("\n");
|
||||
sb.append(" voteAverage: ").append(voteAverage).append("\n");
|
||||
sb.append(" word: ").append(word).append("\n");
|
||||
sb.append("}\n");
|
||||
return sb.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,52 @@
|
||||
package io.swagger.client.model;
|
||||
|
||||
|
||||
import com.wordnik.swagger.annotations.*;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
|
||||
@ApiModel(description = "")
|
||||
public class AudioType {
|
||||
private Integer id = null;
|
||||
|
||||
//public enum idEnum { };
|
||||
|
||||
private String name = null;
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("id")
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("name")
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class AudioType {\n");
|
||||
|
||||
sb.append(" id: ").append(id).append("\n");
|
||||
sb.append(" name: ").append(name).append("\n");
|
||||
sb.append("}\n");
|
||||
return sb.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,66 @@
|
||||
package io.swagger.client.model;
|
||||
|
||||
|
||||
import com.wordnik.swagger.annotations.*;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
|
||||
@ApiModel(description = "")
|
||||
public class AuthenticationToken {
|
||||
private String token = null;
|
||||
private Long userId = null;
|
||||
|
||||
//public enum userIdEnum { };
|
||||
|
||||
private String userSignature = null;
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("token")
|
||||
public String getToken() {
|
||||
return token;
|
||||
}
|
||||
public void setToken(String token) {
|
||||
this.token = token;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("userId")
|
||||
public Long getUserId() {
|
||||
return userId;
|
||||
}
|
||||
public void setUserId(Long userId) {
|
||||
this.userId = userId;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("userSignature")
|
||||
public String getUserSignature() {
|
||||
return userSignature;
|
||||
}
|
||||
public void setUserSignature(String userSignature) {
|
||||
this.userSignature = userSignature;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class AuthenticationToken {\n");
|
||||
|
||||
sb.append(" token: ").append(token).append("\n");
|
||||
sb.append(" userId: ").append(userId).append("\n");
|
||||
sb.append(" userSignature: ").append(userSignature).append("\n");
|
||||
sb.append("}\n");
|
||||
return sb.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,100 @@
|
||||
package io.swagger.client.model;
|
||||
|
||||
|
||||
import com.wordnik.swagger.annotations.*;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
|
||||
@ApiModel(description = "")
|
||||
public class Bigram {
|
||||
private Long count = null;
|
||||
|
||||
//public enum countEnum { };
|
||||
|
||||
private String gram2 = null;
|
||||
private String gram1 = null;
|
||||
private Double wlmi = null;
|
||||
|
||||
//public enum wlmiEnum { };
|
||||
|
||||
private Double mi = null;
|
||||
|
||||
//public enum miEnum { };
|
||||
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("count")
|
||||
public Long getCount() {
|
||||
return count;
|
||||
}
|
||||
public void setCount(Long count) {
|
||||
this.count = count;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("gram2")
|
||||
public String getGram2() {
|
||||
return gram2;
|
||||
}
|
||||
public void setGram2(String gram2) {
|
||||
this.gram2 = gram2;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("gram1")
|
||||
public String getGram1() {
|
||||
return gram1;
|
||||
}
|
||||
public void setGram1(String gram1) {
|
||||
this.gram1 = gram1;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("wlmi")
|
||||
public Double getWlmi() {
|
||||
return wlmi;
|
||||
}
|
||||
public void setWlmi(Double wlmi) {
|
||||
this.wlmi = wlmi;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("mi")
|
||||
public Double getMi() {
|
||||
return mi;
|
||||
}
|
||||
public void setMi(Double mi) {
|
||||
this.mi = mi;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class Bigram {\n");
|
||||
|
||||
sb.append(" count: ").append(count).append("\n");
|
||||
sb.append(" gram2: ").append(gram2).append("\n");
|
||||
sb.append(" gram1: ").append(gram1).append("\n");
|
||||
sb.append(" wlmi: ").append(wlmi).append("\n");
|
||||
sb.append(" mi: ").append(mi).append("\n");
|
||||
sb.append("}\n");
|
||||
return sb.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,52 @@
|
||||
package io.swagger.client.model;
|
||||
|
||||
|
||||
import com.wordnik.swagger.annotations.*;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
|
||||
@ApiModel(description = "")
|
||||
public class Category {
|
||||
private Long id = null;
|
||||
|
||||
//public enum idEnum { };
|
||||
|
||||
private String name = null;
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("id")
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
public void setId(Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("name")
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class Category {\n");
|
||||
|
||||
sb.append(" id: ").append(id).append("\n");
|
||||
sb.append(" name: ").append(name).append("\n");
|
||||
sb.append("}\n");
|
||||
return sb.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,49 @@
|
||||
package io.swagger.client.model;
|
||||
|
||||
|
||||
import com.wordnik.swagger.annotations.*;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
|
||||
@ApiModel(description = "")
|
||||
public class Citation {
|
||||
private String cite = null;
|
||||
private String source = null;
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("cite")
|
||||
public String getCite() {
|
||||
return cite;
|
||||
}
|
||||
public void setCite(String cite) {
|
||||
this.cite = cite;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("source")
|
||||
public String getSource() {
|
||||
return source;
|
||||
}
|
||||
public void setSource(String source) {
|
||||
this.source = source;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class Citation {\n");
|
||||
|
||||
sb.append(" cite: ").append(cite).append("\n");
|
||||
sb.append(" source: ").append(source).append("\n");
|
||||
sb.append("}\n");
|
||||
return sb.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,52 @@
|
||||
package io.swagger.client.model;
|
||||
|
||||
|
||||
import com.wordnik.swagger.annotations.*;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
|
||||
@ApiModel(description = "")
|
||||
public class ContentProvider {
|
||||
private Integer id = null;
|
||||
|
||||
//public enum idEnum { };
|
||||
|
||||
private String name = null;
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("id")
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("name")
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class ContentProvider {\n");
|
||||
|
||||
sb.append(" id: ").append(id).append("\n");
|
||||
sb.append(" name: ").append(name).append("\n");
|
||||
sb.append("}\n");
|
||||
return sb.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,255 @@
|
||||
package io.swagger.client.model;
|
||||
|
||||
import io.swagger.client.model.ExampleUsage;
|
||||
import io.swagger.client.model.Label;
|
||||
import io.swagger.client.model.Note;
|
||||
import java.util.*;
|
||||
import io.swagger.client.model.Related;
|
||||
import io.swagger.client.model.Citation;
|
||||
import io.swagger.client.model.TextPron;
|
||||
|
||||
import com.wordnik.swagger.annotations.*;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
|
||||
@ApiModel(description = "")
|
||||
public class Definition {
|
||||
private String extendedText = null;
|
||||
private String text = null;
|
||||
private String sourceDictionary = null;
|
||||
private List<Citation> citations = new ArrayList<Citation>() ;
|
||||
private List<Label> labels = new ArrayList<Label>() ;
|
||||
private Float score = null;
|
||||
|
||||
//public enum scoreEnum { };
|
||||
|
||||
private List<ExampleUsage> exampleUses = new ArrayList<ExampleUsage>() ;
|
||||
private String attributionUrl = null;
|
||||
private String seqString = null;
|
||||
private String attributionText = null;
|
||||
private List<Related> relatedWords = new ArrayList<Related>() ;
|
||||
private String sequence = null;
|
||||
private String word = null;
|
||||
private List<Note> notes = new ArrayList<Note>() ;
|
||||
private List<TextPron> textProns = new ArrayList<TextPron>() ;
|
||||
private String partOfSpeech = null;
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("extendedText")
|
||||
public String getExtendedText() {
|
||||
return extendedText;
|
||||
}
|
||||
public void setExtendedText(String extendedText) {
|
||||
this.extendedText = extendedText;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("text")
|
||||
public String getText() {
|
||||
return text;
|
||||
}
|
||||
public void setText(String text) {
|
||||
this.text = text;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("sourceDictionary")
|
||||
public String getSourceDictionary() {
|
||||
return sourceDictionary;
|
||||
}
|
||||
public void setSourceDictionary(String sourceDictionary) {
|
||||
this.sourceDictionary = sourceDictionary;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("citations")
|
||||
public List<Citation> getCitations() {
|
||||
return citations;
|
||||
}
|
||||
public void setCitations(List<Citation> citations) {
|
||||
this.citations = citations;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("labels")
|
||||
public List<Label> getLabels() {
|
||||
return labels;
|
||||
}
|
||||
public void setLabels(List<Label> labels) {
|
||||
this.labels = labels;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("score")
|
||||
public Float getScore() {
|
||||
return score;
|
||||
}
|
||||
public void setScore(Float score) {
|
||||
this.score = score;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("exampleUses")
|
||||
public List<ExampleUsage> getExampleUses() {
|
||||
return exampleUses;
|
||||
}
|
||||
public void setExampleUses(List<ExampleUsage> exampleUses) {
|
||||
this.exampleUses = exampleUses;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("attributionUrl")
|
||||
public String getAttributionUrl() {
|
||||
return attributionUrl;
|
||||
}
|
||||
public void setAttributionUrl(String attributionUrl) {
|
||||
this.attributionUrl = attributionUrl;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("seqString")
|
||||
public String getSeqString() {
|
||||
return seqString;
|
||||
}
|
||||
public void setSeqString(String seqString) {
|
||||
this.seqString = seqString;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("attributionText")
|
||||
public String getAttributionText() {
|
||||
return attributionText;
|
||||
}
|
||||
public void setAttributionText(String attributionText) {
|
||||
this.attributionText = attributionText;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("relatedWords")
|
||||
public List<Related> getRelatedWords() {
|
||||
return relatedWords;
|
||||
}
|
||||
public void setRelatedWords(List<Related> relatedWords) {
|
||||
this.relatedWords = relatedWords;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("sequence")
|
||||
public String getSequence() {
|
||||
return sequence;
|
||||
}
|
||||
public void setSequence(String sequence) {
|
||||
this.sequence = sequence;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("word")
|
||||
public String getWord() {
|
||||
return word;
|
||||
}
|
||||
public void setWord(String word) {
|
||||
this.word = word;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("notes")
|
||||
public List<Note> getNotes() {
|
||||
return notes;
|
||||
}
|
||||
public void setNotes(List<Note> notes) {
|
||||
this.notes = notes;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("textProns")
|
||||
public List<TextPron> getTextProns() {
|
||||
return textProns;
|
||||
}
|
||||
public void setTextProns(List<TextPron> textProns) {
|
||||
this.textProns = textProns;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("partOfSpeech")
|
||||
public String getPartOfSpeech() {
|
||||
return partOfSpeech;
|
||||
}
|
||||
public void setPartOfSpeech(String partOfSpeech) {
|
||||
this.partOfSpeech = partOfSpeech;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class Definition {\n");
|
||||
|
||||
sb.append(" extendedText: ").append(extendedText).append("\n");
|
||||
sb.append(" text: ").append(text).append("\n");
|
||||
sb.append(" sourceDictionary: ").append(sourceDictionary).append("\n");
|
||||
sb.append(" citations: ").append(citations).append("\n");
|
||||
sb.append(" labels: ").append(labels).append("\n");
|
||||
sb.append(" score: ").append(score).append("\n");
|
||||
sb.append(" exampleUses: ").append(exampleUses).append("\n");
|
||||
sb.append(" attributionUrl: ").append(attributionUrl).append("\n");
|
||||
sb.append(" seqString: ").append(seqString).append("\n");
|
||||
sb.append(" attributionText: ").append(attributionText).append("\n");
|
||||
sb.append(" relatedWords: ").append(relatedWords).append("\n");
|
||||
sb.append(" sequence: ").append(sequence).append("\n");
|
||||
sb.append(" word: ").append(word).append("\n");
|
||||
sb.append(" notes: ").append(notes).append("\n");
|
||||
sb.append(" textProns: ").append(textProns).append("\n");
|
||||
sb.append(" partOfSpeech: ").append(partOfSpeech).append("\n");
|
||||
sb.append("}\n");
|
||||
return sb.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,54 @@
|
||||
package io.swagger.client.model;
|
||||
|
||||
import java.util.*;
|
||||
import io.swagger.client.model.Definition;
|
||||
|
||||
import com.wordnik.swagger.annotations.*;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
|
||||
@ApiModel(description = "")
|
||||
public class DefinitionSearchResults {
|
||||
private List<Definition> results = new ArrayList<Definition>() ;
|
||||
private Integer totalResults = null;
|
||||
|
||||
//public enum totalResultsEnum { };
|
||||
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("results")
|
||||
public List<Definition> getResults() {
|
||||
return results;
|
||||
}
|
||||
public void setResults(List<Definition> results) {
|
||||
this.results = results;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("totalResults")
|
||||
public Integer getTotalResults() {
|
||||
return totalResults;
|
||||
}
|
||||
public void setTotalResults(Integer totalResults) {
|
||||
this.totalResults = totalResults;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class DefinitionSearchResults {\n");
|
||||
|
||||
sb.append(" results: ").append(results).append("\n");
|
||||
sb.append(" totalResults: ").append(totalResults).append("\n");
|
||||
sb.append("}\n");
|
||||
return sb.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,207 @@
|
||||
package io.swagger.client.model;
|
||||
|
||||
import io.swagger.client.model.Sentence;
|
||||
import io.swagger.client.model.ContentProvider;
|
||||
import io.swagger.client.model.ScoredWord;
|
||||
|
||||
import com.wordnik.swagger.annotations.*;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
|
||||
@ApiModel(description = "")
|
||||
public class Example {
|
||||
private Long id = null;
|
||||
|
||||
//public enum idEnum { };
|
||||
|
||||
private Long exampleId = null;
|
||||
|
||||
//public enum exampleIdEnum { };
|
||||
|
||||
private String title = null;
|
||||
private String text = null;
|
||||
private ScoredWord score = null;
|
||||
private Sentence sentence = null;
|
||||
private String word = null;
|
||||
private ContentProvider provider = null;
|
||||
private Integer year = null;
|
||||
|
||||
//public enum yearEnum { };
|
||||
|
||||
private Float rating = null;
|
||||
|
||||
//public enum ratingEnum { };
|
||||
|
||||
private Long documentId = null;
|
||||
|
||||
//public enum documentIdEnum { };
|
||||
|
||||
private String url = null;
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("id")
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
public void setId(Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("exampleId")
|
||||
public Long getExampleId() {
|
||||
return exampleId;
|
||||
}
|
||||
public void setExampleId(Long exampleId) {
|
||||
this.exampleId = exampleId;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("title")
|
||||
public String getTitle() {
|
||||
return title;
|
||||
}
|
||||
public void setTitle(String title) {
|
||||
this.title = title;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("text")
|
||||
public String getText() {
|
||||
return text;
|
||||
}
|
||||
public void setText(String text) {
|
||||
this.text = text;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("score")
|
||||
public ScoredWord getScore() {
|
||||
return score;
|
||||
}
|
||||
public void setScore(ScoredWord score) {
|
||||
this.score = score;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("sentence")
|
||||
public Sentence getSentence() {
|
||||
return sentence;
|
||||
}
|
||||
public void setSentence(Sentence sentence) {
|
||||
this.sentence = sentence;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("word")
|
||||
public String getWord() {
|
||||
return word;
|
||||
}
|
||||
public void setWord(String word) {
|
||||
this.word = word;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("provider")
|
||||
public ContentProvider getProvider() {
|
||||
return provider;
|
||||
}
|
||||
public void setProvider(ContentProvider provider) {
|
||||
this.provider = provider;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("year")
|
||||
public Integer getYear() {
|
||||
return year;
|
||||
}
|
||||
public void setYear(Integer year) {
|
||||
this.year = year;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("rating")
|
||||
public Float getRating() {
|
||||
return rating;
|
||||
}
|
||||
public void setRating(Float rating) {
|
||||
this.rating = rating;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("documentId")
|
||||
public Long getDocumentId() {
|
||||
return documentId;
|
||||
}
|
||||
public void setDocumentId(Long documentId) {
|
||||
this.documentId = documentId;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("url")
|
||||
public String getUrl() {
|
||||
return url;
|
||||
}
|
||||
public void setUrl(String url) {
|
||||
this.url = url;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class Example {\n");
|
||||
|
||||
sb.append(" id: ").append(id).append("\n");
|
||||
sb.append(" exampleId: ").append(exampleId).append("\n");
|
||||
sb.append(" title: ").append(title).append("\n");
|
||||
sb.append(" text: ").append(text).append("\n");
|
||||
sb.append(" score: ").append(score).append("\n");
|
||||
sb.append(" sentence: ").append(sentence).append("\n");
|
||||
sb.append(" word: ").append(word).append("\n");
|
||||
sb.append(" provider: ").append(provider).append("\n");
|
||||
sb.append(" year: ").append(year).append("\n");
|
||||
sb.append(" rating: ").append(rating).append("\n");
|
||||
sb.append(" documentId: ").append(documentId).append("\n");
|
||||
sb.append(" url: ").append(url).append("\n");
|
||||
sb.append("}\n");
|
||||
return sb.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,52 @@
|
||||
package io.swagger.client.model;
|
||||
|
||||
import io.swagger.client.model.Example;
|
||||
import io.swagger.client.model.Facet;
|
||||
import java.util.*;
|
||||
|
||||
import com.wordnik.swagger.annotations.*;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
|
||||
@ApiModel(description = "")
|
||||
public class ExampleSearchResults {
|
||||
private List<Facet> facets = new ArrayList<Facet>() ;
|
||||
private List<Example> examples = new ArrayList<Example>() ;
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("facets")
|
||||
public List<Facet> getFacets() {
|
||||
return facets;
|
||||
}
|
||||
public void setFacets(List<Facet> facets) {
|
||||
this.facets = facets;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("examples")
|
||||
public List<Example> getExamples() {
|
||||
return examples;
|
||||
}
|
||||
public void setExamples(List<Example> examples) {
|
||||
this.examples = examples;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class ExampleSearchResults {\n");
|
||||
|
||||
sb.append(" facets: ").append(facets).append("\n");
|
||||
sb.append(" examples: ").append(examples).append("\n");
|
||||
sb.append("}\n");
|
||||
return sb.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,35 @@
|
||||
package io.swagger.client.model;
|
||||
|
||||
|
||||
import com.wordnik.swagger.annotations.*;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
|
||||
@ApiModel(description = "")
|
||||
public class ExampleUsage {
|
||||
private String text = null;
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("text")
|
||||
public String getText() {
|
||||
return text;
|
||||
}
|
||||
public void setText(String text) {
|
||||
this.text = text;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class ExampleUsage {\n");
|
||||
|
||||
sb.append(" text: ").append(text).append("\n");
|
||||
sb.append("}\n");
|
||||
return sb.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,51 @@
|
||||
package io.swagger.client.model;
|
||||
|
||||
import io.swagger.client.model.FacetValue;
|
||||
import java.util.*;
|
||||
|
||||
import com.wordnik.swagger.annotations.*;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
|
||||
@ApiModel(description = "")
|
||||
public class Facet {
|
||||
private List<FacetValue> facetValues = new ArrayList<FacetValue>() ;
|
||||
private String name = null;
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("facetValues")
|
||||
public List<FacetValue> getFacetValues() {
|
||||
return facetValues;
|
||||
}
|
||||
public void setFacetValues(List<FacetValue> facetValues) {
|
||||
this.facetValues = facetValues;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("name")
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class Facet {\n");
|
||||
|
||||
sb.append(" facetValues: ").append(facetValues).append("\n");
|
||||
sb.append(" name: ").append(name).append("\n");
|
||||
sb.append("}\n");
|
||||
return sb.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,52 @@
|
||||
package io.swagger.client.model;
|
||||
|
||||
|
||||
import com.wordnik.swagger.annotations.*;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
|
||||
@ApiModel(description = "")
|
||||
public class FacetValue {
|
||||
private Long count = null;
|
||||
|
||||
//public enum countEnum { };
|
||||
|
||||
private String value = null;
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("count")
|
||||
public Long getCount() {
|
||||
return count;
|
||||
}
|
||||
public void setCount(Long count) {
|
||||
this.count = count;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("value")
|
||||
public String getValue() {
|
||||
return value;
|
||||
}
|
||||
public void setValue(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class FacetValue {\n");
|
||||
|
||||
sb.append(" count: ").append(count).append("\n");
|
||||
sb.append(" value: ").append(value).append("\n");
|
||||
sb.append("}\n");
|
||||
return sb.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,55 @@
|
||||
package io.swagger.client.model;
|
||||
|
||||
|
||||
import com.wordnik.swagger.annotations.*;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
|
||||
@ApiModel(description = "")
|
||||
public class Frequency {
|
||||
private Long count = null;
|
||||
|
||||
//public enum countEnum { };
|
||||
|
||||
private Integer year = null;
|
||||
|
||||
//public enum yearEnum { };
|
||||
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("count")
|
||||
public Long getCount() {
|
||||
return count;
|
||||
}
|
||||
public void setCount(Long count) {
|
||||
this.count = count;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("year")
|
||||
public Integer getYear() {
|
||||
return year;
|
||||
}
|
||||
public void setYear(Integer year) {
|
||||
this.year = year;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class Frequency {\n");
|
||||
|
||||
sb.append(" count: ").append(count).append("\n");
|
||||
sb.append(" year: ").append(year).append("\n");
|
||||
sb.append("}\n");
|
||||
return sb.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,99 @@
|
||||
package io.swagger.client.model;
|
||||
|
||||
import io.swagger.client.model.Frequency;
|
||||
import java.util.*;
|
||||
|
||||
import com.wordnik.swagger.annotations.*;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
|
||||
@ApiModel(description = "")
|
||||
public class FrequencySummary {
|
||||
private Integer unknownYearCount = null;
|
||||
|
||||
//public enum unknownYearCountEnum { };
|
||||
|
||||
private Long totalCount = null;
|
||||
|
||||
//public enum totalCountEnum { };
|
||||
|
||||
private String frequencyString = null;
|
||||
private String word = null;
|
||||
private List<Frequency> frequency = new ArrayList<Frequency>() ;
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("unknownYearCount")
|
||||
public Integer getUnknownYearCount() {
|
||||
return unknownYearCount;
|
||||
}
|
||||
public void setUnknownYearCount(Integer unknownYearCount) {
|
||||
this.unknownYearCount = unknownYearCount;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("totalCount")
|
||||
public Long getTotalCount() {
|
||||
return totalCount;
|
||||
}
|
||||
public void setTotalCount(Long totalCount) {
|
||||
this.totalCount = totalCount;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("frequencyString")
|
||||
public String getFrequencyString() {
|
||||
return frequencyString;
|
||||
}
|
||||
public void setFrequencyString(String frequencyString) {
|
||||
this.frequencyString = frequencyString;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("word")
|
||||
public String getWord() {
|
||||
return word;
|
||||
}
|
||||
public void setWord(String word) {
|
||||
this.word = word;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("frequency")
|
||||
public List<Frequency> getFrequency() {
|
||||
return frequency;
|
||||
}
|
||||
public void setFrequency(List<Frequency> frequency) {
|
||||
this.frequency = frequency;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class FrequencySummary {\n");
|
||||
|
||||
sb.append(" unknownYearCount: ").append(unknownYearCount).append("\n");
|
||||
sb.append(" totalCount: ").append(totalCount).append("\n");
|
||||
sb.append(" frequencyString: ").append(frequencyString).append("\n");
|
||||
sb.append(" word: ").append(word).append("\n");
|
||||
sb.append(" frequency: ").append(frequency).append("\n");
|
||||
sb.append("}\n");
|
||||
return sb.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,49 @@
|
||||
package io.swagger.client.model;
|
||||
|
||||
|
||||
import com.wordnik.swagger.annotations.*;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
|
||||
@ApiModel(description = "")
|
||||
public class Label {
|
||||
private String text = null;
|
||||
private String type = null;
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("text")
|
||||
public String getText() {
|
||||
return text;
|
||||
}
|
||||
public void setText(String text) {
|
||||
this.text = text;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("type")
|
||||
public String getType() {
|
||||
return type;
|
||||
}
|
||||
public void setType(String type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class Label {\n");
|
||||
|
||||
sb.append(" text: ").append(text).append("\n");
|
||||
sb.append(" type: ").append(type).append("\n");
|
||||
sb.append("}\n");
|
||||
return sb.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,81 @@
|
||||
package io.swagger.client.model;
|
||||
|
||||
import java.util.*;
|
||||
|
||||
import com.wordnik.swagger.annotations.*;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
|
||||
@ApiModel(description = "")
|
||||
public class Note {
|
||||
private String noteType = null;
|
||||
private List<String> appliesTo = new ArrayList<String>() ;
|
||||
private String value = null;
|
||||
private Integer pos = null;
|
||||
|
||||
//public enum posEnum { };
|
||||
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("noteType")
|
||||
public String getNoteType() {
|
||||
return noteType;
|
||||
}
|
||||
public void setNoteType(String noteType) {
|
||||
this.noteType = noteType;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("appliesTo")
|
||||
public List<String> getAppliesTo() {
|
||||
return appliesTo;
|
||||
}
|
||||
public void setAppliesTo(List<String> appliesTo) {
|
||||
this.appliesTo = appliesTo;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("value")
|
||||
public String getValue() {
|
||||
return value;
|
||||
}
|
||||
public void setValue(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("pos")
|
||||
public Integer getPos() {
|
||||
return pos;
|
||||
}
|
||||
public void setPos(Integer pos) {
|
||||
this.pos = pos;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class Note {\n");
|
||||
|
||||
sb.append(" noteType: ").append(noteType).append("\n");
|
||||
sb.append(" appliesTo: ").append(appliesTo).append("\n");
|
||||
sb.append(" value: ").append(value).append("\n");
|
||||
sb.append(" pos: ").append(pos).append("\n");
|
||||
sb.append("}\n");
|
||||
return sb.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,66 @@
|
||||
package io.swagger.client.model;
|
||||
|
||||
import io.swagger.client.model.Category;
|
||||
import io.swagger.client.model.Root;
|
||||
import java.util.*;
|
||||
|
||||
import com.wordnik.swagger.annotations.*;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
|
||||
@ApiModel(description = "")
|
||||
public class PartOfSpeech {
|
||||
private List<Root> roots = new ArrayList<Root>() ;
|
||||
private List<String> storageAbbr = new ArrayList<String>() ;
|
||||
private List<Category> allCategories = new ArrayList<Category>() ;
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("roots")
|
||||
public List<Root> getRoots() {
|
||||
return roots;
|
||||
}
|
||||
public void setRoots(List<Root> roots) {
|
||||
this.roots = roots;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("storageAbbr")
|
||||
public List<String> getStorageAbbr() {
|
||||
return storageAbbr;
|
||||
}
|
||||
public void setStorageAbbr(List<String> storageAbbr) {
|
||||
this.storageAbbr = storageAbbr;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("allCategories")
|
||||
public List<Category> getAllCategories() {
|
||||
return allCategories;
|
||||
}
|
||||
public void setAllCategories(List<Category> allCategories) {
|
||||
this.allCategories = allCategories;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class PartOfSpeech {\n");
|
||||
|
||||
sb.append(" roots: ").append(roots).append("\n");
|
||||
sb.append(" storageAbbr: ").append(storageAbbr).append("\n");
|
||||
sb.append(" allCategories: ").append(allCategories).append("\n");
|
||||
sb.append("}\n");
|
||||
return sb.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,120 @@
|
||||
package io.swagger.client.model;
|
||||
|
||||
import java.util.*;
|
||||
|
||||
import com.wordnik.swagger.annotations.*;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
|
||||
@ApiModel(description = "")
|
||||
public class Related {
|
||||
private String label1 = null;
|
||||
private String relationshipType = null;
|
||||
private String label2 = null;
|
||||
private String label3 = null;
|
||||
private List<String> words = new ArrayList<String>() ;
|
||||
private String gram = null;
|
||||
private String label4 = null;
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("label1")
|
||||
public String getLabel1() {
|
||||
return label1;
|
||||
}
|
||||
public void setLabel1(String label1) {
|
||||
this.label1 = label1;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("relationshipType")
|
||||
public String getRelationshipType() {
|
||||
return relationshipType;
|
||||
}
|
||||
public void setRelationshipType(String relationshipType) {
|
||||
this.relationshipType = relationshipType;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("label2")
|
||||
public String getLabel2() {
|
||||
return label2;
|
||||
}
|
||||
public void setLabel2(String label2) {
|
||||
this.label2 = label2;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("label3")
|
||||
public String getLabel3() {
|
||||
return label3;
|
||||
}
|
||||
public void setLabel3(String label3) {
|
||||
this.label3 = label3;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("words")
|
||||
public List<String> getWords() {
|
||||
return words;
|
||||
}
|
||||
public void setWords(List<String> words) {
|
||||
this.words = words;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("gram")
|
||||
public String getGram() {
|
||||
return gram;
|
||||
}
|
||||
public void setGram(String gram) {
|
||||
this.gram = gram;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("label4")
|
||||
public String getLabel4() {
|
||||
return label4;
|
||||
}
|
||||
public void setLabel4(String label4) {
|
||||
this.label4 = label4;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class Related {\n");
|
||||
|
||||
sb.append(" label1: ").append(label1).append("\n");
|
||||
sb.append(" relationshipType: ").append(relationshipType).append("\n");
|
||||
sb.append(" label2: ").append(label2).append("\n");
|
||||
sb.append(" label3: ").append(label3).append("\n");
|
||||
sb.append(" words: ").append(words).append("\n");
|
||||
sb.append(" gram: ").append(gram).append("\n");
|
||||
sb.append(" label4: ").append(label4).append("\n");
|
||||
sb.append("}\n");
|
||||
return sb.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,68 @@
|
||||
package io.swagger.client.model;
|
||||
|
||||
import io.swagger.client.model.Category;
|
||||
import java.util.*;
|
||||
|
||||
import com.wordnik.swagger.annotations.*;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
|
||||
@ApiModel(description = "")
|
||||
public class Root {
|
||||
private Long id = null;
|
||||
|
||||
//public enum idEnum { };
|
||||
|
||||
private String name = null;
|
||||
private List<Category> categories = new ArrayList<Category>() ;
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("id")
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
public void setId(Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("name")
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("categories")
|
||||
public List<Category> getCategories() {
|
||||
return categories;
|
||||
}
|
||||
public void setCategories(List<Category> categories) {
|
||||
this.categories = categories;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class Root {\n");
|
||||
|
||||
sb.append(" id: ").append(id).append("\n");
|
||||
sb.append(" name: ").append(name).append("\n");
|
||||
sb.append(" categories: ").append(categories).append("\n");
|
||||
sb.append("}\n");
|
||||
return sb.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,193 @@
|
||||
package io.swagger.client.model;
|
||||
|
||||
|
||||
import com.wordnik.swagger.annotations.*;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
|
||||
@ApiModel(description = "")
|
||||
public class ScoredWord {
|
||||
private Integer position = null;
|
||||
|
||||
//public enum positionEnum { };
|
||||
|
||||
private Long id = null;
|
||||
|
||||
//public enum idEnum { };
|
||||
|
||||
private Integer docTermCount = null;
|
||||
|
||||
//public enum docTermCountEnum { };
|
||||
|
||||
private String lemma = null;
|
||||
private String wordType = null;
|
||||
private Float score = null;
|
||||
|
||||
//public enum scoreEnum { };
|
||||
|
||||
private Long sentenceId = null;
|
||||
|
||||
//public enum sentenceIdEnum { };
|
||||
|
||||
private String word = null;
|
||||
private Boolean stopword = null;
|
||||
private Double baseWordScore = null;
|
||||
|
||||
//public enum baseWordScoreEnum { };
|
||||
|
||||
private String partOfSpeech = null;
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("position")
|
||||
public Integer getPosition() {
|
||||
return position;
|
||||
}
|
||||
public void setPosition(Integer position) {
|
||||
this.position = position;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("id")
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
public void setId(Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("docTermCount")
|
||||
public Integer getDocTermCount() {
|
||||
return docTermCount;
|
||||
}
|
||||
public void setDocTermCount(Integer docTermCount) {
|
||||
this.docTermCount = docTermCount;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("lemma")
|
||||
public String getLemma() {
|
||||
return lemma;
|
||||
}
|
||||
public void setLemma(String lemma) {
|
||||
this.lemma = lemma;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("wordType")
|
||||
public String getWordType() {
|
||||
return wordType;
|
||||
}
|
||||
public void setWordType(String wordType) {
|
||||
this.wordType = wordType;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("score")
|
||||
public Float getScore() {
|
||||
return score;
|
||||
}
|
||||
public void setScore(Float score) {
|
||||
this.score = score;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("sentenceId")
|
||||
public Long getSentenceId() {
|
||||
return sentenceId;
|
||||
}
|
||||
public void setSentenceId(Long sentenceId) {
|
||||
this.sentenceId = sentenceId;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("word")
|
||||
public String getWord() {
|
||||
return word;
|
||||
}
|
||||
public void setWord(String word) {
|
||||
this.word = word;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("stopword")
|
||||
public Boolean getStopword() {
|
||||
return stopword;
|
||||
}
|
||||
public void setStopword(Boolean stopword) {
|
||||
this.stopword = stopword;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("baseWordScore")
|
||||
public Double getBaseWordScore() {
|
||||
return baseWordScore;
|
||||
}
|
||||
public void setBaseWordScore(Double baseWordScore) {
|
||||
this.baseWordScore = baseWordScore;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("partOfSpeech")
|
||||
public String getPartOfSpeech() {
|
||||
return partOfSpeech;
|
||||
}
|
||||
public void setPartOfSpeech(String partOfSpeech) {
|
||||
this.partOfSpeech = partOfSpeech;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class ScoredWord {\n");
|
||||
|
||||
sb.append(" position: ").append(position).append("\n");
|
||||
sb.append(" id: ").append(id).append("\n");
|
||||
sb.append(" docTermCount: ").append(docTermCount).append("\n");
|
||||
sb.append(" lemma: ").append(lemma).append("\n");
|
||||
sb.append(" wordType: ").append(wordType).append("\n");
|
||||
sb.append(" score: ").append(score).append("\n");
|
||||
sb.append(" sentenceId: ").append(sentenceId).append("\n");
|
||||
sb.append(" word: ").append(word).append("\n");
|
||||
sb.append(" stopword: ").append(stopword).append("\n");
|
||||
sb.append(" baseWordScore: ").append(baseWordScore).append("\n");
|
||||
sb.append(" partOfSpeech: ").append(partOfSpeech).append("\n");
|
||||
sb.append("}\n");
|
||||
return sb.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,116 @@
|
||||
package io.swagger.client.model;
|
||||
|
||||
import java.util.*;
|
||||
import io.swagger.client.model.ScoredWord;
|
||||
|
||||
import com.wordnik.swagger.annotations.*;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
|
||||
@ApiModel(description = "")
|
||||
public class Sentence {
|
||||
private Boolean hasScoredWords = null;
|
||||
private Long id = null;
|
||||
|
||||
//public enum idEnum { };
|
||||
|
||||
private List<ScoredWord> scoredWords = new ArrayList<ScoredWord>() ;
|
||||
private String display = null;
|
||||
private Integer rating = null;
|
||||
|
||||
//public enum ratingEnum { };
|
||||
|
||||
private Long documentMetadataId = null;
|
||||
|
||||
//public enum documentMetadataIdEnum { };
|
||||
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("hasScoredWords")
|
||||
public Boolean getHasScoredWords() {
|
||||
return hasScoredWords;
|
||||
}
|
||||
public void setHasScoredWords(Boolean hasScoredWords) {
|
||||
this.hasScoredWords = hasScoredWords;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("id")
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
public void setId(Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("scoredWords")
|
||||
public List<ScoredWord> getScoredWords() {
|
||||
return scoredWords;
|
||||
}
|
||||
public void setScoredWords(List<ScoredWord> scoredWords) {
|
||||
this.scoredWords = scoredWords;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("display")
|
||||
public String getDisplay() {
|
||||
return display;
|
||||
}
|
||||
public void setDisplay(String display) {
|
||||
this.display = display;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("rating")
|
||||
public Integer getRating() {
|
||||
return rating;
|
||||
}
|
||||
public void setRating(Integer rating) {
|
||||
this.rating = rating;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("documentMetadataId")
|
||||
public Long getDocumentMetadataId() {
|
||||
return documentMetadataId;
|
||||
}
|
||||
public void setDocumentMetadataId(Long documentMetadataId) {
|
||||
this.documentMetadataId = documentMetadataId;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class Sentence {\n");
|
||||
|
||||
sb.append(" hasScoredWords: ").append(hasScoredWords).append("\n");
|
||||
sb.append(" id: ").append(id).append("\n");
|
||||
sb.append(" scoredWords: ").append(scoredWords).append("\n");
|
||||
sb.append(" display: ").append(display).append("\n");
|
||||
sb.append(" rating: ").append(rating).append("\n");
|
||||
sb.append(" documentMetadataId: ").append(documentMetadataId).append("\n");
|
||||
sb.append("}\n");
|
||||
return sb.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,77 @@
|
||||
package io.swagger.client.model;
|
||||
|
||||
|
||||
import com.wordnik.swagger.annotations.*;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
|
||||
@ApiModel(description = "")
|
||||
public class SimpleDefinition {
|
||||
private String text = null;
|
||||
private String source = null;
|
||||
private String note = null;
|
||||
private String partOfSpeech = null;
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("text")
|
||||
public String getText() {
|
||||
return text;
|
||||
}
|
||||
public void setText(String text) {
|
||||
this.text = text;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("source")
|
||||
public String getSource() {
|
||||
return source;
|
||||
}
|
||||
public void setSource(String source) {
|
||||
this.source = source;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("note")
|
||||
public String getNote() {
|
||||
return note;
|
||||
}
|
||||
public void setNote(String note) {
|
||||
this.note = note;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("partOfSpeech")
|
||||
public String getPartOfSpeech() {
|
||||
return partOfSpeech;
|
||||
}
|
||||
public void setPartOfSpeech(String partOfSpeech) {
|
||||
this.partOfSpeech = partOfSpeech;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class SimpleDefinition {\n");
|
||||
|
||||
sb.append(" text: ").append(text).append("\n");
|
||||
sb.append(" source: ").append(source).append("\n");
|
||||
sb.append(" note: ").append(note).append("\n");
|
||||
sb.append(" partOfSpeech: ").append(partOfSpeech).append("\n");
|
||||
sb.append("}\n");
|
||||
return sb.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,80 @@
|
||||
package io.swagger.client.model;
|
||||
|
||||
|
||||
import com.wordnik.swagger.annotations.*;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
|
||||
@ApiModel(description = "")
|
||||
public class SimpleExample {
|
||||
private Long id = null;
|
||||
|
||||
//public enum idEnum { };
|
||||
|
||||
private String title = null;
|
||||
private String text = null;
|
||||
private String url = null;
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("id")
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
public void setId(Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("title")
|
||||
public String getTitle() {
|
||||
return title;
|
||||
}
|
||||
public void setTitle(String title) {
|
||||
this.title = title;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("text")
|
||||
public String getText() {
|
||||
return text;
|
||||
}
|
||||
public void setText(String text) {
|
||||
this.text = text;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("url")
|
||||
public String getUrl() {
|
||||
return url;
|
||||
}
|
||||
public void setUrl(String url) {
|
||||
this.url = url;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class SimpleExample {\n");
|
||||
|
||||
sb.append(" id: ").append(id).append("\n");
|
||||
sb.append(" title: ").append(title).append("\n");
|
||||
sb.append(" text: ").append(text).append("\n");
|
||||
sb.append(" url: ").append(url).append("\n");
|
||||
sb.append("}\n");
|
||||
return sb.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,35 @@
|
||||
package io.swagger.client.model;
|
||||
|
||||
|
||||
import com.wordnik.swagger.annotations.*;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
|
||||
@ApiModel(description = "")
|
||||
public class StringValue {
|
||||
private String word = null;
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("word")
|
||||
public String getWord() {
|
||||
return word;
|
||||
}
|
||||
public void setWord(String word) {
|
||||
this.word = word;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class StringValue {\n");
|
||||
|
||||
sb.append(" word: ").append(word).append("\n");
|
||||
sb.append("}\n");
|
||||
return sb.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,66 @@
|
||||
package io.swagger.client.model;
|
||||
|
||||
|
||||
import com.wordnik.swagger.annotations.*;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
|
||||
@ApiModel(description = "")
|
||||
public class Syllable {
|
||||
private String text = null;
|
||||
private Integer seq = null;
|
||||
|
||||
//public enum seqEnum { };
|
||||
|
||||
private String type = null;
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("text")
|
||||
public String getText() {
|
||||
return text;
|
||||
}
|
||||
public void setText(String text) {
|
||||
this.text = text;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("seq")
|
||||
public Integer getSeq() {
|
||||
return seq;
|
||||
}
|
||||
public void setSeq(Integer seq) {
|
||||
this.seq = seq;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("type")
|
||||
public String getType() {
|
||||
return type;
|
||||
}
|
||||
public void setType(String type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class Syllable {\n");
|
||||
|
||||
sb.append(" text: ").append(text).append("\n");
|
||||
sb.append(" seq: ").append(seq).append("\n");
|
||||
sb.append(" type: ").append(type).append("\n");
|
||||
sb.append("}\n");
|
||||
return sb.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,66 @@
|
||||
package io.swagger.client.model;
|
||||
|
||||
|
||||
import com.wordnik.swagger.annotations.*;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
|
||||
@ApiModel(description = "")
|
||||
public class TextPron {
|
||||
private String raw = null;
|
||||
private Integer seq = null;
|
||||
|
||||
//public enum seqEnum { };
|
||||
|
||||
private String rawType = null;
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("raw")
|
||||
public String getRaw() {
|
||||
return raw;
|
||||
}
|
||||
public void setRaw(String raw) {
|
||||
this.raw = raw;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("seq")
|
||||
public Integer getSeq() {
|
||||
return seq;
|
||||
}
|
||||
public void setSeq(Integer seq) {
|
||||
this.seq = seq;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("rawType")
|
||||
public String getRawType() {
|
||||
return rawType;
|
||||
}
|
||||
public void setRawType(String rawType) {
|
||||
this.rawType = rawType;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class TextPron {\n");
|
||||
|
||||
sb.append(" raw: ").append(raw).append("\n");
|
||||
sb.append(" seq: ").append(seq).append("\n");
|
||||
sb.append(" rawType: ").append(rawType).append("\n");
|
||||
sb.append("}\n");
|
||||
return sb.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,139 @@
|
||||
package io.swagger.client.model;
|
||||
|
||||
|
||||
import com.wordnik.swagger.annotations.*;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
|
||||
@ApiModel(description = "")
|
||||
public class User {
|
||||
private Long id = null;
|
||||
|
||||
//public enum idEnum { };
|
||||
|
||||
private String username = null;
|
||||
private String email = null;
|
||||
private Integer status = null;
|
||||
|
||||
//public enum statusEnum { };
|
||||
|
||||
private String faceBookId = null;
|
||||
private String userName = null;
|
||||
private String displayName = null;
|
||||
private String password = null;
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("id")
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
public void setId(Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("username")
|
||||
public String getUsername() {
|
||||
return username;
|
||||
}
|
||||
public void setUsername(String username) {
|
||||
this.username = username;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("email")
|
||||
public String getEmail() {
|
||||
return email;
|
||||
}
|
||||
public void setEmail(String email) {
|
||||
this.email = email;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("status")
|
||||
public Integer getStatus() {
|
||||
return status;
|
||||
}
|
||||
public void setStatus(Integer status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("faceBookId")
|
||||
public String getFaceBookId() {
|
||||
return faceBookId;
|
||||
}
|
||||
public void setFaceBookId(String faceBookId) {
|
||||
this.faceBookId = faceBookId;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("userName")
|
||||
public String getUserName() {
|
||||
return userName;
|
||||
}
|
||||
public void setUserName(String userName) {
|
||||
this.userName = userName;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("displayName")
|
||||
public String getDisplayName() {
|
||||
return displayName;
|
||||
}
|
||||
public void setDisplayName(String displayName) {
|
||||
this.displayName = displayName;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("password")
|
||||
public String getPassword() {
|
||||
return password;
|
||||
}
|
||||
public void setPassword(String password) {
|
||||
this.password = password;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class User {\n");
|
||||
|
||||
sb.append(" id: ").append(id).append("\n");
|
||||
sb.append(" username: ").append(username).append("\n");
|
||||
sb.append(" email: ").append(email).append("\n");
|
||||
sb.append(" status: ").append(status).append("\n");
|
||||
sb.append(" faceBookId: ").append(faceBookId).append("\n");
|
||||
sb.append(" userName: ").append(userName).append("\n");
|
||||
sb.append(" displayName: ").append(displayName).append("\n");
|
||||
sb.append(" password: ").append(password).append("\n");
|
||||
sb.append("}\n");
|
||||
return sb.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,185 @@
|
||||
package io.swagger.client.model;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
import com.wordnik.swagger.annotations.*;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
|
||||
@ApiModel(description = "")
|
||||
public class WordList {
|
||||
private Long id = null;
|
||||
|
||||
//public enum idEnum { };
|
||||
|
||||
private String permalink = null;
|
||||
private String name = null;
|
||||
private Date createdAt = null;
|
||||
private Date updatedAt = null;
|
||||
private Date lastActivityAt = null;
|
||||
private String username = null;
|
||||
private Long userId = null;
|
||||
|
||||
//public enum userIdEnum { };
|
||||
|
||||
private String description = null;
|
||||
private Long numberWordsInList = null;
|
||||
|
||||
//public enum numberWordsInListEnum { };
|
||||
|
||||
private String type = null;
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("id")
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
public void setId(Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("permalink")
|
||||
public String getPermalink() {
|
||||
return permalink;
|
||||
}
|
||||
public void setPermalink(String permalink) {
|
||||
this.permalink = permalink;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("name")
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("createdAt")
|
||||
public Date getCreatedAt() {
|
||||
return createdAt;
|
||||
}
|
||||
public void setCreatedAt(Date createdAt) {
|
||||
this.createdAt = createdAt;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("updatedAt")
|
||||
public Date getUpdatedAt() {
|
||||
return updatedAt;
|
||||
}
|
||||
public void setUpdatedAt(Date updatedAt) {
|
||||
this.updatedAt = updatedAt;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("lastActivityAt")
|
||||
public Date getLastActivityAt() {
|
||||
return lastActivityAt;
|
||||
}
|
||||
public void setLastActivityAt(Date lastActivityAt) {
|
||||
this.lastActivityAt = lastActivityAt;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("username")
|
||||
public String getUsername() {
|
||||
return username;
|
||||
}
|
||||
public void setUsername(String username) {
|
||||
this.username = username;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("userId")
|
||||
public Long getUserId() {
|
||||
return userId;
|
||||
}
|
||||
public void setUserId(Long userId) {
|
||||
this.userId = userId;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("description")
|
||||
public String getDescription() {
|
||||
return description;
|
||||
}
|
||||
public void setDescription(String description) {
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("numberWordsInList")
|
||||
public Long getNumberWordsInList() {
|
||||
return numberWordsInList;
|
||||
}
|
||||
public void setNumberWordsInList(Long numberWordsInList) {
|
||||
this.numberWordsInList = numberWordsInList;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("type")
|
||||
public String getType() {
|
||||
return type;
|
||||
}
|
||||
public void setType(String type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class WordList {\n");
|
||||
|
||||
sb.append(" id: ").append(id).append("\n");
|
||||
sb.append(" permalink: ").append(permalink).append("\n");
|
||||
sb.append(" name: ").append(name).append("\n");
|
||||
sb.append(" createdAt: ").append(createdAt).append("\n");
|
||||
sb.append(" updatedAt: ").append(updatedAt).append("\n");
|
||||
sb.append(" lastActivityAt: ").append(lastActivityAt).append("\n");
|
||||
sb.append(" username: ").append(username).append("\n");
|
||||
sb.append(" userId: ").append(userId).append("\n");
|
||||
sb.append(" description: ").append(description).append("\n");
|
||||
sb.append(" numberWordsInList: ").append(numberWordsInList).append("\n");
|
||||
sb.append(" type: ").append(type).append("\n");
|
||||
sb.append("}\n");
|
||||
return sb.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,132 @@
|
||||
package io.swagger.client.model;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
import com.wordnik.swagger.annotations.*;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
|
||||
@ApiModel(description = "")
|
||||
public class WordListWord {
|
||||
private Long id = null;
|
||||
|
||||
//public enum idEnum { };
|
||||
|
||||
private String word = null;
|
||||
private String username = null;
|
||||
private Long userId = null;
|
||||
|
||||
//public enum userIdEnum { };
|
||||
|
||||
private Date createdAt = null;
|
||||
private Long numberCommentsOnWord = null;
|
||||
|
||||
//public enum numberCommentsOnWordEnum { };
|
||||
|
||||
private Long numberLists = null;
|
||||
|
||||
//public enum numberListsEnum { };
|
||||
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("id")
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
public void setId(Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("word")
|
||||
public String getWord() {
|
||||
return word;
|
||||
}
|
||||
public void setWord(String word) {
|
||||
this.word = word;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("username")
|
||||
public String getUsername() {
|
||||
return username;
|
||||
}
|
||||
public void setUsername(String username) {
|
||||
this.username = username;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("userId")
|
||||
public Long getUserId() {
|
||||
return userId;
|
||||
}
|
||||
public void setUserId(Long userId) {
|
||||
this.userId = userId;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("createdAt")
|
||||
public Date getCreatedAt() {
|
||||
return createdAt;
|
||||
}
|
||||
public void setCreatedAt(Date createdAt) {
|
||||
this.createdAt = createdAt;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("numberCommentsOnWord")
|
||||
public Long getNumberCommentsOnWord() {
|
||||
return numberCommentsOnWord;
|
||||
}
|
||||
public void setNumberCommentsOnWord(Long numberCommentsOnWord) {
|
||||
this.numberCommentsOnWord = numberCommentsOnWord;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("numberLists")
|
||||
public Long getNumberLists() {
|
||||
return numberLists;
|
||||
}
|
||||
public void setNumberLists(Long numberLists) {
|
||||
this.numberLists = numberLists;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class WordListWord {\n");
|
||||
|
||||
sb.append(" id: ").append(id).append("\n");
|
||||
sb.append(" word: ").append(word).append("\n");
|
||||
sb.append(" username: ").append(username).append("\n");
|
||||
sb.append(" userId: ").append(userId).append("\n");
|
||||
sb.append(" createdAt: ").append(createdAt).append("\n");
|
||||
sb.append(" numberCommentsOnWord: ").append(numberCommentsOnWord).append("\n");
|
||||
sb.append(" numberLists: ").append(numberLists).append("\n");
|
||||
sb.append("}\n");
|
||||
return sb.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,109 @@
|
||||
package io.swagger.client.model;
|
||||
|
||||
import java.util.*;
|
||||
|
||||
import com.wordnik.swagger.annotations.*;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
|
||||
@ApiModel(description = "")
|
||||
public class WordObject {
|
||||
private Long id = null;
|
||||
|
||||
//public enum idEnum { };
|
||||
|
||||
private String word = null;
|
||||
private String originalWord = null;
|
||||
private List<String> suggestions = new ArrayList<String>() ;
|
||||
private String canonicalForm = null;
|
||||
private String vulgar = null;
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("id")
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
public void setId(Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("word")
|
||||
public String getWord() {
|
||||
return word;
|
||||
}
|
||||
public void setWord(String word) {
|
||||
this.word = word;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("originalWord")
|
||||
public String getOriginalWord() {
|
||||
return originalWord;
|
||||
}
|
||||
public void setOriginalWord(String originalWord) {
|
||||
this.originalWord = originalWord;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("suggestions")
|
||||
public List<String> getSuggestions() {
|
||||
return suggestions;
|
||||
}
|
||||
public void setSuggestions(List<String> suggestions) {
|
||||
this.suggestions = suggestions;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("canonicalForm")
|
||||
public String getCanonicalForm() {
|
||||
return canonicalForm;
|
||||
}
|
||||
public void setCanonicalForm(String canonicalForm) {
|
||||
this.canonicalForm = canonicalForm;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("vulgar")
|
||||
public String getVulgar() {
|
||||
return vulgar;
|
||||
}
|
||||
public void setVulgar(String vulgar) {
|
||||
this.vulgar = vulgar;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class WordObject {\n");
|
||||
|
||||
sb.append(" id: ").append(id).append("\n");
|
||||
sb.append(" word: ").append(word).append("\n");
|
||||
sb.append(" originalWord: ").append(originalWord).append("\n");
|
||||
sb.append(" suggestions: ").append(suggestions).append("\n");
|
||||
sb.append(" canonicalForm: ").append(canonicalForm).append("\n");
|
||||
sb.append(" vulgar: ").append(vulgar).append("\n");
|
||||
sb.append("}\n");
|
||||
return sb.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,197 @@
|
||||
package io.swagger.client.model;
|
||||
|
||||
import java.util.Date;
|
||||
import io.swagger.client.model.SimpleDefinition;
|
||||
import io.swagger.client.model.ContentProvider;
|
||||
import java.util.*;
|
||||
import io.swagger.client.model.SimpleExample;
|
||||
|
||||
import com.wordnik.swagger.annotations.*;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
|
||||
@ApiModel(description = "")
|
||||
public class WordOfTheDay {
|
||||
private Long id = null;
|
||||
|
||||
//public enum idEnum { };
|
||||
|
||||
private String parentId = null;
|
||||
private String category = null;
|
||||
private String createdBy = null;
|
||||
private Date createdAt = null;
|
||||
private ContentProvider contentProvider = null;
|
||||
private String htmlExtra = null;
|
||||
private String word = null;
|
||||
private List<SimpleDefinition> definitions = new ArrayList<SimpleDefinition>() ;
|
||||
private List<SimpleExample> examples = new ArrayList<SimpleExample>() ;
|
||||
private String note = null;
|
||||
private Date publishDate = null;
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("id")
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
public void setId(Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("parentId")
|
||||
public String getParentId() {
|
||||
return parentId;
|
||||
}
|
||||
public void setParentId(String parentId) {
|
||||
this.parentId = parentId;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("category")
|
||||
public String getCategory() {
|
||||
return category;
|
||||
}
|
||||
public void setCategory(String category) {
|
||||
this.category = category;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("createdBy")
|
||||
public String getCreatedBy() {
|
||||
return createdBy;
|
||||
}
|
||||
public void setCreatedBy(String createdBy) {
|
||||
this.createdBy = createdBy;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("createdAt")
|
||||
public Date getCreatedAt() {
|
||||
return createdAt;
|
||||
}
|
||||
public void setCreatedAt(Date createdAt) {
|
||||
this.createdAt = createdAt;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("contentProvider")
|
||||
public ContentProvider getContentProvider() {
|
||||
return contentProvider;
|
||||
}
|
||||
public void setContentProvider(ContentProvider contentProvider) {
|
||||
this.contentProvider = contentProvider;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("htmlExtra")
|
||||
public String getHtmlExtra() {
|
||||
return htmlExtra;
|
||||
}
|
||||
public void setHtmlExtra(String htmlExtra) {
|
||||
this.htmlExtra = htmlExtra;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("word")
|
||||
public String getWord() {
|
||||
return word;
|
||||
}
|
||||
public void setWord(String word) {
|
||||
this.word = word;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("definitions")
|
||||
public List<SimpleDefinition> getDefinitions() {
|
||||
return definitions;
|
||||
}
|
||||
public void setDefinitions(List<SimpleDefinition> definitions) {
|
||||
this.definitions = definitions;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("examples")
|
||||
public List<SimpleExample> getExamples() {
|
||||
return examples;
|
||||
}
|
||||
public void setExamples(List<SimpleExample> examples) {
|
||||
this.examples = examples;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("note")
|
||||
public String getNote() {
|
||||
return note;
|
||||
}
|
||||
public void setNote(String note) {
|
||||
this.note = note;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("publishDate")
|
||||
public Date getPublishDate() {
|
||||
return publishDate;
|
||||
}
|
||||
public void setPublishDate(Date publishDate) {
|
||||
this.publishDate = publishDate;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class WordOfTheDay {\n");
|
||||
|
||||
sb.append(" id: ").append(id).append("\n");
|
||||
sb.append(" parentId: ").append(parentId).append("\n");
|
||||
sb.append(" category: ").append(category).append("\n");
|
||||
sb.append(" createdBy: ").append(createdBy).append("\n");
|
||||
sb.append(" createdAt: ").append(createdAt).append("\n");
|
||||
sb.append(" contentProvider: ").append(contentProvider).append("\n");
|
||||
sb.append(" htmlExtra: ").append(htmlExtra).append("\n");
|
||||
sb.append(" word: ").append(word).append("\n");
|
||||
sb.append(" definitions: ").append(definitions).append("\n");
|
||||
sb.append(" examples: ").append(examples).append("\n");
|
||||
sb.append(" note: ").append(note).append("\n");
|
||||
sb.append(" publishDate: ").append(publishDate).append("\n");
|
||||
sb.append("}\n");
|
||||
return sb.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,69 @@
|
||||
package io.swagger.client.model;
|
||||
|
||||
|
||||
import com.wordnik.swagger.annotations.*;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
|
||||
@ApiModel(description = "")
|
||||
public class WordSearchResult {
|
||||
private Long count = null;
|
||||
|
||||
//public enum countEnum { };
|
||||
|
||||
private Double lexicality = null;
|
||||
|
||||
//public enum lexicalityEnum { };
|
||||
|
||||
private String word = null;
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("count")
|
||||
public Long getCount() {
|
||||
return count;
|
||||
}
|
||||
public void setCount(Long count) {
|
||||
this.count = count;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("lexicality")
|
||||
public Double getLexicality() {
|
||||
return lexicality;
|
||||
}
|
||||
public void setLexicality(Double lexicality) {
|
||||
this.lexicality = lexicality;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("word")
|
||||
public String getWord() {
|
||||
return word;
|
||||
}
|
||||
public void setWord(String word) {
|
||||
this.word = word;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class WordSearchResult {\n");
|
||||
|
||||
sb.append(" count: ").append(count).append("\n");
|
||||
sb.append(" lexicality: ").append(lexicality).append("\n");
|
||||
sb.append(" word: ").append(word).append("\n");
|
||||
sb.append("}\n");
|
||||
return sb.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,54 @@
|
||||
package io.swagger.client.model;
|
||||
|
||||
import io.swagger.client.model.WordSearchResult;
|
||||
import java.util.*;
|
||||
|
||||
import com.wordnik.swagger.annotations.*;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
|
||||
@ApiModel(description = "")
|
||||
public class WordSearchResults {
|
||||
private List<WordSearchResult> searchResults = new ArrayList<WordSearchResult>() ;
|
||||
private Integer totalResults = null;
|
||||
|
||||
//public enum totalResultsEnum { };
|
||||
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("searchResults")
|
||||
public List<WordSearchResult> getSearchResults() {
|
||||
return searchResults;
|
||||
}
|
||||
public void setSearchResults(List<WordSearchResult> searchResults) {
|
||||
this.searchResults = searchResults;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
**/
|
||||
@ApiModelProperty(required = false, value = "")
|
||||
@JsonProperty("totalResults")
|
||||
public Integer getTotalResults() {
|
||||
return totalResults;
|
||||
}
|
||||
public void setTotalResults(Integer totalResults) {
|
||||
this.totalResults = totalResults;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class WordSearchResults {\n");
|
||||
|
||||
sb.append(" searchResults: ").append(searchResults).append("\n");
|
||||
sb.append(" totalResults: ").append(totalResults).append("\n");
|
||||
sb.append("}\n");
|
||||
return sb.toString();
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user