Skip to content

- adds missing skip and skipToken methods for collection requests #280

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Sep 2, 2020
Merged
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 @@ -103,6 +103,29 @@ import <#=mainNamespace#>.<#=TypeHelperJava.GetPrefixForRequests()#>.<#=c.TypeCo
}

<# } #>
<# if (c.GetFeatures().CanSkip) { #>
/**
* Sets the skip value for the request
*
* @param value of the number of items to skip
* @return the updated request
*/
public <#=c.ITypeCollectionRequest()#> skip(final int value) {
addQueryOption(new com.microsoft.graph.options.QueryOption("$skip", value + ""));
return (<#=c.TypeCollectionRequest()#>)this;
}

<# } #>

/**
* Add Skip token for pagination
* @param skipToken - Token for pagination
* @return the updated request
*/
public <#=c.ITypeCollectionRequest()#> skipToken(final String skipToken) {
addQueryOption(new QueryOption("$skiptoken", skipToken));
return (<#=c.ITypeCollectionRequest()#>)this;
}
public <#=c.ITypeCollectionPage()#> buildFromResponse(final <#=c.BaseTypeCollectionResponse()#> response) {
final <#=c.ITypeCollectionRequestBuilder()#> builder;
if (response.nextLink != null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,23 @@ import <#=importNamespace#>.http.IBaseCollectionPage;
<#=c.ITypeCollectionRequest()#> top(final int value);

<# } #>
<# if (c.GetFeatures().CanSkip) { #>
/**
* Sets the skip value for the request
*
* @param value of the number of items to skip
* @return the updated request
*/
<#=c.ITypeCollectionRequest()#> skip(final int value);

<# } #>
/**
* Sets the skip token value for the request
*
* @param skipToken value for pagination
*
* @return the updated request
*/
<#=c.ITypeCollectionRequest()#> skipToken(String skipToken);
}
<#=PostProcess(c.ITypeCollectionRequest())#>
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,27 @@ public ICallCollectionRequest top(final int value) {
return (CallCollectionRequest)this;
}

/**
* Sets the skip value for the request
*
* @param value of the number of items to skip
* @return the updated request
*/
public ICallCollectionRequest skip(final int value) {
addQueryOption(new com.microsoft.graph.options.QueryOption("$skip", value + ""));
return (CallCollectionRequest)this;
}


