File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
boat-scaffold/src/main/templates/boat-android Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 88 */
99{ {#hasParams} }@DataApi { {/hasParams} }class { {{operationIdCamelCase} }} internal constructor(
1010 { {#allParams} }
11+ { {#isModel} }
12+ val { {{paramName} }}: { {modelPackage} }.{ {{dataType} }}{ {^required} }? = null{ {/required} },{ {/isModel} } { {^isModel} }
13+ val { {{paramName} }}: { {{dataType} }}{ {^required} }? = null{ {/required} }, { {/isModel} }
1114
12- val { {{paramName} }}: { {{dataType} }}{ {^required} }? = null{ {/required} },
1315
1416 { {#isMultipart} }
1517 { {#isFormParam} }
3537
3638 class Builder {
3739 {{#allParams} }
38- var { {{paramName} }}: { {{dataType} }}? = null
40+ { {#isModel} }
41+ var { {{paramName} }}: { {modelPackage} }.{ {{dataType} }}? = null { {/isModel} } { {^isModel} }
42+ var { {{paramName} }}: { {{dataType} }}? = null { {/isModel} }
3943 { {#isMultipart} }
4044 { {#isFormParam} }
4145 { {^isFile} }
9296@JvmSynthetic // Hide from Java callers who should use Builder
9397fun { {{operationIdCamelCase} }}(initializer: { {{operationIdCamelCase} }}.Builder.() -> Unit): { {{operationIdCamelCase} }} {
9498 return {{{operationIdCamelCase} }}.Builder().apply(initializer).build()
95- }
99+ }
You can’t perform that action at this time.
0 commit comments