Skip to content

Commit 31f91f9

Browse files
authored
Merge pull request #67 from mikemcl-msft/mikemcl/plannerBeta/androidCollectionParam
Thank you @mikemcl-msft 😎
2 parents 9c434fc + 2528c99 commit 31f91f9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Templates/Android/generated/BaseEntityCollectionReferenceRequest.java.tt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,15 @@
2525
String prop = c.AsOdcmProperty().GetServiceCollectionNavigationPropertyForPropertyType().Name;
2626
#>
2727
final String requestUrl = getBaseRequest().getRequestUrl().toString();
28-
final ReferenceRequestBody body = new ReferenceRequestBody(getBaseRequest().getClient().getServiceRoot() + "/<#=prop#>/" + newDirectoryObject.id);
28+
final ReferenceRequestBody body = new ReferenceRequestBody(getBaseRequest().getClient().getServiceRoot() + "/<#=prop#>/" + new<#=TypeName(c)#>.id);
2929
new <#=TypeWithReferencesRequestBuilder(c)#>(requestUrl, getBaseRequest().getClient(), /* Options */ null)
3030
.buildRequest()
3131
.post(new<#=TypeName(c)#>, body, callback);
3232
}
3333

3434
public <#=TypeName(c)#> post(final <#=TypeName(c)#> new<#=TypeName(c)#>) throws ClientException {
3535
final String requestUrl = getBaseRequest().getRequestUrl().toString();
36-
final ReferenceRequestBody body = new ReferenceRequestBody(getBaseRequest().getClient().getServiceRoot() + "/<#=prop#>/" + newDirectoryObject.id);
36+
final ReferenceRequestBody body = new ReferenceRequestBody(getBaseRequest().getClient().getServiceRoot() + "/<#=prop#>/" + new<#=TypeName(c)#>.id);
3737
return new <#=TypeWithReferencesRequestBuilder(c)#>(requestUrl,getBaseRequest().getClient(), /* Options */ null)
3838
.buildRequest()
3939
.post(new<#=TypeName(c)#>, body);

0 commit comments

Comments
 (0)