updated with latest codegen

This commit is contained in:
Tony Tam
2012-12-04 10:20:59 -08:00
parent 99cca5d249
commit f4cd02283b
8 changed files with 22 additions and 22 deletions

View File

@@ -4,15 +4,15 @@ import com.wordnik.client.model.Category;
import com.wordnik.client.model.Tag;
[XmlRootNode(name="Pet")]
public class Pet {
[XmlElement(name="id")]
public var id: Number = 0.0;
// 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")]
[XmlElements(name="tag", type="com.wordnik.client.model.Tag")]
public var tags: Array = new Array();
[XmlElement(name="id")]
public var id: Number = 0.0;
[XmlElement(name="category")]
public var category: Category = null;
@@ -31,8 +31,8 @@ import com.wordnik.client.model.Tag;
public function toString(): String {
var str: String = "Pet: ";
str += " (id: " + id + ")";
str += " (tags: " + tags + ")";
str += " (id: " + id + ")";
str += " (category: " + category + ")";
str += " (status: " + status + ")";
str += " (name: " + name + ")";

View File

@@ -8,12 +8,12 @@ package com.wordnik.client.model {
[XmlElement(name="lastName")]
public var lastName: String = null;
[XmlElement(name="username")]
public var username: String = null;
[XmlElement(name="phone")]
public var phone: String = null;
[XmlElement(name="username")]
public var username: String = null;
[XmlElement(name="email")]
public var email: String = null;
@@ -31,8 +31,8 @@ package com.wordnik.client.model {
var str: String = "User: ";
str += " (id: " + id + ")";
str += " (lastName: " + lastName + ")";
str += " (username: " + username + ")";
str += " (phone: " + phone + ")";
str += " (username: " + username + ")";
str += " (email: " + email + ")";
str += " (userStatus: " + userStatus + ")";
str += " (firstName: " + firstName + ")";

View File

@@ -24,23 +24,23 @@
class Pet {
static $swaggerTypes = array(
'tags' => 'array[Some(Tag)]',
'id' => 'int',
'tags' => 'array[Tag]',
'category' => 'Category',
'status' => 'string',
'name' => 'string',
'photoUrls' => 'array[string]'
'photoUrls' => 'array[None]'
);
public $tags; // array[Some(Tag)]
public $id; // int
public $tags; // array[Tag]
public $category; // Category
/**
* pet status in the store
*/
public $status; // string
public $name; // string
public $photoUrls; // array[string]
public $photoUrls; // array[None]
}

View File

@@ -26,8 +26,8 @@ class User {
static $swaggerTypes = array(
'id' => 'int',
'lastName' => 'string',
'username' => 'string',
'phone' => 'string',
'username' => 'string',
'email' => 'string',
'userStatus' => 'int',
'firstName' => 'string',
@@ -37,8 +37,8 @@ class User {
public $id; // int
public $lastName; // string
public $username; // string
public $phone; // string
public $username; // string
public $email; // string
/**
* User Status

View File

@@ -21,8 +21,8 @@ class Pet:
def __init__(self):
self.swaggerTypes = {
'id': 'long',
'tags': 'list[Tag]',
'id': 'long',
'category': 'Category',
'status': 'str',
'name': 'str',
@@ -31,8 +31,8 @@ class Pet:
}
self.id = None # long
self.tags = None # list[Tag]
self.id = None # long
self.category = None # Category
#pet status in the store
self.status = None # str

View File

@@ -23,8 +23,8 @@ class User:
self.swaggerTypes = {
'id': 'long',
'lastName': 'str',
'username': 'str',
'phone': 'str',
'username': 'str',
'email': 'str',
'userStatus': 'int',
'firstName': 'str',
@@ -35,8 +35,8 @@ class User:
self.id = None # long
self.lastName = None # str
self.username = None # str
self.phone = None # str
self.username = None # str
self.email = None # str
#User Status
self.userStatus = None # int

View File

@@ -21,8 +21,8 @@ class Pet:
def __init__(self):
self.swaggerTypes = {
'id': 'int',
'tags': 'list[Tag]',
'id': 'int',
'category': 'Category',
'status': 'str',
'name': 'str',
@@ -31,8 +31,8 @@ class Pet:
}
self.id = None # int
self.tags = None # list[Tag]
self.id = None # int
self.category = None # Category
#pet status in the store
self.status = None # str

View File

@@ -23,8 +23,8 @@ class User:
self.swaggerTypes = {
'id': 'int',
'lastName': 'str',
'username': 'str',
'phone': 'str',
'username': 'str',
'email': 'str',
'userStatus': 'int',
'firstName': 'str',
@@ -35,8 +35,8 @@ class User:
self.id = None # int
self.lastName = None # str
self.username = None # str
self.phone = None # str
self.username = None # str
self.email = None # str
#User Status
self.userStatus = None # int