[kotlin][client] Add inheritance to Kotlin Client templates (#4453)

* Add inheritance to Kotlin Client templates

* Correct white spacing issues

* Rebuild kotlin client samples
This commit is contained in:
Matt Traynham
2020-02-01 22:12:11 -05:00
committed by GitHub
parent a496c2011f
commit 26c9c64634
72 changed files with 128 additions and 231 deletions

View File

@@ -28,12 +28,10 @@ data class ApiResponse (
val type: kotlin.String? = null,
@Json(name = "message")
val message: kotlin.String? = null
)
: Serializable
{
) : Serializable {
companion object {
private const val serialVersionUID: Long = 123
}
}

View File

@@ -25,12 +25,10 @@ data class Category (
val id: kotlin.Long? = null,
@Json(name = "name")
val name: kotlin.String? = null
)
: Serializable
{
) : Serializable {
companion object {
private const val serialVersionUID: Long = 123
}
}

View File

@@ -38,13 +38,11 @@ data class Order (
val status: Order.Status? = null,
@Json(name = "complete")
val complete: kotlin.Boolean? = null
)
: Serializable
{
) : Serializable {
companion object {
private const val serialVersionUID: Long = 123
}
/**
* Order Status
* Values: placed,approved,delivered

View File

@@ -27,26 +27,24 @@ import java.io.Serializable
*/
data class Pet (
@Json(name = "id")
val id: kotlin.Long? = null,
@Json(name = "category")
val category: Category? = null,
@Json(name = "name")
val name: kotlin.String,
@Json(name = "photoUrls")
val photoUrls: kotlin.Array<kotlin.String>,
@Json(name = "id")
val id: kotlin.Long? = null,
@Json(name = "category")
val category: Category? = null,
@Json(name = "tags")
val tags: kotlin.Array<Tag>? = null,
/* pet status in the store */
@Json(name = "status")
val status: Pet.Status? = null
)
: Serializable
{
) : Serializable {
companion object {
private const val serialVersionUID: Long = 123
}
/**
* pet status in the store
* Values: available,pending,sold

View File

@@ -25,12 +25,10 @@ data class Tag (
val id: kotlin.Long? = null,
@Json(name = "name")
val name: kotlin.String? = null
)
: Serializable
{
) : Serializable {
companion object {
private const val serialVersionUID: Long = 123
}
}

View File

@@ -44,12 +44,10 @@ data class User (
/* User Status */
@Json(name = "userStatus")
val userStatus: kotlin.Int? = null
)
: Serializable
{
) : Serializable {
companion object {
private const val serialVersionUID: Long = 123
}
}