Skip to content

Commit 3c96cde

Browse files
author
Caitlin Bales (MSFT)
committed
Manual support for querying delta with a deltaLink opaque URL
1 parent 9bf267d commit 3c96cde

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

Templates/Android/generated/BaseEntityCollectionRequestBuilder.java.tt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,15 @@ if (currentTypeProjection != null) {
5151
public <#=ITypeCollectionRequestBuilder(method)#> get<#=MethodName(method)#>(<#=parameterList#>) {
5252
return new <#=TypeCollectionRequestBuilder(method)#>(getRequestUrlWithAdditionalSegment("<#=MethodFullName(method)#>"), getClient(), null<#=MethodParametersValues(method)#>);
5353
}
54+
<#
55+
// Add a method to support delta query by string (opaque deltaLink)
56+
if (MethodName(method) == "Delta") {
57+
#>
58+
59+
public <#=ITypeCollectionRequestBuilder(method)#> get<#=MethodName(method)#>(final String deltaLink) {
60+
return new <#=TypeCollectionRequestBuilder(method)#>(deltaLink, getClient(), null<#=MethodParametersValues(method)#>);
61+
}
62+
<# } #>
5463
<#
5564
} else {
5665
#>

Templates/Android/generated/IBaseEntityCollectionRequestBuilder.java.tt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,13 @@ if (currentTypeProjection != null)
3636
#>
3737

3838
<#=ITypeCollectionRequestBuilder(method)#> get<#=MethodName(method)#>(<#=parameterList#>);
39+
<#
40+
// Add a method to support delta query by string (opaque deltaLink)
41+
if (MethodName(method) == "Delta") {
42+
#>
43+
44+
<#=ITypeCollectionRequestBuilder(method)#> get<#=MethodName(method)#>(final String deltaLink);
45+
<# } #>
3946
<# } else { #>
4047
<#=ITypeRequestBuilder(method)#> get<#=MethodName(method)#>(<#=parameterList#>);
4148
<#

0 commit comments

Comments
 (0)