Package com.microsoft.graph.http
Class BaseCollectionPage<T,T2 extends BaseRequestBuilder<T>>
java.lang.Object
com.microsoft.graph.http.BaseCollectionPage<T,T2>
- Type Parameters:
T- the type of the item contained within the collection
- All Implemented Interfaces:
IJsonBackedObject
- Direct Known Subclasses:
DeltaCollectionPage
public class BaseCollectionPage<T,T2 extends BaseRequestBuilder<T>>
extends Object
implements IJsonBackedObject
A page of results from a collection
-
Constructor Summary
ConstructorsConstructorDescriptionBaseCollectionPage(ICollectionResponse<T> response, T2 builder) A collection page for WorkforceIntegrationBaseCollectionPage(List<T> pageContents, T2 nextRequestBuilder) Creates the collection pageBaseCollectionPage(List<T> pageContents, T2 nextRequestBuilder, AdditionalDataManager responseAdditionalData) Creates the collection page -
Method Summary
Modifier and TypeMethodDescriptionfinal AdditionalDataManagerProvides access to objects not anticipated in the model, as well as request and response data from the HTTP callfinal LonggetCount()Returns the odata count value if it has been requested, null otherwiseGets the current pageGets the next page request buildervoidsetRawObject(ISerializer serializer, com.google.gson.JsonObject json) Sets the raw JSON object
-
Constructor Details
-
BaseCollectionPage
A collection page for WorkforceIntegration- Parameters:
response- the serialized WorkforceIntegrationCollectionResponse from the servicebuilder- the request builder for the next collection page
-
BaseCollectionPage
Creates the collection page- Parameters:
pageContents- the contents of this pagenextRequestBuilder- the request builder for the next page
-
BaseCollectionPage
public BaseCollectionPage(@Nonnull List<T> pageContents, @Nullable T2 nextRequestBuilder, @Nonnull AdditionalDataManager responseAdditionalData) Creates the collection page- Parameters:
pageContents- the contents of this pagenextRequestBuilder- the request builder for the next pageresponseAdditionalData- the additional data returned by the response
-
-
Method Details
-
getNextPage
Gets the next page request builder- Returns:
- the next page request builder
-
getCurrentPage
Gets the current page- Returns:
- the current page
-
setRawObject
Sets the raw JSON object- Specified by:
setRawObjectin interfaceIJsonBackedObject- Parameters:
serializer- the serializerjson- the JSON object to set this object to
-
additionalDataManager
Description copied from interface:IJsonBackedObjectProvides access to objects not anticipated in the model, as well as request and response data from the HTTP call- Specified by:
additionalDataManagerin interfaceIJsonBackedObject- Returns:
- the AddtionalDataManager
-
getCount
Returns the odata count value if it has been requested, null otherwise- Returns:
- the odata count value if it has been requested, null otherwise
-