regenerated client

This commit is contained in:
Tony Tam
2014-06-10 16:51:41 -07:00
parent 4b4d4d32cd
commit 58d9894f1f
7 changed files with 8 additions and 27 deletions

View File

@@ -1,5 +1,5 @@
/**
* Copyright 2012 Wordnik, Inc.
* 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.

View File

@@ -63,7 +63,7 @@
<arg line="-source-path ${sourcepath}"/>
<arg line="-footer 'Copyright Wordnik'"/>
<arg line="-package com.wordnik.swagger.api 'Contains the apis which are used by clients to make calls to the services deployed'"/>
<arg line="-package com.wordnik.swagger.model 'Contains common classes which encapsulate data elements required'"/>
<arg line="-package com.wordnik.swagger.codegen.model 'Contains common classes which encapsulate data elements required'"/>
<arg line="-package com.wordnik.swagger.common 'Contains classes which are used by the api classes to invoke the deployed api like SwaggerApi - a base class, ApiUserCredentials, etc.'"/>
<arg line="-package com.wordnik.swagger.event 'Results of calls made to Wordnik are returned via dispatched events. This package contains such event classes. Right now thats just ApiClientEvent and Response.'"/>
<arg line="-package com.wordnik.swagger.exception 'Contains classes that encapsulate the errors generated'"/>

View File

@@ -2,11 +2,9 @@ package com.wordnik.client.model {
[XmlRootNode(name="Category")]
public class Category {
/* Category unique identifier */
[XmlElement(name="id")]
public var id: Number = 0.0;
/* Name of the category */
[XmlElement(name="name")]
public var name: String = null;

View File

@@ -2,23 +2,19 @@ package com.wordnik.client.model {
[XmlRootNode(name="Order")]
public class Order {
/* Unique identifier for the order */
[XmlElement(name="id")]
public var id: Number = 0.0;
/* ID of pet being ordered */
[XmlElement(name="petId")]
public var petId: Number = 0.0;
/* Number of pets ordered */
[XmlElement(name="quantity")]
public var quantity: Number = 0.0;
/* Status of the order */
/* Order Status */
[XmlElement(name="status")]
public var status: String = null;
/* Date shipped, only if it has been */
[XmlElement(name="shipDate")]
public var shipDate: Date = null;

View File

@@ -4,26 +4,22 @@ import com.wordnik.client.model.Category;
import com.wordnik.client.model.Tag;
[XmlRootNode(name="Pet")]
public class Pet {
/* Unique identifier for the Pet */
/* unique identifier for the pet */
[XmlElement(name="id")]
public var id: Number = 0.0;
/* Category the pet is in */
[XmlElement(name="category")]
public var category: Category = null;
/* Friendly name of the pet */
[XmlElement(name="name")]
public var name: String = null;
/* Image URLs */
// This declaration below of _photoUrls_obj_class is to force flash compiler to include this class
private var _photoUrls_obj_class: com.wordnik.client.model.String = null;
[XmlElementWrapper(name="photoUrls")]
[XmlElements(name="photoUrl", type="com.wordnik.client.model.String")]
public var photoUrls: Array = new Array();
/* Tags assigned to this pet */
// This declaration below of _tags_obj_class is to force flash compiler to include this class
private var _tags_obj_class: com.wordnik.client.model.Tag = null;
[XmlElementWrapper(name="tags")]

View File

@@ -2,11 +2,9 @@ package com.wordnik.client.model {
[XmlRootNode(name="Tag")]
public class Tag {
/* Unique identifier for the tag */
[XmlElement(name="id")]
public var id: Number = 0.0;
/* Friendly name for the tag */
[XmlElement(name="name")]
public var name: String = null;

View File

@@ -2,31 +2,24 @@ package com.wordnik.client.model {
[XmlRootNode(name="User")]
public class User {
/* Unique identifier for the user */
[XmlElement(name="id")]
public var id: Number = 0.0;
/* Unique username */
[XmlElement(name="username")]
public var username: String = null;
/* First name of the user */
[XmlElement(name="firstName")]
public var firstName: String = null;
/* Last name of the user */
[XmlElement(name="username")]
public var username: String = null;
[XmlElement(name="lastName")]
public var lastName: String = null;
/* Email address of the user */
[XmlElement(name="email")]
public var email: String = null;
/* Password name of the user */
[XmlElement(name="password")]
public var password: String = null;
/* Phone number of the user */
[XmlElement(name="phone")]
public var phone: String = null;
@@ -37,8 +30,8 @@ package com.wordnik.client.model {
public function toString(): String {
var str: String = "User: ";
str += " (id: " + id + ")";
str += " (username: " + username + ")";
str += " (firstName: " + firstName + ")";
str += " (username: " + username + ")";
str += " (lastName: " + lastName + ")";
str += " (email: " + email + ")";
str += " (password: " + password + ")";