11// ------------------------------------------------------------------------------
22// Copyright (c) 2017 Microsoft Corporation
3- //
3+ //
44// Permission is hereby granted, free of charge, to any person obtaining a copy
55// of this software and associated documentation files (the "Software"), to deal
66// in the Software without restriction, including without limitation the rights
77// to use, copy, modify, merge, publish, distribute, sub-license, and/or sell
88// copies of the Software, and to permit persons to whom the Software is
99// furnished to do so, subject to the following conditions:
10- //
10+ //
1111// The above copyright notice and this permission notice shall be included in
1212// all copies or substantial portions of the Software.
13- //
13+ //
1414// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1515// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1616// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
2222
2323package com .microsoft .graph .http ;
2424
25+ import com .google .gson .JsonElement ;
2526import com .google .gson .JsonObject ;
2627import com .microsoft .graph .serializer .AdditionalDataManager ;
2728import com .microsoft .graph .serializer .ISerializer ;
3940 */
4041public class DeltaCollectionPage <T , T2 extends BaseRequestBuilder <T >> extends BaseCollectionPage <T , T2 > {
4142 /**
42- * The opaque link to query delta after the
43+ * The opaque link to query delta after the
4344 * initial request
4445 */
4546 @ Nullable
@@ -53,8 +54,9 @@ public class DeltaCollectionPage<T, T2 extends BaseRequestBuilder<T>> extends Ba
5354 */
5455 public DeltaCollectionPage (@ Nonnull final ICollectionResponse <T > response , @ Nullable final T2 builder ) {
5556 super (response .values (), builder , response .additionalDataManager ());
56- if (response .getRawObject ().get ("@odata.deltaLink" ) != null ) {
57- deltaLink = response .getRawObject ().get ("@odata.deltaLink" ).getAsString ();
57+ final JsonElement deltaLinkRaw = response .additionalDataManager ().get ("@odata.deltaLink" );
58+ if (deltaLinkRaw != null ) {
59+ deltaLink = deltaLinkRaw .getAsString ();
5860 } else {
5961 deltaLink = null ;
6062 }
0 commit comments