From 36258f1a57ff49f17a6e28831929e4785e8580a5 Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 18 Nov 2020 17:41:53 +0200 Subject: [PATCH] fixing samples --- pom.xml | 5 +++++ .../{BingAutosuggestV7.java => BingAutosuggest.java} | 0 .../{BingCustomSearchV7.java => BingCustomSearch.java} | 0 .../{BingEntitySearchV7.java => BingEntitySearch.java} | 0 .../{BingImageSearchV7.java => BingImageSearch.java} | 0 .../bing/samples/BingImageSearchV7Quickstart.java | 9 --------- .../{BingNewsSearchV7.java => BingNewsSearch.java} | 0 .../{BingSpellCheckV7.java => BingSpellCheck.java} | 0 .../{BingVideoSearchV7.java => BingVideoSearch.java} | 0 .../{BingVisualSearchV7.java => BingVisualSearch.java} | 0 .../samples/{BingWebSearchV7.java => BingWebSearch.java} | 0 11 files changed, 5 insertions(+), 9 deletions(-) rename samples/java/com/microsoft/bing/samples/{BingAutosuggestV7.java => BingAutosuggest.java} (100%) rename samples/java/com/microsoft/bing/samples/{BingCustomSearchV7.java => BingCustomSearch.java} (100%) rename samples/java/com/microsoft/bing/samples/{BingEntitySearchV7.java => BingEntitySearch.java} (100%) rename samples/java/com/microsoft/bing/samples/{BingImageSearchV7.java => BingImageSearch.java} (100%) rename samples/java/com/microsoft/bing/samples/{BingNewsSearchV7.java => BingNewsSearch.java} (100%) rename samples/java/com/microsoft/bing/samples/{BingSpellCheckV7.java => BingSpellCheck.java} (100%) rename samples/java/com/microsoft/bing/samples/{BingVideoSearchV7.java => BingVideoSearch.java} (100%) rename samples/java/com/microsoft/bing/samples/{BingVisualSearchV7.java => BingVisualSearch.java} (100%) rename samples/java/com/microsoft/bing/samples/{BingWebSearchV7.java => BingWebSearch.java} (100%) diff --git a/pom.xml b/pom.xml index febe178..65ddd18 100644 --- a/pom.xml +++ b/pom.xml @@ -42,6 +42,11 @@ client-runtime 1.6.15 + + com.microsoft.azure + azure + 1.32.1 + io.reactivex rxjava diff --git a/samples/java/com/microsoft/bing/samples/BingAutosuggestV7.java b/samples/java/com/microsoft/bing/samples/BingAutosuggest.java similarity index 100% rename from samples/java/com/microsoft/bing/samples/BingAutosuggestV7.java rename to samples/java/com/microsoft/bing/samples/BingAutosuggest.java diff --git a/samples/java/com/microsoft/bing/samples/BingCustomSearchV7.java b/samples/java/com/microsoft/bing/samples/BingCustomSearch.java similarity index 100% rename from samples/java/com/microsoft/bing/samples/BingCustomSearchV7.java rename to samples/java/com/microsoft/bing/samples/BingCustomSearch.java diff --git a/samples/java/com/microsoft/bing/samples/BingEntitySearchV7.java b/samples/java/com/microsoft/bing/samples/BingEntitySearch.java similarity index 100% rename from samples/java/com/microsoft/bing/samples/BingEntitySearchV7.java rename to samples/java/com/microsoft/bing/samples/BingEntitySearch.java diff --git a/samples/java/com/microsoft/bing/samples/BingImageSearchV7.java b/samples/java/com/microsoft/bing/samples/BingImageSearch.java similarity index 100% rename from samples/java/com/microsoft/bing/samples/BingImageSearchV7.java rename to samples/java/com/microsoft/bing/samples/BingImageSearch.java diff --git a/samples/java/com/microsoft/bing/samples/BingImageSearchV7Quickstart.java b/samples/java/com/microsoft/bing/samples/BingImageSearchV7Quickstart.java index 10726c2..e30f2ba 100644 --- a/samples/java/com/microsoft/bing/samples/BingImageSearchV7Quickstart.java +++ b/samples/java/com/microsoft/bing/samples/BingImageSearchV7Quickstart.java @@ -117,13 +117,4 @@ public class BingImageSearchv7Quickstart { } } } - -// Container class for search results encapsulates relevant headers and JSON data -class SearchResults{ - HashMap relevantHeaders; - String jsonResponse; - SearchResults(HashMap headers, String json) { - relevantHeaders = headers; - jsonResponse = json; - } } \ No newline at end of file diff --git a/samples/java/com/microsoft/bing/samples/BingNewsSearchV7.java b/samples/java/com/microsoft/bing/samples/BingNewsSearch.java similarity index 100% rename from samples/java/com/microsoft/bing/samples/BingNewsSearchV7.java rename to samples/java/com/microsoft/bing/samples/BingNewsSearch.java diff --git a/samples/java/com/microsoft/bing/samples/BingSpellCheckV7.java b/samples/java/com/microsoft/bing/samples/BingSpellCheck.java similarity index 100% rename from samples/java/com/microsoft/bing/samples/BingSpellCheckV7.java rename to samples/java/com/microsoft/bing/samples/BingSpellCheck.java diff --git a/samples/java/com/microsoft/bing/samples/BingVideoSearchV7.java b/samples/java/com/microsoft/bing/samples/BingVideoSearch.java similarity index 100% rename from samples/java/com/microsoft/bing/samples/BingVideoSearchV7.java rename to samples/java/com/microsoft/bing/samples/BingVideoSearch.java diff --git a/samples/java/com/microsoft/bing/samples/BingVisualSearchV7.java b/samples/java/com/microsoft/bing/samples/BingVisualSearch.java similarity index 100% rename from samples/java/com/microsoft/bing/samples/BingVisualSearchV7.java rename to samples/java/com/microsoft/bing/samples/BingVisualSearch.java diff --git a/samples/java/com/microsoft/bing/samples/BingWebSearchV7.java b/samples/java/com/microsoft/bing/samples/BingWebSearch.java similarity index 100% rename from samples/java/com/microsoft/bing/samples/BingWebSearchV7.java rename to samples/java/com/microsoft/bing/samples/BingWebSearch.java