Skip to content

Commit

Permalink
[kotlin][client] remove tabs usage (#6526)
Browse files Browse the repository at this point in the history
* [kotlin] remove tabs

* [kotlin][client] update pet projects
  • Loading branch information
4brunu authored Jun 4, 2020
1 parent 176c439 commit ae790ea
Show file tree
Hide file tree
Showing 242 changed files with 1,384 additions and 754 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ import java.io.Serializable
){{/discriminator}}{{#parent}}{{^serializableModel}}{{^parcelizeModels}} : {{{parent}}}{{#isMapModel}}(){{/isMapModel}}{{#isArrayModel}}(){{/isArrayModel}}{{/parcelizeModels}}{{/serializableModel}}{{/parent}}{{#parent}}{{#serializableModel}}{{^parcelizeModels}} : {{{parent}}}{{#isMapModel}}(){{/isMapModel}}{{#isArrayModel}}(){{/isArrayModel}}, Serializable{{/parcelizeModels}}{{/serializableModel}}{{/parent}}{{#parent}}{{^serializableModel}}{{#parcelizeModels}} : {{{parent}}}{{#isMapModel}}(){{/isMapModel}}{{#isArrayModel}}(){{/isArrayModel}}, Parcelable{{/parcelizeModels}}{{/serializableModel}}{{/parent}}{{#parent}}{{#serializableModel}}{{#parcelizeModels}} : {{{parent}}}{{#isMapModel}}(){{/isMapModel}}{{#isArrayModel}}(){{/isArrayModel}}, Serializable, Parcelable{{/parcelizeModels}}{{/serializableModel}}{{/parent}}{{^parent}}{{#serializableModel}}{{^parcelizeModels}} : Serializable{{/parcelizeModels}}{{/serializableModel}}{{/parent}}{{^parent}}{{^serializableModel}}{{#parcelizeModels}} : Parcelable{{/parcelizeModels}}{{/serializableModel}}{{/parent}}{{^parent}}{{#serializableModel}}{{#parcelizeModels}} : Serializable, Parcelable{{/parcelizeModels}}{{/serializableModel}}{{/parent}}{{#vendorExtensions.x-has-data-class-body}} {
{{/vendorExtensions.x-has-data-class-body}}
{{#serializableModel}}
{{#nonPublicApi}}internal {{/nonPublicApi}}companion object {
private const val serialVersionUID: Long = 123
}
{{#nonPublicApi}}internal {{/nonPublicApi}}companion object {
private const val serialVersionUID: Long = 123
}
{{/serializableModel}}
{{#discriminator}}{{#vars}}{{#required}}
{{>interface_req_var}}{{/required}}{{^required}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,11 @@ import kotlinx.serialization.internal.CommonEnumSerializer

{{/enumVars}}{{/allowableValues}}

/**
This override toString avoids using the enum var name and uses the actual api value instead.
In cases the var name and value are different, the client would send incorrect enums to the server.
**/
override fun toString(): String {
/**
This override toString avoids using the enum var name and uses the actual api value instead.
In cases the var name and value are different, the client would send incorrect enums to the server.
**/
override fun toString(): String {
return value{{^isString}}.toString(){{/isString}}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ data class ApiResponse (
@SerializedName("message")
val message: kotlin.String? = null
) : Serializable {
companion object {
private const val serialVersionUID: Long = 123
}
companion object {
private const val serialVersionUID: Long = 123
}

}

Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ data class Category (
@SerializedName("name")
val name: kotlin.String? = null
) : Serializable {
companion object {
private const val serialVersionUID: Long = 123
}
companion object {
private const val serialVersionUID: Long = 123
}

}

Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ data class Order (
@SerializedName("complete")
val complete: kotlin.Boolean? = null
) : Serializable {
companion object {
private const val serialVersionUID: Long = 123
}
companion object {
private const val serialVersionUID: Long = 123
}

/**
* Order Status
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ data class Pet (
@SerializedName("status")
val status: Pet.Status? = null
) : Serializable {
companion object {
private const val serialVersionUID: Long = 123
}
companion object {
private const val serialVersionUID: Long = 123
}

/**
* pet status in the store
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ data class Tag (
@SerializedName("name")
val name: kotlin.String? = null
) : Serializable {
companion object {
private const val serialVersionUID: Long = 123
}
companion object {
private const val serialVersionUID: Long = 123
}

}

Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ data class User (
@SerializedName("userStatus")
val userStatus: kotlin.Int? = null
) : Serializable {
companion object {
private const val serialVersionUID: Long = 123
}
companion object {
private const val serialVersionUID: Long = 123
}

}

Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ data class ApiResponse (
@Json(name = "message")
val message: kotlin.String? = null
) : Serializable {
companion object {
private const val serialVersionUID: Long = 123
}
companion object {
private const val serialVersionUID: Long = 123
}

}

Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ data class Category (
@Json(name = "name")
val name: kotlin.String? = null
) : Serializable {
companion object {
private const val serialVersionUID: Long = 123
}
companion object {
private const val serialVersionUID: Long = 123
}

}

Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ data class Order (
@Json(name = "complete")
val complete: kotlin.Boolean? = null
) : Serializable {
companion object {
private const val serialVersionUID: Long = 123
}
companion object {
private const val serialVersionUID: Long = 123
}

/**
* Order Status
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ data class Pet (
@Json(name = "status")
val status: Pet.Status? = null
) : Serializable {
companion object {
private const val serialVersionUID: Long = 123
}
companion object {
private const val serialVersionUID: Long = 123
}

/**
* pet status in the store
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ data class Tag (
@Json(name = "name")
val name: kotlin.String? = null
) : Serializable {
companion object {
private const val serialVersionUID: Long = 123
}
companion object {
private const val serialVersionUID: Long = 123
}

}

Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ data class User (
@Json(name = "userStatus")
val userStatus: kotlin.Int? = null
) : Serializable {
companion object {
private const val serialVersionUID: Long = 123
}
companion object {
private const val serialVersionUID: Long = 123
}

}

Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ data class ApiResponse (
@Json(name = "message")
val message: kotlin.String? = null
) : Serializable {
companion object {
private const val serialVersionUID: Long = 123
}
companion object {
private const val serialVersionUID: Long = 123
}

}

Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ data class Category (
@Json(name = "name")
val name: kotlin.String? = null
) : Serializable {
companion object {
private const val serialVersionUID: Long = 123
}
companion object {
private const val serialVersionUID: Long = 123
}

}

Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ data class Order (
@Json(name = "complete")
val complete: kotlin.Boolean? = null
) : Serializable {
companion object {
private const val serialVersionUID: Long = 123
}
companion object {
private const val serialVersionUID: Long = 123
}

/**
* Order Status
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ data class Pet (
@Json(name = "status")
val status: Pet.Status? = null
) : Serializable {
companion object {
private const val serialVersionUID: Long = 123
}
companion object {
private const val serialVersionUID: Long = 123
}

/**
* pet status in the store
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ data class Tag (
@Json(name = "name")
val name: kotlin.String? = null
) : Serializable {
companion object {
private const val serialVersionUID: Long = 123
}
companion object {
private const val serialVersionUID: Long = 123
}

}

Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ data class User (
@Json(name = "userStatus")
val userStatus: kotlin.Int? = null
) : Serializable {
companion object {
private const val serialVersionUID: Long = 123
}
companion object {
private const val serialVersionUID: Long = 123
}

}

Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ data class ApiResponse (
@Json(name = "message")
val message: kotlin.String? = null
) : Serializable {
companion object {
private const val serialVersionUID: Long = 123
}
companion object {
private const val serialVersionUID: Long = 123
}

}

Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ data class Category (
@Json(name = "name")
val name: kotlin.String? = null
) : Serializable {
companion object {
private const val serialVersionUID: Long = 123
}
companion object {
private const val serialVersionUID: Long = 123
}

}

Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ data class Order (
@Json(name = "complete")
val complete: kotlin.Boolean? = null
) : Serializable {
companion object {
private const val serialVersionUID: Long = 123
}
companion object {
private const val serialVersionUID: Long = 123
}

/**
* Order Status
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ data class Pet (
@Json(name = "status")
val status: Pet.Status? = null
) : Serializable {
companion object {
private const val serialVersionUID: Long = 123
}
companion object {
private const val serialVersionUID: Long = 123
}

/**
* pet status in the store
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ data class Tag (
@Json(name = "name")
val name: kotlin.String? = null
) : Serializable {
companion object {
private const val serialVersionUID: Long = 123
}
companion object {
private const val serialVersionUID: Long = 123
}

}

Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ data class User (
@Json(name = "userStatus")
val userStatus: kotlin.Int? = null
) : Serializable {
companion object {
private const val serialVersionUID: Long = 123
}
companion object {
private const val serialVersionUID: Long = 123
}

}

Loading

0 comments on commit ae790ea

Please sign in to comment.