This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from lotus.declarations import declare_type | |
declare_type({ | |
'api': 'test_object', | |
'trove': 'trove.data.TestObject', | |
'android': 'TestObject', | |
'spec': { | |
# Primitive types |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @return ApiNode|null | |
*/ | |
public function createDataNode() | |
{ | |
/** @var ApiDataNode */ | |
$dataNode = new ApiDataNode(); | |
if (!is_null($this->date)) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php> | |
/** | |
* @return ApiNode|null | |
*/ | |
public function createDataNode() | |
{ | |
/** @var ApiDataNode */ | |
$dataNode = new ApiDataNode(); | |
if (!is_null($this->date)) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.zoosk.zoosk.data.objects.json; | |
import java.util.List; | |
import com.zoosk.zaframework.lang.JSONArray; | |
import com.zoosk.zaframework.lang.JSONObject; | |
class TestObject extends ZObject { | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @constructor | |
* @param {trove.data.TestObjectBuilder} builder | |
*/ | |
trove.data.TestObject = function(builder) { | |
this.alphanumericList_ = builder.alphanumericList; | |
this.primitiveAlphanumeric_ = builder.primitiveAlphanumeric; | |
this.primitiveString_ = builder.primitiveString; | |
this.stringSet_ = builder.stringSet; | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @constructor | |
* @param {trove.data.TestObjectBuilder} builder | |
*/ | |
trove.data.TestObject = function(builder) { | |
this.alphanumericList_ = builder.alphanumericList; | |
this.primitiveAlphanumeric_ = builder.primitiveAlphanumeric; | |
this.primitiveString_ = builder.primitiveString; | |
this.stringSet_ = builder.stringSet; | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @constructor | |
* @param {trove.data.TestObjectBuilder} builder | |
*/ | |
trove.data.TestObject = function(builder) { | |
this.alphanumericList_ = builder.alphanumericList; | |
this.primitiveAlphanumeric_ = builder.primitiveAlphanumeric; | |
this.primitiveString_ = builder.primitiveString; | |
this.stringSet_ = builder.stringSet; | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
goog.provide('trove.data.TestObject'); | |
goog.provide('trove.data.TestObjectBuilder'); | |
/** | |
* @constructor | |
* @param {trove.data.TestObjectBuilder} builder | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
goog.provide('trove.data.TestObject'); | |
goog.provide('trove.data.TestObjectBuilder'); | |
/** | |
* @constructor | |
* @param {trove.data.TestObjectBuilder} builder | |
*/ | |
trove.data.TestObject = function(builder) { |