Skip to content

Commit 37736c0

Browse files
author
Brian Melton
committed
Bugfix for adding functionOptions >1x
1 parent 2f79340 commit 37736c0

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Templates/Android/generated/BaseMethodRequestBuilder.java.tt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* @param client The service client
1717
* @param options The options for this request
1818
*/
19-
public <#=BaseTypeRequestBuilder(c)#>(final String requestUrl, final <#=IBaseClientType()#> client, final List<Option> options<#=MethodParametersSignature(c.AsOdcmMethod())#>) {
19+
public <#=BaseTypeRequestBuilder(c)#>(final String requestUrl, final <#=IBaseClientType()#> client, final List<Option> options<#=MethodParametersSignature(method)#>) {
2020
super(requestUrl, client, options);
2121
<# foreach (var p in method.Parameters) { #>
2222
<# if (isPost) { #>
@@ -50,16 +50,16 @@
5050
options
5151
);
5252

53-
<# foreach (var p in c.AsOdcmMethod().Parameters) { #>
54-
<# if (isPost) { #>
55-
if (hasParameter("<#=ParamName(p)#>")) {
53+
<# if (isPost) { #>
54+
<# foreach (var p in c.AsOdcmMethod().Parameters) { #>
55+
if (hasParameter("<#=ParamName(p)#>")) {
5656
request.mBody.<#=ParamName(p)#> = getParameter("<#=ParamName(p)#>");
5757
}
58-
<# } else { #>
58+
<# } #>
59+
<# } else { #>
5960
for (FunctionOption option : mFunctionOptions) {
6061
request.addFunctionOption(option);
61-
}
62-
<# } #>
62+
}
6363
<# } #>
6464

6565
return request;

0 commit comments

Comments
 (0)