diff --git a/samples/client/wordnik-api/android/AndroidWordnikApiCodegen.scala b/samples/client/wordnik-api/android/AndroidWordnikApiCodegen.scala
deleted file mode 100644
index 5559581ea98..00000000000
--- a/samples/client/wordnik-api/android/AndroidWordnikApiCodegen.scala
+++ /dev/null
@@ -1,51 +0,0 @@
-/**
- * Copyright 2014 Wordnik, Inc.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-import com.wordnik.swagger.codegen.BasicAndroidJavaGenerator
-
-object AndroidWordnikApiCodegen extends BasicAndroidJavaGenerator {
- def main(args: Array[String]) = generateClient(args)
-
- // location of templates
- override def templateDir = "src/main/resources/android-java"
-
- def destinationRoot = "samples/client/wordnik-api/android"
-
- // where to write generated code
- override def destinationDir = destinationRoot + "/src/main/java"
-
- // package for api invoker, error files
- override def invokerPackage = Some("com.wordnik.client.common")
-
- // package for models
- override def modelPackage = Some("com.wordnik.client.model")
-
- // package for api classes
- override def apiPackage = Some("com.wordnik.client.api")
-
- additionalParams ++= Map(
- "artifactId" -> "wordnik-android-client",
- "artifactVersion" -> "1.0.0",
- "groupId" -> "com.wordnik")
-
- // supporting classes
- override def supportingFiles =
- List(
- ("apiInvoker.mustache", destinationDir + java.io.File.separator + invokerPackage.get.replace(".", java.io.File.separator) + java.io.File.separator, "ApiInvoker.java"),
- ("JsonUtil.mustache", destinationDir + java.io.File.separator + invokerPackage.get.replace(".", java.io.File.separator) + java.io.File.separator, "JsonUtil.java"),
- ("apiException.mustache", destinationDir + java.io.File.separator + invokerPackage.get.replace(".", java.io.File.separator) + java.io.File.separator, "ApiException.java"),
- ("pom.mustache", destinationRoot, "pom.xml"))
-}
diff --git a/samples/client/wordnik-api/android/README.md b/samples/client/wordnik-api/android/README.md
deleted file mode 100644
index 6ad4cc8fe6d..00000000000
--- a/samples/client/wordnik-api/android/README.md
+++ /dev/null
@@ -1,79 +0,0 @@
-# Wordnik Android client library
-
-## Overview
-This is a full client library for the Wordnik API. It requires that you have a valid Wordnik API Key--you
-can get one for free at http://developer.wordnik.com.
-
-This library is built using the Wordnik [Swagger](http://swagger.wordnik.com) client library generator. You
-can re-generate this library by running ./bin/android-java-wordnik-api.sh from the swagger-codegen project
-
-## Usage
-You can use maven central to add this library to your current project:
-
-```xml
-
- com.wordnik
- wordnik-android-client
- 4.0
-
-```
-
-or with gradle:
-
-```gradle
-repositories {
- mavenCentral()
-}
-
-dependencies {
- compile 'com.wordnik:wordnik-android-client:4.0'
-}
-```
-
-or you can pull the source and re-generate the client library with Maven:
-
-```
-mvn package
-```
-
-Add the library to your project and you're ready to go:
-
-```java
-import com.wordnik.client.api.*;
-import com.wordnik.client.model.*;
-
-import android.os.AsyncTask;
-import android.util.Log;
-
-class WordOfTheDayAsyncTask extends AsyncTask {
- @Override
- protected WordOfTheDay doInBackground(Void... params) {
- WordsApi api = new WordsApi();
- api.addHeader("api_key", "YOUR_API_KEY");
- try {
- return api.getWordOfTheDay("2014-02-19");
- }
- catch (Exception e) {
- Log.d("WordOfTheDayAsyncTask", e.getMessage());
- return null;
- }
- }
-
- @Override
- protected void onPostExecute(WordOfTheDay d) {
- Log.d("WordOfTheDayAsyncTask", d.toString());
- }
-}
-```
-
-You can now invoke the async task anywhere in your app. Of course you'll want to do
-something more in your `onPostExecute` function.
-
-```java
-new WordOfTheDayAsyncTask().execute();
-```
-
-This project was built with the following minimum requirements:
-
-* Maven 3.0
-* Java JDK 6
diff --git a/samples/client/wordnik-api/android/pom.xml b/samples/client/wordnik-api/android/pom.xml
deleted file mode 100644
index 03fdf69754e..00000000000
--- a/samples/client/wordnik-api/android/pom.xml
+++ /dev/null
@@ -1,214 +0,0 @@
-
- 4.0.0
- com.wordnik
- wordnik-android-client
- jar
- wordnik-android-client
- 4.0
-
- scm:git:git@github.com:wordnik/swagger-mustache.git
- scm:git:git@github.com:wordnik/swagger-codegen.git
- https://github.com/wordnik/swagger-codegen
-
-
- 2.2.0
-
-
-
-
-
- org.apache.maven.plugins
- maven-surefire-plugin
- 2.12
-
-
-
- loggerPath
- conf/log4j.properties
-
-
- -Xms512m -Xmx1500m
- methods
- pertest
-
-
-
- maven-dependency-plugin
-
-
- package
-
- copy-dependencies
-
-
- ${project.build.directory}/lib
-
-
-
-
-
-
-
- org.apache.maven.plugins
- maven-jar-plugin
- 2.2
-
-
-
- jar
- test-jar
-
-
-
-
-
-
-
-
- org.codehaus.mojo
- build-helper-maven-plugin
-
-
- add_sources
- generate-sources
-
- add-source
-
-
-
- src/main/java
-
-
-
-
- add_test_sources
- generate-test-sources
-
- add-test-source
-
-
-
- src/test/java
-
-
-
-
-
-
- org.apache.maven.plugins
- maven-compiler-plugin
- 2.3.2
-
- 1.6
- 1.6
-
-
-
- net.alchim31.maven
- scala-maven-plugin
- ${scala-maven-plugin-version}
-
-
-
- compile
- testCompile
-
-
-
-
-
- incremental
-
-
- -Xmx384m
-
-
- -target:jvm-1.5
- -deprecation
-
-
-
- run-scalatest
- org.scalatest.tools.Runner
-
- -p
- ${project.build.testOutputDirectory}
-
-
- -Xmx512m
-
-
-
-
-
-
-
-
-
-
- net.alchim31.maven
- scala-maven-plugin
- ${scala-maven-plugin-version}
-
-
-
-
-
- com.fasterxml.jackson.core
- jackson-core
- ${jackson-version}
- compile
-
-
- com.fasterxml.jackson.core
- jackson-annotations
- ${jackson-version}
- compile
-
-
- com.fasterxml.jackson.core
- jackson-databind
- ${jackson-version}
- compile
-
-
- org.apache.httpcomponents
- httpclient
- ${httpclient-version}
- compile
-
-
-
-
- org.scala-lang
- scala-library
- ${scala-version}
- test
-
-
- org.scalatest
- scalatest_2.9.1
- ${scala-test-version}
- test
-
-
- junit
- junit
- ${junit-version}
- test
-
-
-
-
- 2.1.4
- 2.9.1-1
- 4.8.1
- 1.0.0
- 4.8.1
- 1.6.1
- 4.0
- 3.1.5
-
-
-
diff --git a/samples/client/wordnik-api/android/src/main/java/com/wordnik/client/api/AccountApi.java b/samples/client/wordnik-api/android/src/main/java/com/wordnik/client/api/AccountApi.java
deleted file mode 100644
index 5b334fa1e4f..00000000000
--- a/samples/client/wordnik-api/android/src/main/java/com/wordnik/client/api/AccountApi.java
+++ /dev/null
@@ -1,192 +0,0 @@
-package com.wordnik.client.api;
-
-import com.wordnik.client.common.ApiException;
-import com.wordnik.client.common.ApiInvoker;
-import com.wordnik.client.model.User;
-import com.wordnik.client.model.WordList;
-import com.wordnik.client.model.ApiTokenStatus;
-import com.wordnik.client.model.AuthenticationToken;
-import java.util.*;
-
-public class AccountApi {
- String basePath = "http://api.wordnik.com/v4";
- ApiInvoker apiInvoker = ApiInvoker.getInstance();
-
- public void addHeader(String key, String value) {
- getInvoker().addDefaultHeader(key, value);
- }
-
- public ApiInvoker getInvoker() {
- return apiInvoker;
- }
-
- public void setBasePath(String basePath) {
- this.basePath = basePath;
- }
-
- public String getBasePath() {
- return basePath;
- }
-
- public AuthenticationToken authenticate (String username, String password) throws ApiException {
- // verify required params are set
- if(username == null || password == null ) {
- throw new ApiException(400, "missing required params");
- }
- // create path and map variables
- String path = "/account.{format}/authenticate/{username}".replaceAll("\\{format\\}","json").replaceAll("\\{" + "username" + "\\}", apiInvoker.escapeString(username.toString()));
-
- // query params
- Map queryParams = new HashMap();
- Map headerParams = new HashMap();
-
- if(!"null".equals(String.valueOf(password)))
- queryParams.put("password", String.valueOf(password));
- String contentType = "application/json";
-
- try {
- String response = apiInvoker.invokeAPI(basePath, path, "GET", queryParams, null, headerParams, contentType);
- if(response != null){
- return (AuthenticationToken) ApiInvoker.deserialize(response, "", AuthenticationToken.class);
- }
- else {
- return null;
- }
- } catch (ApiException ex) {
- if(ex.getCode() == 404) {
- return null;
- }
- else {
- throw ex;
- }
- }
- }
- public AuthenticationToken authenticatePost (String username, String body) throws ApiException {
- // verify required params are set
- if(username == null || body == null ) {
- throw new ApiException(400, "missing required params");
- }
- // create path and map variables
- String path = "/account.{format}/authenticate/{username}".replaceAll("\\{format\\}","json").replaceAll("\\{" + "username" + "\\}", apiInvoker.escapeString(username.toString()));
-
- // query params
- Map queryParams = new HashMap();
- Map headerParams = new HashMap();
-
- String contentType = "application/json";
-
- try {
- String response = apiInvoker.invokeAPI(basePath, path, "POST", queryParams, body, headerParams, contentType);
- if(response != null){
- return (AuthenticationToken) ApiInvoker.deserialize(response, "", AuthenticationToken.class);
- }
- else {
- return null;
- }
- } catch (ApiException ex) {
- if(ex.getCode() == 404) {
- return null;
- }
- else {
- throw ex;
- }
- }
- }
- public List getWordListsForLoggedInUser (String auth_token, Integer skip, Integer limit) throws ApiException {
- // verify required params are set
- if(auth_token == null ) {
- throw new ApiException(400, "missing required params");
- }
- // create path and map variables
- String path = "/account.{format}/wordLists".replaceAll("\\{format\\}","json");
-
- // query params
- Map queryParams = new HashMap();
- Map headerParams = new HashMap();
-
- 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 contentType = "application/json";
-
- try {
- String response = apiInvoker.invokeAPI(basePath, path, "GET", queryParams, null, headerParams, contentType);
- if(response != null){
- return (List) ApiInvoker.deserialize(response, "List", WordList.class);
- }
- else {
- return null;
- }
- } catch (ApiException ex) {
- if(ex.getCode() == 404) {
- return null;
- }
- else {
- throw ex;
- }
- }
- }
- public ApiTokenStatus getApiTokenStatus (String api_key) throws ApiException {
- // create path and map variables
- String path = "/account.{format}/apiTokenStatus".replaceAll("\\{format\\}","json");
-
- // query params
- Map queryParams = new HashMap();
- Map headerParams = new HashMap();
-
- headerParams.put("api_key", api_key);
- String contentType = "application/json";
-
- try {
- String response = apiInvoker.invokeAPI(basePath, path, "GET", queryParams, null, headerParams, contentType);
- if(response != null){
- return (ApiTokenStatus) ApiInvoker.deserialize(response, "", ApiTokenStatus.class);
- }
- else {
- return null;
- }
- } catch (ApiException ex) {
- if(ex.getCode() == 404) {
- return null;
- }
- else {
- throw ex;
- }
- }
- }
- public User getLoggedInUser (String auth_token) throws ApiException {
- // verify required params are set
- if(auth_token == null ) {
- throw new ApiException(400, "missing required params");
- }
- // create path and map variables
- String path = "/account.{format}/user".replaceAll("\\{format\\}","json");
-
- // query params
- Map queryParams = new HashMap();
- Map headerParams = new HashMap();
-
- headerParams.put("auth_token", auth_token);
- String contentType = "application/json";
-
- try {
- String response = apiInvoker.invokeAPI(basePath, path, "GET", queryParams, null, headerParams, contentType);
- if(response != null){
- return (User) ApiInvoker.deserialize(response, "", User.class);
- }
- else {
- return null;
- }
- } catch (ApiException ex) {
- if(ex.getCode() == 404) {
- return null;
- }
- else {
- throw ex;
- }
- }
- }
- }
-
diff --git a/samples/client/wordnik-api/android/src/main/java/com/wordnik/client/api/WordApi.java b/samples/client/wordnik-api/android/src/main/java/com/wordnik/client/api/WordApi.java
deleted file mode 100644
index 003a88caf0e..00000000000
--- a/samples/client/wordnik-api/android/src/main/java/com/wordnik/client/api/WordApi.java
+++ /dev/null
@@ -1,475 +0,0 @@
-package com.wordnik.client.api;
-
-import com.wordnik.client.common.ApiException;
-import com.wordnik.client.common.ApiInvoker;
-import com.wordnik.client.model.FrequencySummary;
-import com.wordnik.client.model.Bigram;
-import com.wordnik.client.model.WordObject;
-import com.wordnik.client.model.ExampleSearchResults;
-import com.wordnik.client.model.Example;
-import com.wordnik.client.model.ScrabbleScoreResult;
-import com.wordnik.client.model.TextPron;
-import com.wordnik.client.model.Syllable;
-import com.wordnik.client.model.Related;
-import com.wordnik.client.model.Definition;
-import com.wordnik.client.model.AudioFile;
-import java.util.*;
-
-public class WordApi {
- String basePath = "http://api.wordnik.com/v4";
- ApiInvoker apiInvoker = ApiInvoker.getInstance();
-
- public void addHeader(String key, String value) {
- getInvoker().addDefaultHeader(key, value);
- }
-
- public ApiInvoker getInvoker() {
- return apiInvoker;
- }
-
- public void setBasePath(String basePath) {
- this.basePath = basePath;
- }
-
- public String getBasePath() {
- return basePath;
- }
-
- public ExampleSearchResults getExamples (String word, String includeDuplicates, String useCanonical, Integer skip, Integer limit) throws ApiException {
- // verify required params are set
- if(word == null ) {
- throw new ApiException(400, "missing required params");
- }
- // create path and map variables
- String path = "/word.{format}/{word}/examples".replaceAll("\\{format\\}","json").replaceAll("\\{" + "word" + "\\}", apiInvoker.escapeString(word.toString()));
-
- // query params
- Map queryParams = new HashMap();
- Map headerParams = new HashMap();
-
- 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 contentType = "application/json";
-
- try {
- String response = apiInvoker.invokeAPI(basePath, path, "GET", queryParams, null, headerParams, contentType);
- if(response != null){
- return (ExampleSearchResults) ApiInvoker.deserialize(response, "", ExampleSearchResults.class);
- }
- else {
- return null;
- }
- } catch (ApiException ex) {
- if(ex.getCode() == 404) {
- return null;
- }
- else {
- throw ex;
- }
- }
- }
- public WordObject getWord (String word, String useCanonical, String includeSuggestions) throws ApiException {
- // verify required params are set
- if(word == null ) {
- throw new ApiException(400, "missing required params");
- }
- // create path and map variables
- String path = "/word.{format}/{word}".replaceAll("\\{format\\}","json").replaceAll("\\{" + "word" + "\\}", apiInvoker.escapeString(word.toString()));
-
- // query params
- Map queryParams = new HashMap();
- Map headerParams = new HashMap();
-
- 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 contentType = "application/json";
-
- try {
- String response = apiInvoker.invokeAPI(basePath, path, "GET", queryParams, null, headerParams, contentType);
- if(response != null){
- return (WordObject) ApiInvoker.deserialize(response, "", WordObject.class);
- }
- else {
- return null;
- }
- } catch (ApiException ex) {
- if(ex.getCode() == 404) {
- return null;
- }
- else {
- throw ex;
- }
- }
- }
- public List getDefinitions (String word, String partOfSpeech, String sourceDictionaries, Integer limit, String includeRelated, String useCanonical, String includeTags) throws ApiException {
- // verify required params are set
- if(word == null ) {
- throw new ApiException(400, "missing required params");
- }
- // create path and map variables
- String path = "/word.{format}/{word}/definitions".replaceAll("\\{format\\}","json").replaceAll("\\{" + "word" + "\\}", apiInvoker.escapeString(word.toString()));
-
- // query params
- Map queryParams = new HashMap();
- Map headerParams = new HashMap();
-
- 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 contentType = "application/json";
-
- try {
- String response = apiInvoker.invokeAPI(basePath, path, "GET", queryParams, null, headerParams, contentType);
- if(response != null){
- return (List) ApiInvoker.deserialize(response, "List", Definition.class);
- }
- else {
- return null;
- }
- } catch (ApiException ex) {
- if(ex.getCode() == 404) {
- return null;
- }
- else {
- throw ex;
- }
- }
- }
- public Example getTopExample (String word, String useCanonical) throws ApiException {
- // verify required params are set
- if(word == null ) {
- throw new ApiException(400, "missing required params");
- }
- // create path and map variables
- String path = "/word.{format}/{word}/topExample".replaceAll("\\{format\\}","json").replaceAll("\\{" + "word" + "\\}", apiInvoker.escapeString(word.toString()));
-
- // query params
- Map queryParams = new HashMap();
- Map headerParams = new HashMap();
-
- if(!"null".equals(String.valueOf(useCanonical)))
- queryParams.put("useCanonical", String.valueOf(useCanonical));
- String contentType = "application/json";
-
- try {
- String response = apiInvoker.invokeAPI(basePath, path, "GET", queryParams, null, headerParams, contentType);
- if(response != null){
- return (Example) ApiInvoker.deserialize(response, "", Example.class);
- }
- else {
- return null;
- }
- } catch (ApiException ex) {
- if(ex.getCode() == 404) {
- return null;
- }
- else {
- throw ex;
- }
- }
- }
- public List getRelatedWords (String word, String relationshipTypes, String useCanonical, Integer limitPerRelationshipType) throws ApiException {
- // verify required params are set
- if(word == null ) {
- throw new ApiException(400, "missing required params");
- }
- // create path and map variables
- String path = "/word.{format}/{word}/relatedWords".replaceAll("\\{format\\}","json").replaceAll("\\{" + "word" + "\\}", apiInvoker.escapeString(word.toString()));
-
- // query params
- Map queryParams = new HashMap();
- Map headerParams = new HashMap();
-
- 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 contentType = "application/json";
-
- try {
- String response = apiInvoker.invokeAPI(basePath, path, "GET", queryParams, null, headerParams, contentType);
- if(response != null){
- return (List) ApiInvoker.deserialize(response, "List", Related.class);
- }
- else {
- return null;
- }
- } catch (ApiException ex) {
- if(ex.getCode() == 404) {
- return null;
- }
- else {
- throw ex;
- }
- }
- }
- public List getTextPronunciations (String word, String sourceDictionary, String typeFormat, String useCanonical, Integer limit) throws ApiException {
- // verify required params are set
- if(word == null ) {
- throw new ApiException(400, "missing required params");
- }
- // create path and map variables
- String path = "/word.{format}/{word}/pronunciations".replaceAll("\\{format\\}","json").replaceAll("\\{" + "word" + "\\}", apiInvoker.escapeString(word.toString()));
-
- // query params
- Map queryParams = new HashMap();
- Map headerParams = new HashMap();
-
- 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 contentType = "application/json";
-
- try {
- String response = apiInvoker.invokeAPI(basePath, path, "GET", queryParams, null, headerParams, contentType);
- if(response != null){
- return (List) ApiInvoker.deserialize(response, "List", TextPron.class);
- }
- else {
- return null;
- }
- } catch (ApiException ex) {
- if(ex.getCode() == 404) {
- return null;
- }
- else {
- throw ex;
- }
- }
- }
- public List getHyphenation (String word, String sourceDictionary, String useCanonical, Integer limit) throws ApiException {
- // verify required params are set
- if(word == null ) {
- throw new ApiException(400, "missing required params");
- }
- // create path and map variables
- String path = "/word.{format}/{word}/hyphenation".replaceAll("\\{format\\}","json").replaceAll("\\{" + "word" + "\\}", apiInvoker.escapeString(word.toString()));
-
- // query params
- Map queryParams = new HashMap();
- Map headerParams = new HashMap();
-
- 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 contentType = "application/json";
-
- try {
- String response = apiInvoker.invokeAPI(basePath, path, "GET", queryParams, null, headerParams, contentType);
- if(response != null){
- return (List) ApiInvoker.deserialize(response, "List", Syllable.class);
- }
- else {
- return null;
- }
- } catch (ApiException ex) {
- if(ex.getCode() == 404) {
- return null;
- }
- else {
- throw ex;
- }
- }
- }
- public FrequencySummary getWordFrequency (String word, String useCanonical, Integer startYear, Integer endYear) throws ApiException {
- // verify required params are set
- if(word == null ) {
- throw new ApiException(400, "missing required params");
- }
- // create path and map variables
- String path = "/word.{format}/{word}/frequency".replaceAll("\\{format\\}","json").replaceAll("\\{" + "word" + "\\}", apiInvoker.escapeString(word.toString()));
-
- // query params
- Map queryParams = new HashMap();
- Map headerParams = new HashMap();
-
- 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 contentType = "application/json";
-
- try {
- String response = apiInvoker.invokeAPI(basePath, path, "GET", queryParams, null, headerParams, contentType);
- if(response != null){
- return (FrequencySummary) ApiInvoker.deserialize(response, "", FrequencySummary.class);
- }
- else {
- return null;
- }
- } catch (ApiException ex) {
- if(ex.getCode() == 404) {
- return null;
- }
- else {
- throw ex;
- }
- }
- }
- public List getPhrases (String word, Integer limit, Integer wlmi, String useCanonical) throws ApiException {
- // verify required params are set
- if(word == null ) {
- throw new ApiException(400, "missing required params");
- }
- // create path and map variables
- String path = "/word.{format}/{word}/phrases".replaceAll("\\{format\\}","json").replaceAll("\\{" + "word" + "\\}", apiInvoker.escapeString(word.toString()));
-
- // query params
- Map queryParams = new HashMap();
- Map headerParams = new HashMap();
-
- 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 contentType = "application/json";
-
- try {
- String response = apiInvoker.invokeAPI(basePath, path, "GET", queryParams, null, headerParams, contentType);
- if(response != null){
- return (List) ApiInvoker.deserialize(response, "List", Bigram.class);
- }
- else {
- return null;
- }
- } catch (ApiException ex) {
- if(ex.getCode() == 404) {
- return null;
- }
- else {
- throw ex;
- }
- }
- }
- public List getEtymologies (String word, String useCanonical) throws ApiException {
- // verify required params are set
- if(word == null ) {
- throw new ApiException(400, "missing required params");
- }
- // create path and map variables
- String path = "/word.{format}/{word}/etymologies".replaceAll("\\{format\\}","json").replaceAll("\\{" + "word" + "\\}", apiInvoker.escapeString(word.toString()));
-
- // query params
- Map queryParams = new HashMap();
- Map headerParams = new HashMap();
-
- if(!"null".equals(String.valueOf(useCanonical)))
- queryParams.put("useCanonical", String.valueOf(useCanonical));
- String contentType = "application/json";
-
- try {
- String response = apiInvoker.invokeAPI(basePath, path, "GET", queryParams, null, headerParams, contentType);
- if(response != null){
- return (List) ApiInvoker.deserialize(response, "List", String.class);
- }
- else {
- return null;
- }
- } catch (ApiException ex) {
- if(ex.getCode() == 404) {
- return null;
- }
- else {
- throw ex;
- }
- }
- }
- public List getAudio (String word, String useCanonical, Integer limit) throws ApiException {
- // verify required params are set
- if(word == null ) {
- throw new ApiException(400, "missing required params");
- }
- // create path and map variables
- String path = "/word.{format}/{word}/audio".replaceAll("\\{format\\}","json").replaceAll("\\{" + "word" + "\\}", apiInvoker.escapeString(word.toString()));
-
- // query params
- Map queryParams = new HashMap();
- Map headerParams = new HashMap();
-
- 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 contentType = "application/json";
-
- try {
- String response = apiInvoker.invokeAPI(basePath, path, "GET", queryParams, null, headerParams, contentType);
- if(response != null){
- return (List) ApiInvoker.deserialize(response, "List", AudioFile.class);
- }
- else {
- return null;
- }
- } catch (ApiException ex) {
- if(ex.getCode() == 404) {
- return null;
- }
- else {
- throw ex;
- }
- }
- }
- public ScrabbleScoreResult getScrabbleScore (String word) throws ApiException {
- // verify required params are set
- if(word == null ) {
- throw new ApiException(400, "missing required params");
- }
- // create path and map variables
- String path = "/word.{format}/{word}/scrabbleScore".replaceAll("\\{format\\}","json").replaceAll("\\{" + "word" + "\\}", apiInvoker.escapeString(word.toString()));
-
- // query params
- Map queryParams = new HashMap();
- Map headerParams = new HashMap();
-
- String contentType = "application/json";
-
- try {
- String response = apiInvoker.invokeAPI(basePath, path, "GET", queryParams, null, headerParams, contentType);
- if(response != null){
- return (ScrabbleScoreResult) ApiInvoker.deserialize(response, "", ScrabbleScoreResult.class);
- }
- else {
- return null;
- }
- } catch (ApiException ex) {
- if(ex.getCode() == 404) {
- return null;
- }
- else {
- throw ex;
- }
- }
- }
- }
-
diff --git a/samples/client/wordnik-api/android/src/main/java/com/wordnik/client/api/WordListApi.java b/samples/client/wordnik-api/android/src/main/java/com/wordnik/client/api/WordListApi.java
deleted file mode 100644
index e017c466636..00000000000
--- a/samples/client/wordnik-api/android/src/main/java/com/wordnik/client/api/WordListApi.java
+++ /dev/null
@@ -1,231 +0,0 @@
-package com.wordnik.client.api;
-
-import com.wordnik.client.common.ApiException;
-import com.wordnik.client.common.ApiInvoker;
-import com.wordnik.client.model.WordListWord;
-import com.wordnik.client.model.WordList;
-import com.wordnik.client.model.StringValue;
-import java.util.*;
-
-public class WordListApi {
- String basePath = "http://api.wordnik.com/v4";
- ApiInvoker apiInvoker = ApiInvoker.getInstance();
-
- public void addHeader(String key, String value) {
- getInvoker().addDefaultHeader(key, value);
- }
-
- public ApiInvoker getInvoker() {
- return apiInvoker;
- }
-
- public void setBasePath(String basePath) {
- this.basePath = basePath;
- }
-
- public String getBasePath() {
- return basePath;
- }
-
- public void updateWordList (String permalink, WordList body, String auth_token) throws ApiException {
- // verify required params are set
- if(permalink == null || auth_token == null ) {
- throw new ApiException(400, "missing required params");
- }
- // create path and map variables
- String path = "/wordList.{format}/{permalink}".replaceAll("\\{format\\}","json").replaceAll("\\{" + "permalink" + "\\}", apiInvoker.escapeString(permalink.toString()));
-
- // query params
- Map queryParams = new HashMap();
- Map headerParams = new HashMap();
-
- headerParams.put("auth_token", auth_token);
- String contentType = "application/json";
-
- try {
- String response = apiInvoker.invokeAPI(basePath, path, "PUT", queryParams, body, headerParams, 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 {
- // verify required params are set
- if(permalink == null || auth_token == null ) {
- throw new ApiException(400, "missing required params");
- }
- // create path and map variables
- String path = "/wordList.{format}/{permalink}".replaceAll("\\{format\\}","json").replaceAll("\\{" + "permalink" + "\\}", apiInvoker.escapeString(permalink.toString()));
-
- // query params
- Map queryParams = new HashMap();
- Map headerParams = new HashMap();
-
- headerParams.put("auth_token", auth_token);
- String contentType = "application/json";
-
- try {
- String response = apiInvoker.invokeAPI(basePath, path, "DELETE", queryParams, null, headerParams, contentType);
- if(response != null){
- return ;
- }
- else {
- return ;
- }
- } catch (ApiException ex) {
- if(ex.getCode() == 404) {
- return ;
- }
- else {
- throw ex;
- }
- }
- }
- public WordList getWordListByPermalink (String permalink, String auth_token) throws ApiException {
- // verify required params are set
- if(permalink == null || auth_token == null ) {
- throw new ApiException(400, "missing required params");
- }
- // create path and map variables
- String path = "/wordList.{format}/{permalink}".replaceAll("\\{format\\}","json").replaceAll("\\{" + "permalink" + "\\}", apiInvoker.escapeString(permalink.toString()));
-
- // query params
- Map queryParams = new HashMap();
- Map headerParams = new HashMap();
-
- headerParams.put("auth_token", auth_token);
- String contentType = "application/json";
-
- try {
- String response = apiInvoker.invokeAPI(basePath, path, "GET", queryParams, null, headerParams, contentType);
- if(response != null){
- return (WordList) ApiInvoker.deserialize(response, "", WordList.class);
- }
- else {
- return null;
- }
- } catch (ApiException ex) {
- if(ex.getCode() == 404) {
- return null;
- }
- else {
- throw ex;
- }
- }
- }
- public void addWordsToWordList (String permalink, List body, String auth_token) throws ApiException {
- // verify required params are set
- if(permalink == null || auth_token == null ) {
- throw new ApiException(400, "missing required params");
- }
- // create path and map variables
- String path = "/wordList.{format}/{permalink}/words".replaceAll("\\{format\\}","json").replaceAll("\\{" + "permalink" + "\\}", apiInvoker.escapeString(permalink.toString()));
-
- // query params
- Map queryParams = new HashMap();
- Map headerParams = new HashMap();
-
- headerParams.put("auth_token", auth_token);
- String contentType = "application/json";
-
- try {
- String response = apiInvoker.invokeAPI(basePath, path, "POST", queryParams, body, headerParams, contentType);
- if(response != null){
- return ;
- }
- else {
- return ;
- }
- } catch (ApiException ex) {
- if(ex.getCode() == 404) {
- return ;
- }
- else {
- throw ex;
- }
- }
- }
- public List getWordListWords (String permalink, String auth_token, String sortBy, String sortOrder, Integer skip, Integer limit) throws ApiException {
- // verify required params are set
- if(permalink == null || auth_token == null ) {
- throw new ApiException(400, "missing required params");
- }
- // create path and map variables
- String path = "/wordList.{format}/{permalink}/words".replaceAll("\\{format\\}","json").replaceAll("\\{" + "permalink" + "\\}", apiInvoker.escapeString(permalink.toString()));
-
- // query params
- Map queryParams = new HashMap();
- Map headerParams = new HashMap();
-
- 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 contentType = "application/json";
-
- try {
- String response = apiInvoker.invokeAPI(basePath, path, "GET", queryParams, null, headerParams, contentType);
- if(response != null){
- return (List) ApiInvoker.deserialize(response, "List", WordListWord.class);
- }
- else {
- return null;
- }
- } catch (ApiException ex) {
- if(ex.getCode() == 404) {
- return null;
- }
- else {
- throw ex;
- }
- }
- }
- public void deleteWordsFromWordList (String permalink, List body, String auth_token) throws ApiException {
- // verify required params are set
- if(permalink == null || auth_token == null ) {
- throw new ApiException(400, "missing required params");
- }
- // create path and map variables
- String path = "/wordList.{format}/{permalink}/deleteWords".replaceAll("\\{format\\}","json").replaceAll("\\{" + "permalink" + "\\}", apiInvoker.escapeString(permalink.toString()));
-
- // query params
- Map queryParams = new HashMap();
- Map headerParams = new HashMap();
-
- headerParams.put("auth_token", auth_token);
- String contentType = "application/json";
-
- try {
- String response = apiInvoker.invokeAPI(basePath, path, "POST", queryParams, body, headerParams, contentType);
- if(response != null){
- return ;
- }
- else {
- return ;
- }
- } catch (ApiException ex) {
- if(ex.getCode() == 404) {
- return ;
- }
- else {
- throw ex;
- }
- }
- }
- }
-
diff --git a/samples/client/wordnik-api/android/src/main/java/com/wordnik/client/api/WordListsApi.java b/samples/client/wordnik-api/android/src/main/java/com/wordnik/client/api/WordListsApi.java
deleted file mode 100644
index c97ab75e597..00000000000
--- a/samples/client/wordnik-api/android/src/main/java/com/wordnik/client/api/WordListsApi.java
+++ /dev/null
@@ -1,61 +0,0 @@
-package com.wordnik.client.api;
-
-import com.wordnik.client.common.ApiException;
-import com.wordnik.client.common.ApiInvoker;
-import com.wordnik.client.model.WordList;
-import java.util.*;
-
-public class WordListsApi {
- String basePath = "http://api.wordnik.com/v4";
- ApiInvoker apiInvoker = ApiInvoker.getInstance();
-
- public void addHeader(String key, String value) {
- getInvoker().addDefaultHeader(key, value);
- }
-
- public ApiInvoker getInvoker() {
- return apiInvoker;
- }
-
- public void setBasePath(String basePath) {
- this.basePath = basePath;
- }
-
- public String getBasePath() {
- return basePath;
- }
-
- public WordList createWordList (WordList body, String auth_token) throws ApiException {
- // verify required params are set
- if(auth_token == null ) {
- throw new ApiException(400, "missing required params");
- }
- // create path and map variables
- String path = "/wordLists.{format}".replaceAll("\\{format\\}","json");
-
- // query params
- Map queryParams = new HashMap();
- Map headerParams = new HashMap();
-
- headerParams.put("auth_token", auth_token);
- String contentType = "application/json";
-
- try {
- String response = apiInvoker.invokeAPI(basePath, path, "POST", queryParams, body, headerParams, contentType);
- if(response != null){
- return (WordList) ApiInvoker.deserialize(response, "", WordList.class);
- }
- else {
- return null;
- }
- } catch (ApiException ex) {
- if(ex.getCode() == 404) {
- return null;
- }
- else {
- throw ex;
- }
- }
- }
- }
-
diff --git a/samples/client/wordnik-api/android/src/main/java/com/wordnik/client/api/WordsApi.java b/samples/client/wordnik-api/android/src/main/java/com/wordnik/client/api/WordsApi.java
deleted file mode 100644
index c1c8a81efa0..00000000000
--- a/samples/client/wordnik-api/android/src/main/java/com/wordnik/client/api/WordsApi.java
+++ /dev/null
@@ -1,273 +0,0 @@
-package com.wordnik.client.api;
-
-import com.wordnik.client.common.ApiException;
-import com.wordnik.client.common.ApiInvoker;
-import com.wordnik.client.model.DefinitionSearchResults;
-import com.wordnik.client.model.WordObject;
-import com.wordnik.client.model.WordOfTheDay;
-import com.wordnik.client.model.WordSearchResults;
-import java.util.*;
-
-public class WordsApi {
- String basePath = "http://api.wordnik.com/v4";
- ApiInvoker apiInvoker = ApiInvoker.getInstance();
-
- public void addHeader(String key, String value) {
- getInvoker().addDefaultHeader(key, value);
- }
-
- public ApiInvoker getInvoker() {
- return apiInvoker;
- }
-
- public void setBasePath(String basePath) {
- this.basePath = basePath;
- }
-
- public String getBasePath() {
- return basePath;
- }
-
- public WordSearchResults searchWords (String query, String includePartOfSpeech, String excludePartOfSpeech, String caseSensitive, Integer minCorpusCount, Integer maxCorpusCount, Integer minDictionaryCount, Integer maxDictionaryCount, Integer minLength, Integer maxLength, Integer skip, Integer limit) throws ApiException {
- // verify required params are set
- if(query == null ) {
- throw new ApiException(400, "missing required params");
- }
- // create path and map variables
- String path = "/words.{format}/search/{query}".replaceAll("\\{format\\}","json").replaceAll("\\{" + "query" + "\\}", apiInvoker.escapeString(query.toString()));
-
- // query params
- Map queryParams = new HashMap();
- Map headerParams = new HashMap();
-
- 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 contentType = "application/json";
-
- try {
- String response = apiInvoker.invokeAPI(basePath, path, "GET", queryParams, null, headerParams, contentType);
- if(response != null){
- return (WordSearchResults) ApiInvoker.deserialize(response, "", WordSearchResults.class);
- }
- else {
- return null;
- }
- } catch (ApiException ex) {
- if(ex.getCode() == 404) {
- return null;
- }
- else {
- throw ex;
- }
- }
- }
- public WordOfTheDay getWordOfTheDay (String date) throws ApiException {
- // create path and map variables
- String path = "/words.{format}/wordOfTheDay".replaceAll("\\{format\\}","json");
-
- // query params
- Map queryParams = new HashMap();
- Map headerParams = new HashMap();
-
- if(!"null".equals(String.valueOf(date)))
- queryParams.put("date", String.valueOf(date));
- String contentType = "application/json";
-
- try {
- String response = apiInvoker.invokeAPI(basePath, path, "GET", queryParams, null, headerParams, contentType);
- if(response != null){
- return (WordOfTheDay) ApiInvoker.deserialize(response, "", WordOfTheDay.class);
- }
- else {
- return null;
- }
- } catch (ApiException ex) {
- if(ex.getCode() == 404) {
- return null;
- }
- else {
- throw ex;
- }
- }
- }
- public DefinitionSearchResults reverseDictionary (String query, String findSenseForWord, String includeSourceDictionaries, String excludeSourceDictionaries, String includePartOfSpeech, String excludePartOfSpeech, String expandTerms, String sortBy, String sortOrder, Integer minCorpusCount, Integer maxCorpusCount, Integer minLength, Integer maxLength, String includeTags, String skip, Integer limit) throws ApiException {
- // verify required params are set
- if(query == null ) {
- throw new ApiException(400, "missing required params");
- }
- // create path and map variables
- String path = "/words.{format}/reverseDictionary".replaceAll("\\{format\\}","json");
-
- // query params
- Map queryParams = new HashMap();
- Map headerParams = new HashMap();
-
- 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 contentType = "application/json";
-
- try {
- String response = apiInvoker.invokeAPI(basePath, path, "GET", queryParams, null, headerParams, contentType);
- if(response != null){
- return (DefinitionSearchResults) ApiInvoker.deserialize(response, "", DefinitionSearchResults.class);
- }
- else {
- return null;
- }
- } catch (ApiException ex) {
- if(ex.getCode() == 404) {
- return null;
- }
- else {
- throw ex;
- }
- }
- }
- public List getRandomWords (String includePartOfSpeech, String excludePartOfSpeech, String sortBy, String sortOrder, String hasDictionaryDef, Integer minCorpusCount, Integer maxCorpusCount, Integer minDictionaryCount, Integer maxDictionaryCount, Integer minLength, Integer maxLength, Integer limit) throws ApiException {
- // create path and map variables
- String path = "/words.{format}/randomWords".replaceAll("\\{format\\}","json");
-
- // query params
- Map queryParams = new HashMap();
- Map headerParams = new HashMap();
-
- 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 contentType = "application/json";
-
- try {
- String response = apiInvoker.invokeAPI(basePath, path, "GET", queryParams, null, headerParams, contentType);
- if(response != null){
- return (List) ApiInvoker.deserialize(response, "List", WordObject.class);
- }
- else {
- return null;
- }
- } catch (ApiException ex) {
- if(ex.getCode() == 404) {
- return null;
- }
- else {
- throw ex;
- }
- }
- }
- public WordObject getRandomWord (String includePartOfSpeech, String excludePartOfSpeech, String hasDictionaryDef, Integer minCorpusCount, Integer maxCorpusCount, Integer minDictionaryCount, Integer maxDictionaryCount, Integer minLength, Integer maxLength) throws ApiException {
- // create path and map variables
- String path = "/words.{format}/randomWord".replaceAll("\\{format\\}","json");
-
- // query params
- Map queryParams = new HashMap();
- Map headerParams = new HashMap();
-
- 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 contentType = "application/json";
-
- try {
- String response = apiInvoker.invokeAPI(basePath, path, "GET", queryParams, null, headerParams, contentType);
- if(response != null){
- return (WordObject) ApiInvoker.deserialize(response, "", WordObject.class);
- }
- else {
- return null;
- }
- } catch (ApiException ex) {
- if(ex.getCode() == 404) {
- return null;
- }
- else {
- throw ex;
- }
- }
- }
- }
-
diff --git a/samples/client/wordnik-api/android/src/main/java/com/wordnik/client/common/ApiException.java b/samples/client/wordnik-api/android/src/main/java/com/wordnik/client/common/ApiException.java
deleted file mode 100644
index 8c96d599bb4..00000000000
--- a/samples/client/wordnik-api/android/src/main/java/com/wordnik/client/common/ApiException.java
+++ /dev/null
@@ -1,29 +0,0 @@
-package com.wordnik.client.common;
-
-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;
- }
-}
diff --git a/samples/client/wordnik-api/android/src/main/java/com/wordnik/client/common/ApiInvoker.java b/samples/client/wordnik-api/android/src/main/java/com/wordnik/client/common/ApiInvoker.java
deleted file mode 100644
index fb2ba7f8ce5..00000000000
--- a/samples/client/wordnik-api/android/src/main/java/com/wordnik/client/common/ApiInvoker.java
+++ /dev/null
@@ -1,272 +0,0 @@
-package com.wordnik.client.common;
-
-
-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 org.apache.http.*;
-import org.apache.http.client.*;
-import org.apache.http.client.methods.*;
-import org.apache.http.conn.*;
-import org.apache.http.conn.scheme.*;
-import org.apache.http.conn.ssl.*;
-import org.apache.http.entity.StringEntity;
-import org.apache.http.impl.client.*;
-import org.apache.http.impl.conn.*;
-import org.apache.http.params.*;
-import org.apache.http.util.EntityUtils;
-
-import java.io.File;
-import java.net.Socket;
-import java.net.UnknownHostException;
-import java.net.URLEncoder;
-
-import java.util.Map;
-import java.util.HashMap;
-import java.util.List;
-import java.io.IOException;
-import java.io.UnsupportedEncodingException;
-
-import java.security.GeneralSecurityException;
-import java.security.KeyManagementException;
-import java.security.KeyStore;
-import java.security.NoSuchAlgorithmException;
-import java.security.SecureRandom;
-import java.security.cert.*;
-
-import java.text.DateFormat;
-import java.text.SimpleDateFormat;
-
-import java.util.Date;
-import java.util.Random;
-import java.util.logging.Level;
-import java.util.logging.Logger;
-
-import javax.crypto.Mac;
-import javax.crypto.spec.SecretKeySpec;
-
-import javax.net.ssl.SSLContext;
-import javax.net.ssl.TrustManager;
-import javax.net.ssl.X509TrustManager;
-
-public class ApiInvoker {
- private static ApiInvoker INSTANCE = new ApiInvoker();
- private Map defaultHeaderMap = new HashMap();
-
- private HttpClient client = null;
-
- private boolean ignoreSSLCertificates = false;
-
- private ClientConnectionManager ignoreSSLConnectionManager;
-
- public ApiInvoker() {
- initConnectionManager();
- }
-
- public static ApiInvoker getInstance() {
- return INSTANCE;
- }
-
- public void ignoreSSLCertificates(boolean ignoreSSLCertificates) {
- this.ignoreSSLCertificates = ignoreSSLCertificates;
- }
-
- public void addDefaultHeader(String key, String value) {
- defaultHeaderMap.put(key, value);
- }
-
- public String escapeString(String str) {
- 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 queryParams, Object body, Map headerParams, String contentType) throws ApiException {
- HttpClient 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 url = host + path + b.toString();
-
- HashMap headers = new HashMap();
-
- for(String key : headerParams.keySet()) {
- headers.put(key, headerParams.get(key));
- }
-
- for(String key : defaultHeaderMap.keySet()) {
- if(!headerParams.containsKey(key)) {
- headers.put(key, defaultHeaderMap.get(key));
- }
- }
- headers.put("Accept", "application/json");
-
- HttpResponse response = null;
- try{
- if("GET".equals(method)) {
- HttpGet get = new HttpGet(url);
- get.addHeader("Accept", "application/json");
- for(String key : headers.keySet()) {
- get.setHeader(key, headers.get(key));
- }
- response = client.execute(get);
- }
- else if ("POST".equals(method)) {
- HttpPost post = new HttpPost(url);
-
- if (body != null) {
- post.setHeader("Content-Type", contentType);
- post.setEntity(new StringEntity(serialize(body), "UTF-8"));
- }
- for(String key : headers.keySet()) {
- post.setHeader(key, headers.get(key));
- }
- response = client.execute(post);
- }
- else if ("PUT".equals(method)) {
- HttpPut put = new HttpPut(url);
- if(body != null) {
- put.setHeader("Content-Type", contentType);
- put.setEntity(new StringEntity(serialize(body), "UTF-8"));
- }
- for(String key : headers.keySet()) {
- put.setHeader(key, headers.get(key));
- }
- response = client.execute(put);
- }
- else if ("DELETE".equals(method)) {
- HttpDelete delete = new HttpDelete(url);
- for(String key : headers.keySet()) {
- delete.setHeader(key, headers.get(key));
- }
- response = client.execute(delete);
- }
-
- int code = response.getStatusLine().getStatusCode();
- String responseString = null;
- if(code == 204)
- responseString = "";
- else if(code >= 200 && code < 300) {
- if(response.getEntity() != null) {
- HttpEntity resEntity = response.getEntity();
- responseString = EntityUtils.toString(resEntity);
- }
- }
- else {
- if(response.getEntity() != null) {
- HttpEntity resEntity = response.getEntity();
- responseString = EntityUtils.toString(resEntity);
- }
- else
- responseString = "no data";
- throw new ApiException(code, responseString);
- }
- return responseString;
- }
- catch(IOException e) {
- throw new ApiException(500, e.getMessage());
- }
- }
-
- private HttpClient getClient(String host) {
- if (client == null) {
- if (ignoreSSLCertificates && ignoreSSLConnectionManager != null) {
- // Trust self signed certificates
- client = new DefaultHttpClient(ignoreSSLConnectionManager, new BasicHttpParams());
- } else {
- client = new DefaultHttpClient();
- }
- }
- return client;
- }
-
- private void initConnectionManager() {
- try {
- final SSLContext sslContext = SSLContext.getInstance("SSL");
-
- // set up a TrustManager that trusts everything
- TrustManager[] trustManagers = new TrustManager[] {
- new X509TrustManager() {
- public X509Certificate[] getAcceptedIssuers() {
- return null;
- }
- public void checkClientTrusted(X509Certificate[] certs, String authType) {}
- public void checkServerTrusted(X509Certificate[] certs, String authType) {}
- }};
-
- sslContext.init(null, trustManagers, new SecureRandom());
-
- SSLSocketFactory sf = new SSLSocketFactory((KeyStore)null) {
- private javax.net.ssl.SSLSocketFactory sslFactory = sslContext.getSocketFactory();
-
- public Socket createSocket(Socket socket, String host, int port, boolean autoClose)
- throws IOException, UnknownHostException {
- return sslFactory.createSocket(socket, host, port, autoClose);
- }
-
- public Socket createSocket() throws IOException {
- return sslFactory.createSocket();
- }
- };
-
- sf.setHostnameVerifier(SSLSocketFactory.ALLOW_ALL_HOSTNAME_VERIFIER);
- Scheme httpsScheme = new Scheme("https", sf, 443);
- SchemeRegistry schemeRegistry = new SchemeRegistry();
- schemeRegistry.register(httpsScheme);
- schemeRegistry.register(new Scheme("http", PlainSocketFactory.getSocketFactory(), 80));
-
- ignoreSSLConnectionManager = new SingleClientConnManager(new BasicHttpParams(), schemeRegistry);
- } catch (NoSuchAlgorithmException e) {
- // This will only be thrown if SSL isn't available for some reason.
- } catch (KeyManagementException e) {
- // This might be thrown when passing a key into init(), but no key is being passed.
- } catch (GeneralSecurityException e) {
- // This catches anything else that might go wrong.
- // If anything goes wrong we default to the standard connection manager.
- }
- }
-}
-
diff --git a/samples/client/wordnik-api/android/src/main/java/com/wordnik/client/common/JsonUtil.java b/samples/client/wordnik-api/android/src/main/java/com/wordnik/client/common/JsonUtil.java
deleted file mode 100644
index 3a3ceb7b326..00000000000
--- a/samples/client/wordnik-api/android/src/main/java/com/wordnik/client/common/JsonUtil.java
+++ /dev/null
@@ -1,21 +0,0 @@
-package com.wordnik.client.common;
-
-import com.fasterxml.jackson.annotation.*;
-import com.fasterxml.jackson.databind.*;
-import com.fasterxml.jackson.databind.annotation.JsonSerialize;
-import com.fasterxml.jackson.core.JsonGenerator.Feature;
-
-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);
- }
-
- public static ObjectMapper getJsonMapper() {
- return mapper;
- }
-}
-
diff --git a/samples/client/wordnik-api/android/src/main/java/com/wordnik/client/model/ApiTokenStatus.java b/samples/client/wordnik-api/android/src/main/java/com/wordnik/client/model/ApiTokenStatus.java
deleted file mode 100644
index 4f65a350537..00000000000
--- a/samples/client/wordnik-api/android/src/main/java/com/wordnik/client/model/ApiTokenStatus.java
+++ /dev/null
@@ -1,74 +0,0 @@
-package com.wordnik.client.model;
-
-import com.fasterxml.jackson.annotation.JsonProperty;
-
-public class ApiTokenStatus {
- @JsonProperty("valid")
- private Boolean valid = null;
- @JsonProperty("token")
- private String token = null;
- @JsonProperty("resetsInMillis")
- private Long resetsInMillis = null;
- @JsonProperty("remainingCalls")
- private Long remainingCalls = null;
- @JsonProperty("expiresInMillis")
- private Long expiresInMillis = null;
- @JsonProperty("totalRequests")
- private Long totalRequests = null;
- public Boolean getValid() {
- return valid;
- }
- public void setValid(Boolean valid) {
- this.valid = valid;
- }
-
- public String getToken() {
- return token;
- }
- public void setToken(String token) {
- this.token = token;
- }
-
- public Long getResetsInMillis() {
- return resetsInMillis;
- }
- public void setResetsInMillis(Long resetsInMillis) {
- this.resetsInMillis = resetsInMillis;
- }
-
- public Long getRemainingCalls() {
- return remainingCalls;
- }
- public void setRemainingCalls(Long remainingCalls) {
- this.remainingCalls = remainingCalls;
- }
-
- public Long getExpiresInMillis() {
- return expiresInMillis;
- }
- public void setExpiresInMillis(Long expiresInMillis) {
- this.expiresInMillis = expiresInMillis;
- }
-
- 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();
- }
-}
-
diff --git a/samples/client/wordnik-api/android/src/main/java/com/wordnik/client/model/AudioFile.java b/samples/client/wordnik-api/android/src/main/java/com/wordnik/client/model/AudioFile.java
deleted file mode 100644
index d6d46ad2f8e..00000000000
--- a/samples/client/wordnik-api/android/src/main/java/com/wordnik/client/model/AudioFile.java
+++ /dev/null
@@ -1,155 +0,0 @@
-package com.wordnik.client.model;
-
-import com.fasterxml.jackson.annotation.JsonProperty;
-
-import java.util.Date;
-public class AudioFile {
- @JsonProperty("attributionUrl")
- private String attributionUrl = null;
- @JsonProperty("commentCount")
- private Integer commentCount = null;
- @JsonProperty("voteCount")
- private Integer voteCount = null;
- @JsonProperty("fileUrl")
- private String fileUrl = null;
- @JsonProperty("audioType")
- private String audioType = null;
- @JsonProperty("id")
- private Long id = null;
- @JsonProperty("duration")
- private Double duration = null;
- @JsonProperty("attributionText")
- private String attributionText = null;
- @JsonProperty("createdBy")
- private String createdBy = null;
- @JsonProperty("description")
- private String description = null;
- @JsonProperty("createdAt")
- private Date createdAt = null;
- @JsonProperty("voteWeightedAverage")
- private Float voteWeightedAverage = null;
- @JsonProperty("voteAverage")
- private Float voteAverage = null;
- @JsonProperty("word")
- private String word = null;
- public String getAttributionUrl() {
- return attributionUrl;
- }
- public void setAttributionUrl(String attributionUrl) {
- this.attributionUrl = attributionUrl;
- }
-
- public Integer getCommentCount() {
- return commentCount;
- }
- public void setCommentCount(Integer commentCount) {
- this.commentCount = commentCount;
- }
-
- public Integer getVoteCount() {
- return voteCount;
- }
- public void setVoteCount(Integer voteCount) {
- this.voteCount = voteCount;
- }
-
- public String getFileUrl() {
- return fileUrl;
- }
- public void setFileUrl(String fileUrl) {
- this.fileUrl = fileUrl;
- }
-
- public String getAudioType() {
- return audioType;
- }
- public void setAudioType(String audioType) {
- this.audioType = audioType;
- }
-
- public Long getId() {
- return id;
- }
- public void setId(Long id) {
- this.id = id;
- }
-
- public Double getDuration() {
- return duration;
- }
- public void setDuration(Double duration) {
- this.duration = duration;
- }
-
- public String getAttributionText() {
- return attributionText;
- }
- public void setAttributionText(String attributionText) {
- this.attributionText = attributionText;
- }
-
- public String getCreatedBy() {
- return createdBy;
- }
- public void setCreatedBy(String createdBy) {
- this.createdBy = createdBy;
- }
-
- public String getDescription() {
- return description;
- }
- public void setDescription(String description) {
- this.description = description;
- }
-
- public Date getCreatedAt() {
- return createdAt;
- }
- public void setCreatedAt(Date createdAt) {
- this.createdAt = createdAt;
- }
-
- public Float getVoteWeightedAverage() {
- return voteWeightedAverage;
- }
- public void setVoteWeightedAverage(Float voteWeightedAverage) {
- this.voteWeightedAverage = voteWeightedAverage;
- }
-
- public Float getVoteAverage() {
- return voteAverage;
- }
- public void setVoteAverage(Float voteAverage) {
- this.voteAverage = voteAverage;
- }
-
- 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();
- }
-}
-
diff --git a/samples/client/wordnik-api/android/src/main/java/com/wordnik/client/model/AuthenticationToken.java b/samples/client/wordnik-api/android/src/main/java/com/wordnik/client/model/AuthenticationToken.java
deleted file mode 100644
index 03c6cc00dba..00000000000
--- a/samples/client/wordnik-api/android/src/main/java/com/wordnik/client/model/AuthenticationToken.java
+++ /dev/null
@@ -1,44 +0,0 @@
-package com.wordnik.client.model;
-
-import com.fasterxml.jackson.annotation.JsonProperty;
-
-public class AuthenticationToken {
- @JsonProperty("token")
- private String token = null;
- @JsonProperty("userId")
- private Long userId = null;
- @JsonProperty("userSignature")
- private String userSignature = null;
- public String getToken() {
- return token;
- }
- public void setToken(String token) {
- this.token = token;
- }
-
- public Long getUserId() {
- return userId;
- }
- public void setUserId(Long userId) {
- this.userId = userId;
- }
-
- 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();
- }
-}
-
diff --git a/samples/client/wordnik-api/android/src/main/java/com/wordnik/client/model/Bigram.java b/samples/client/wordnik-api/android/src/main/java/com/wordnik/client/model/Bigram.java
deleted file mode 100644
index 4be9f36cf56..00000000000
--- a/samples/client/wordnik-api/android/src/main/java/com/wordnik/client/model/Bigram.java
+++ /dev/null
@@ -1,64 +0,0 @@
-package com.wordnik.client.model;
-
-import com.fasterxml.jackson.annotation.JsonProperty;
-
-public class Bigram {
- @JsonProperty("count")
- private Long count = null;
- @JsonProperty("gram2")
- private String gram2 = null;
- @JsonProperty("gram1")
- private String gram1 = null;
- @JsonProperty("wlmi")
- private Double wlmi = null;
- @JsonProperty("mi")
- private Double mi = null;
- public Long getCount() {
- return count;
- }
- public void setCount(Long count) {
- this.count = count;
- }
-
- public String getGram2() {
- return gram2;
- }
- public void setGram2(String gram2) {
- this.gram2 = gram2;
- }
-
- public String getGram1() {
- return gram1;
- }
- public void setGram1(String gram1) {
- this.gram1 = gram1;
- }
-
- public Double getWlmi() {
- return wlmi;
- }
- public void setWlmi(Double wlmi) {
- this.wlmi = wlmi;
- }
-
- 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();
- }
-}
-
diff --git a/samples/client/wordnik-api/android/src/main/java/com/wordnik/client/model/Citation.java b/samples/client/wordnik-api/android/src/main/java/com/wordnik/client/model/Citation.java
deleted file mode 100644
index 5b2f45bc650..00000000000
--- a/samples/client/wordnik-api/android/src/main/java/com/wordnik/client/model/Citation.java
+++ /dev/null
@@ -1,34 +0,0 @@
-package com.wordnik.client.model;
-
-import com.fasterxml.jackson.annotation.JsonProperty;
-
-public class Citation {
- @JsonProperty("cite")
- private String cite = null;
- @JsonProperty("source")
- private String source = null;
- public String getCite() {
- return cite;
- }
- public void setCite(String cite) {
- this.cite = cite;
- }
-
- 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();
- }
-}
-
diff --git a/samples/client/wordnik-api/android/src/main/java/com/wordnik/client/model/ContentProvider.java b/samples/client/wordnik-api/android/src/main/java/com/wordnik/client/model/ContentProvider.java
deleted file mode 100644
index b0d994d3b0b..00000000000
--- a/samples/client/wordnik-api/android/src/main/java/com/wordnik/client/model/ContentProvider.java
+++ /dev/null
@@ -1,34 +0,0 @@
-package com.wordnik.client.model;
-
-import com.fasterxml.jackson.annotation.JsonProperty;
-
-public class ContentProvider {
- @JsonProperty("id")
- private Integer id = null;
- @JsonProperty("name")
- private String name = null;
- public Integer getId() {
- return id;
- }
- public void setId(Integer id) {
- this.id = id;
- }
-
- 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();
- }
-}
-
diff --git a/samples/client/wordnik-api/android/src/main/java/com/wordnik/client/model/Definition.java b/samples/client/wordnik-api/android/src/main/java/com/wordnik/client/model/Definition.java
deleted file mode 100644
index f16273a415a..00000000000
--- a/samples/client/wordnik-api/android/src/main/java/com/wordnik/client/model/Definition.java
+++ /dev/null
@@ -1,181 +0,0 @@
-package com.wordnik.client.model;
-
-import com.fasterxml.jackson.annotation.JsonProperty;
-
-import java.util.*;
-import com.wordnik.client.model.Label;
-import com.wordnik.client.model.ExampleUsage;
-import com.wordnik.client.model.TextPron;
-import com.wordnik.client.model.Citation;
-import com.wordnik.client.model.Related;
-import com.wordnik.client.model.Note;
-public class Definition {
- @JsonProperty("extendedText")
- private String extendedText = null;
- @JsonProperty("text")
- private String text = null;
- @JsonProperty("sourceDictionary")
- private String sourceDictionary = null;
- @JsonProperty("citations")
- private List citations = new ArrayList();
- @JsonProperty("labels")
- private List