Skip to content

Commit e890bfc

Browse files
author
Caitlin Bales (MSFT)
committed
Clarify code for custom data
1 parent 9ed63d9 commit e890bfc

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

Templates/Android/generated/BaseMethodCollectionPage.java.tt

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,15 @@
66
<#=writer.WriteHeader()#>
77
<#=CreatePackageDef(host)#>
88
<#
9+
/**
10+
* Manual check for deltaLink
11+
* This allows for a user to get the delta link URL with which
12+
* to make future delta query calls to the service. Since it is
13+
* not surfaced in the additionalDataManager, we add it manually
14+
* to the object for easy access.
15+
*/
916
var deltaPage = false;
10-
if (TypeName(c).Length > 6 && TypeName(c).Substring(TypeName(c).Length-5) == "Delta") {
17+
if (c.Name == "delta") {
1118
deltaPage = true;
1219
}
1320
#>

Templates/Android/generated/IBaseMethodCollectionPage.java.tt

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,15 @@
66
<#=writer.WriteHeader()#>
77
<#=CreatePackageDef(host)#>
88
<#
9+
/**
10+
* Manual check for deltaLink
11+
* This allows for a user to get the delta link URL with which
12+
* to make future delta query calls to the service. Since it is
13+
* not surfaced in the additionalDataManager, we add it manually
14+
* to the object for easy access.
15+
*/
916
var deltaPage = false;
10-
if (TypeName(c).Length > 6 && TypeName(c).Substring(TypeName(c).Length-5) == "Delta") {
17+
if (c.Name == "delta") {
1118
deltaPage = true;
1219
}
1320
#>

0 commit comments

Comments
 (0)