Skip to content
Merged
Changes from 4 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 @@ -2,6 +2,7 @@

import com.microsoft.graph.core.CoreConstants;
import com.microsoft.graph.core.requests.BaseGraphRequestAdapter;
import com.microsoft.graph.core.requests.BaseGraphRequestAdapter.Clouds;
import com.microsoft.graph.core.requests.BatchRequestBuilder;
import com.microsoft.graph.core.requests.options.GraphClientOption;
import com.microsoft.graph.core.requests.IBaseClient;
Expand Down Expand Up @@ -50,6 +51,17 @@ public GraphServiceClient(@Nonnull RequestAdapter requestAdapter) {
public GraphServiceClient(@Nonnull AuthenticationProvider authenticationProvider) {
this(new BaseGraphRequestAdapter(authenticationProvider, null, "v1.0" , getGraphClientOptions()));
}
/**
* Instantiate the GraphServiceClient using an AuthenticationProvider, Cloud and OkHttpClient.
* @param client The OkHttpClient for the GraphServiceClient.
* @param clouds The Clouds for the GraphServiceClient.
* @param authenticationProvider The AuthenticationProvider for this GraphServiceClient.
*
*/
@SuppressWarnings("LambdaLast")
public GraphServiceClient(@Nonnull OkHttpClient client, @Nonnull Clouds clouds, @Nonnull AuthenticationProvider authenticationProvider) {
Comment thread
raghucha marked this conversation as resolved.
Outdated
this(new BaseGraphRequestAdapter(authenticationProvider, clouds, "v1.0", getGraphClientOptions()));
}
/**
* Instantiate the GraphServiceClient using an AuthenticationProvider and OkHttpClient.
* @param authenticationProvider The AuthenticationProvider for this GraphServiceClient.
Expand Down