Skip to content
This repository has been archived by the owner on Dec 4, 2023. It is now read-only.

Commit

Permalink
Refactored restclient to remove uneeded code (#895)
Browse files Browse the repository at this point in the history
  • Loading branch information
tracyboehrer authored Jan 7, 2021
1 parent 398ecc6 commit 1eca556
Show file tree
Hide file tree
Showing 126 changed files with 485 additions and 4,614 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
import com.microsoft.bot.schema.TokenExchangeState;
import com.microsoft.bot.schema.TokenResponse;
import com.microsoft.bot.schema.TokenStatus;
import com.microsoft.bot.rest.retry.RetryStrategy;
import com.microsoft.bot.restclient.retry.RetryStrategy;
import java.util.Collections;
import org.apache.commons.lang3.StringUtils;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
import com.microsoft.bot.connector.Attachments;
import com.microsoft.bot.connector.ConnectorClient;
import com.microsoft.bot.connector.Conversations;
import com.microsoft.bot.rest.RestClient;
import com.microsoft.bot.rest.credentials.ServiceClientCredentials;
import com.microsoft.bot.restclient.RestClient;
import com.microsoft.bot.restclient.credentials.ServiceClientCredentials;

public class MemoryConnectorClient implements ConnectorClient {
private MemoryConversations conversations = new MemoryConversations();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
import com.microsoft.bot.connector.ConnectorClient;
import com.microsoft.bot.connector.Conversations;
import com.microsoft.bot.connector.authentication.AppCredentials;
import com.microsoft.bot.rest.RestClient;
import com.microsoft.bot.rest.credentials.ServiceClientCredentials;
import com.microsoft.bot.restclient.RestClient;
import com.microsoft.bot.restclient.credentials.ServiceClientCredentials;

public class MockConnectorClient implements ConnectorClient {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
import com.microsoft.bot.connector.Attachments;
import com.microsoft.bot.connector.ConnectorClient;
import com.microsoft.bot.connector.Conversations;
import com.microsoft.bot.rest.credentials.ServiceClientCredentials;
import com.microsoft.bot.restclient.credentials.ServiceClientCredentials;
import com.microsoft.bot.schema.Activity;
import com.microsoft.bot.schema.ActivityTypes;
import com.microsoft.bot.schema.ConversationAccount;
import com.microsoft.bot.schema.ConversationReference;
import com.microsoft.bot.schema.ResourceResponse;
import com.microsoft.bot.rest.RestClient;
import com.microsoft.bot.restclient.RestClient;
import org.junit.Assert;
import org.junit.Test;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
package com.microsoft.bot.builder.base;

import com.microsoft.bot.connector.authentication.MicrosoftAppCredentials;
import com.microsoft.bot.rest.LogLevel;
import com.microsoft.bot.rest.RestClient;
import com.microsoft.bot.rest.ServiceResponseBuilder;
import com.microsoft.bot.rest.credentials.ServiceClientCredentials;
import com.microsoft.bot.rest.credentials.TokenCredentials;
import com.microsoft.bot.rest.interceptors.LoggingInterceptor;
import com.microsoft.bot.rest.serializer.JacksonAdapter;
import com.microsoft.bot.restclient.LogLevel;
import com.microsoft.bot.restclient.RestClient;
import com.microsoft.bot.restclient.ServiceResponseBuilder;
import com.microsoft.bot.restclient.credentials.ServiceClientCredentials;
import com.microsoft.bot.restclient.credentials.TokenCredentials;
import com.microsoft.bot.restclient.interceptors.LoggingInterceptor;
import com.microsoft.bot.restclient.serializer.JacksonAdapter;
import org.junit.*;
import org.junit.rules.TestName;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import com.microsoft.bot.connector.Conversations;
import com.microsoft.bot.connector.authentication.AppCredentials;
import com.microsoft.bot.connector.authentication.MicrosoftAppCredentials;
import com.microsoft.bot.rest.serializer.JacksonAdapter;
import com.microsoft.bot.restclient.serializer.JacksonAdapter;
import com.microsoft.bot.schema.Activity;
import com.microsoft.bot.schema.ActivityTypes;
import com.microsoft.bot.schema.ChannelAccount;
Expand Down
4 changes: 2 additions & 2 deletions libraries/bot-connector/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>20.0</version>
<version>30.1-jre</version>
</dependency>
<dependency>
<groupId>com.squareup.retrofit2</groupId>
Expand Down Expand Up @@ -174,7 +174,7 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<configuration>
<excludes>com/microsoft/bot/rest/**,com/microsoft/bot/azure/**</excludes>
<excludes>com/microsoft/bot/restclient/**</excludes>
</configuration>
</plugin>
</plugins>
Expand Down

This file was deleted.

Loading

0 comments on commit 1eca556

Please sign in to comment.