Skip to content

Commit 4249fc1

Browse files
committed
- adds missing imports
- fixes an issue where the documented type would be wrong
1 parent b89733d commit 4249fc1

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

Templates/Java/requests_extensions/BaseMethodCollectionPage.java.tt

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,17 @@
1919
}
2020
#>
2121

22+
import com.microsoft.graph.requests.extensions.<#=ITypeCollectionRequestBuilder(c)#>;
23+
import com.microsoft.graph.requests.extensions.<#=TypeCollectionPage(c)#>;
24+
import com.microsoft.graph.requests.extensions.<#=TypeCollectionResponse(c)#>;
25+
<# if (ShouldIncludeCollectionTypeReference(c)) { #>
26+
import com.microsoft.graph.models.<#=OdcmMethodReturnNamespaceSection(c as OdcmMethod)#>.<#=OdcmMethodReturnType(c as OdcmMethod)#>;
27+
<# } #>
2228
import com.google.gson.JsonObject;
23-
import com.google.gson.annotations.*;
29+
import com.google.gson.annotations.SerializedName;
30+
import com.google.gson.annotations.Expose;
31+
import com.microsoft.graph.http.IBaseCollectionPage;
32+
import com.microsoft.graph.http.BaseCollectionPage;
2433

2534
<#=CreateClassDef(TypeCollectionPage(c), "BaseCollectionPage" + CollectionPageGeneric(c), ITypeCollectionPage(c))#>
2635

@@ -33,7 +42,7 @@ import com.google.gson.annotations.*;
3342

3443
<# } #>
3544
/**
36-
* A collection page for <#=TypeName(c)#>.
45+
* A collection page for <#=OdcmMethodReturnType(c as OdcmMethod)#>.
3746
*
3847
* @param response The serialized <#=TypeCollectionResponse(c)#> from the service
3948
* @param builder The request builder for the next collection page

0 commit comments

Comments
 (0)