/**
* Add Skip token for pagination
* @param skipToken - Token for pagination
* @return the updated request
*/
public ICallCollectionRequest skipToken(final String skipToken) {
addQueryOption(new QueryOption("$skiptoken", skipToken));
return (ICallCollectionRequest)this;
}
public ICallCollectionPage buildFromResponse(final CallCollectionResponse response) {
final ICallCollectionRequestBuilder builder;
if (response.nextLink != null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,27 @@ public IEntityType2CollectionRequest top(final int value) {
return (EntityType2CollectionRequest)this;
}

/**
* Sets the skip value for the request
*
* @param value of the number of items to skip
* @return the updated request
*/
public IEntityType2CollectionRequest skip(final int value) {
addQueryOption(new com.microsoft.graph.options.QueryOption("$skip", value + ""));
return (EntityType2CollectionRequest)this;
}


/**
* Add Skip token for pagination
* @param skipToken - Token for pagination
* @return the updated request
*/
public IEntityType2CollectionRequest skipToken(final String skipToken) {
addQueryOption(new QueryOption("$skiptoken", skipToken));
return (IEntityType2CollectionRequest)this;
}
public IEntityType2CollectionPage buildFromResponse(final EntityType2CollectionResponse response) {
final IEntityType2CollectionRequestBuilder builder;
if (response.nextLink != null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,27 @@ public IEntityType3CollectionRequest top(final int value) {
return (EntityType3CollectionRequest)this;
}

/**
* Sets the skip value for the request
*
* @param value of the number of items to skip
* @return the updated request
*/
public IEntityType3CollectionRequest skip(final int value) {
addQueryOption(new com.microsoft.graph.options.QueryOption("$skip", value + ""));
return (EntityType3CollectionRequest)this;
}


/**
* Add Skip token for pagination
* @param skipToken - Token for pagination
* @return the updated request
*/
public IEntityType3CollectionRequest skipToken(final String skipToken) {
addQueryOption(new QueryOption("$skiptoken", skipToken));
return (IEntityType3CollectionRequest)this;
}
public IEntityType3CollectionPage buildFromResponse(final EntityType3CollectionResponse response) {
final IEntityType3CollectionRequestBuilder builder;
if (response.nextLink != null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,20 @@ public interface ICallCollectionRequest {
*/
ICallCollectionRequest top(final int value);

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

/**
* Sets the skip token value for the request
*
* @param skipToken value for pagination
*
* @return the updated request
*/
ICallCollectionRequest skipToken(String skipToken);
}
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,20 @@ public interface IEntityType2CollectionRequest {
*/
IEntityType2CollectionRequest top(final int value);

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

/**
* Sets the skip token value for the request
*
* @param skipToken value for pagination
*
* @return the updated request
*/
IEntityType2CollectionRequest skipToken(String skipToken);
}
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,20 @@ public interface IEntityType3CollectionRequest {
*/
IEntityType3CollectionRequest top(final int value);

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

/**
* Sets the skip token value for the request
*
* @param skipToken value for pagination
*
* @return the updated request
*/
IEntityType3CollectionRequest skipToken(String skipToken);
}
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,20 @@ public interface ITimeOffCollectionRequest {
*/
ITimeOffCollectionRequest top(final int value);

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

/**
* Sets the skip token value for the request
*
* @param skipToken value for pagination
*
* @return the updated request
*/
ITimeOffCollectionRequest skipToken(String skipToken);
}
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,20 @@ public interface ITimeOffRequestCollectionRequest {
*/
ITimeOffRequestCollectionRequest top(final int value);

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

/**
* Sets the skip token value for the request
*
* @param skipToken value for pagination
*
* @return the updated request
*/
ITimeOffRequestCollectionRequest skipToken(String skipToken);
}
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,27 @@ public ITimeOffCollectionRequest top(final int value) {
return (TimeOffCollectionRequest)this;
}

/**
* Sets the skip value for the request
*
* @param value of the number of items to skip
* @return the updated request
*/
public ITimeOffCollectionRequest skip(final int value) {
addQueryOption(new com.microsoft.graph.options.QueryOption("$skip", value + ""));
return (TimeOffCollectionRequest)this;
}


/**
* Add Skip token for pagination
* @param skipToken - Token for pagination
* @return the updated request
*/
public ITimeOffCollectionRequest skipToken(final String skipToken) {
addQueryOption(new QueryOption("$skiptoken", skipToken));
return (ITimeOffCollectionRequest)this;
}
public ITimeOffCollectionPage buildFromResponse(final TimeOffCollectionResponse response) {
final ITimeOffCollectionRequestBuilder builder;
if (response.nextLink != null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,27 @@ public ITimeOffRequestCollectionRequest top(final int value) {
return (TimeOffRequestCollectionRequest)this;
}

/**
* Sets the skip value for the request
*
* @param value of the number of items to skip
* @return the updated request
*/
public ITimeOffRequestCollectionRequest skip(final int value) {
addQueryOption(new com.microsoft.graph.options.QueryOption("$skip", value + ""));
return (TimeOffRequestCollectionRequest)this;
}


/**
* Add Skip token for pagination
* @param skipToken - Token for pagination
* @return the updated request
*/
public ITimeOffRequestCollectionRequest skipToken(final String skipToken) {
addQueryOption(new QueryOption("$skiptoken", skipToken));
return (ITimeOffRequestCollectionRequest)this;
}
public ITimeOffRequestCollectionPage buildFromResponse(final TimeOffRequestCollectionResponse response) {
final ITimeOffRequestCollectionRequestBuilder builder;
if (response.nextLink != null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,27 @@ public ICallRecordCollectionRequest top(final int value) {
return (CallRecordCollectionRequest)this;
}

/**
* Sets the skip value for the request
*
* @param value of the number of items to skip
* @return the updated request
*/
public ICallRecordCollectionRequest skip(final int value) {
addQueryOption(new com.microsoft.graph.options.QueryOption("$skip", value + ""));
return (CallRecordCollectionRequest)this;
}


/**
* Add Skip token for pagination
* @param skipToken - Token for pagination
* @return the updated request
*/
public ICallRecordCollectionRequest skipToken(final String skipToken) {
addQueryOption(new QueryOption("$skiptoken", skipToken));
return (ICallRecordCollectionRequest)this;
}
public ICallRecordCollectionPage buildFromResponse(final CallRecordCollectionResponse response) {
final ICallRecordCollectionRequestBuilder builder;
if (response.nextLink != null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,20 @@ public interface ICallRecordCollectionRequest {
*/
ICallRecordCollectionRequest top(final int value);

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

/**
* Sets the skip token value for the request
*
* @param skipToken value for pagination
*
* @return the updated request
*/
ICallRecordCollectionRequest skipToken(String skipToken);
}
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,20 @@ public interface ISegmentCollectionRequest {
*/
ISegmentCollectionRequest top(final int value);

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

/**
* Sets the skip token value for the request
*
* @param skipToken value for pagination
*
* @return the updated request
*/
ISegmentCollectionRequest skipToken(String skipToken);
}
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,20 @@ public interface ISessionCollectionRequest {
*/
ISessionCollectionRequest top(final int value);

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

/**
* Sets the skip token value for the request
*
* @param skipToken value for pagination
*
* @return the updated request
*/
ISessionCollectionRequest skipToken(String skipToken);
}
Loading