Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,21 @@
// **NOTE** This file was generated by a tool and any changes will be overwritten.
package com.microsoft.graph.requests.generated;

import com.microsoft.graph.concurrency.*;
import com.microsoft.graph.core.*;
import com.microsoft.graph.models.extensions.*;
import com.microsoft.graph.models.generated.*;
import com.microsoft.graph.http.*;
import com.microsoft.graph.requests.extensions.*;
import com.microsoft.graph.requests.generated.*;
import com.microsoft.graph.options.*;
import com.microsoft.graph.serializer.*;

import java.util.Arrays;
import java.util.EnumSet;
import com.microsoft.graph.concurrency.ICallback;
import com.microsoft.graph.concurrency.IExecutors;
import com.microsoft.graph.core.ClientException;
import com.microsoft.graph.core.IBaseClient;
import com.microsoft.graph.http.BaseCollectionRequest;
import com.microsoft.graph.models.extensions.DriveItem;
import com.microsoft.graph.options.Option;
import com.microsoft.graph.options.QueryOption;
import com.microsoft.graph.requests.extensions.DriveItemCollectionPage;
import com.microsoft.graph.requests.extensions.DriveItemCollectionRequest;
import com.microsoft.graph.requests.extensions.DriveItemCollectionRequestBuilder;
import com.microsoft.graph.requests.extensions.DriveItemRequestBuilder;
import com.microsoft.graph.requests.extensions.IDriveItemCollectionPage;
import com.microsoft.graph.requests.extensions.IDriveItemCollectionRequest;
import com.microsoft.graph.requests.extensions.IDriveItemCollectionRequestBuilder;

// **NOTE** This file was generated by a tool and any changes will be overwritten.

Expand Down Expand Up @@ -101,6 +104,19 @@ public IDriveItemCollectionRequest top(final int value) {
addQueryOption(new QueryOption("$top", value + ""));
return (DriveItemCollectionRequest)this;
}
/**
* Add Skip token for pagination
* @param skipToken - Token for pagination
* @return the updated request
* @author K.Samraj
* @since 1.0
*/
public IDriveItemCollectionRequest skipToken(final String skipToken) {
if(!isBlank(skipToken)) {
addQueryOption(new QueryOption("$skiptoken", skipToken));
}
return (DriveItemCollectionRequest)this;
}

public IDriveItemCollectionPage buildFromResponse(final BaseDriveItemCollectionResponse response) {
final IDriveItemCollectionRequestBuilder builder;
Expand All @@ -113,4 +129,17 @@ public IDriveItemCollectionPage buildFromResponse(final BaseDriveItemCollectionR
page.setRawObject(response.getSerializer(), response.getRawObject());
return page;
}

public static boolean isBlank(final CharSequence cs) {
int strLen;
if (cs == null || (strLen = cs.length()) == 0) {
return true;
}
for (int i = 0; i < strLen; i++) {
if (!Character.isWhitespace(cs.charAt(i))) {
return false;
}
}
return true;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,56 +4,63 @@

package com.microsoft.graph.requests.generated;

import com.microsoft.graph.concurrency.*;
import com.microsoft.graph.core.*;
import com.microsoft.graph.models.extensions.*;
import com.microsoft.graph.models.generated.*;
import com.microsoft.graph.http.*;
import com.microsoft.graph.requests.extensions.*;
import com.microsoft.graph.requests.generated.*;
import com.microsoft.graph.options.*;
import com.microsoft.graph.serializer.*;

import java.util.Arrays;
import java.util.EnumSet;
import com.microsoft.graph.concurrency.ICallback;
import com.microsoft.graph.core.ClientException;
import com.microsoft.graph.models.extensions.DriveItem;
import com.microsoft.graph.requests.extensions.IDriveItemCollectionPage;
import com.microsoft.graph.requests.extensions.IDriveItemCollectionRequest;

// **NOTE** This file was generated by a tool and any changes will be overwritten.

/**
* The interface for the Base Drive Item Collection Request.
*/
public interface IBaseDriveItemCollectionRequest {
public interface IBaseDriveItemCollectionRequest
{

void get(final ICallback<IDriveItemCollectionPage> callback);
void get(final ICallback<IDriveItemCollectionPage> callback);

IDriveItemCollectionPage get() throws ClientException;
IDriveItemCollectionPage get() throws ClientException;

void post(final DriveItem newDriveItem, final ICallback<DriveItem> callback);
void post(final DriveItem newDriveItem, final ICallback<DriveItem> callback);

DriveItem post(final DriveItem newDriveItem) throws ClientException;
DriveItem post(final DriveItem newDriveItem) throws ClientException;

/**
* Sets the expand clause for the request
*
* @param value the expand clause
* @return the updated request
*/
IDriveItemCollectionRequest expand(final String value);
/**
* Sets the expand clause for the request
*
* @param value
* the expand clause
* @return the updated request
*/
IDriveItemCollectionRequest expand(final String value);

/**
* Sets the select clause for the request
*
* @param value the select clause
* @return the updated request
*/
IDriveItemCollectionRequest select(final String value);
/**
* Sets the select clause for the request
*
* @param value
* the select clause
* @return the updated request
*/
IDriveItemCollectionRequest select(final String value);

/**
* Sets the top value for the request
*
* @param value the max number of items to return
* @return the updated request
*/
IDriveItemCollectionRequest top(final int value);
/**
* Sets the top value for the request
*
* @param value
* the max number of items to return
* @return the updated request
*/
IDriveItemCollectionRequest top(final int value);

/**
* Sets the skip token value for the request
*
* @param skipToken
* value for pagination
* @return the updated request
* @author K.Samraj
* @since 1.0
*/
IDriveItemCollectionRequest skipToken(String skipToken);
}
Morty Proxy This is a proxified and sanitized view of the page, visit original site.