Class BaseCollectionResponse<T>

java.lang.Object
com.microsoft.graph.http.BaseCollectionResponse<T>
Type Parameters:
T - the entity or complex type
All Implemented Interfaces:
ICollectionResponse<T>, IJsonBackedObject

public abstract class BaseCollectionResponse<T> extends Object implements ICollectionResponse<T>
The basic collection response implementation
  • Field Details

    • value

      @SerializedName("value") @Expose @Nullable public List<T> value
      The list of items within this collection page
  • Constructor Details

    • BaseCollectionResponse

      public BaseCollectionResponse()
  • Method Details

    • values

      @Nullable public List<T> values()
      The list of items within this collection page
      Specified by:
      values in interface ICollectionResponse<T>
      Returns:
      the deserialized values for the response
    • nextLink

      @Nullable public String nextLink()
      Description copied from interface: ICollectionResponse
      Gets the link to the next page of this collection
      Specified by:
      nextLink in interface ICollectionResponse<T>
      Returns:
      The URL to the next page of this collection, or null
    • additionalDataManager

      @Nonnull public final AdditionalDataManager additionalDataManager()
      Description copied from interface: IJsonBackedObject
      Provides access to objects not anticipated in the model, as well as request and response data from the HTTP call
      Specified by:
      additionalDataManager in interface IJsonBackedObject
      Returns:
      the AddtionalDataManager
    • setRawObject

      public void setRawObject(@Nonnull ISerializer serializer, @Nonnull com.google.gson.JsonObject json)
      Sets the raw JSON object
      Specified by:
      setRawObject in interface IJsonBackedObject
      Parameters:
      serializer - the serializer
      json - the JSON object to set this object to