This is an automated email from the ASF dual-hosted git repository.

sergeykamov pushed a commit to branch develop-0.7.5
in repository 
https://gitbox.apache.org/repos/asf/incubator-nlpcraft-java-client.git


The following commit(s) were added to refs/heads/develop-0.7.5 by this push:
     new 5ac5f7a  WIP.
5ac5f7a is described below

commit 5ac5f7a1b92bef9621f26f7f881bd6de9a1caa15
Author: Sergey Kamov <[email protected]>
AuthorDate: Tue May 11 12:46:37 2021 +0300

    WIP.
---
 .../java/org/apache/nlpcraft/client/NCClient.java  | 24 ++++++++++++++--------
 .../java/org/apache/nlpcraft/client/NCResult.java  |  3 ++-
 .../nlpcraft/client/impl/beans/NCAskBean.java      |  2 +-
 .../client/impl/beans/NCSuggestionDataBean.java    |  2 +-
 4 files changed, 20 insertions(+), 11 deletions(-)

diff --git a/src/main/java/org/apache/nlpcraft/client/NCClient.java 
b/src/main/java/org/apache/nlpcraft/client/NCClient.java
index b27be7d..57658e2 100644
--- a/src/main/java/org/apache/nlpcraft/client/NCClient.java
+++ b/src/main/java/org/apache/nlpcraft/client/NCClient.java
@@ -17,8 +17,10 @@
 
 package org.apache.nlpcraft.client;
 
-import java.io.*;
-import java.util.*;
+import java.io.IOException;
+import java.util.List;
+import java.util.Map;
+import java.util.Set;
 
 /**
  * <b>Java client API</b> provides native JVM wrapper for NLPCraft
@@ -156,7 +158,8 @@ public interface NCClient {
      * @throws NCClientException Thrown in case of client-specific errors.
      * @throws IOException Thrown in case of generic I/O errors.
      */
-    long addFeedback(String srvReqId, double score, String comment, Long 
usrId, String usrExtId) throws NCClientException, IOException;
+    long addFeedback(String srvReqId, double score, String comment, Long 
usrId, String usrExtId)
+        throws NCClientException, IOException;
 
     /**
      * Deletes feedback record.
@@ -218,7 +221,8 @@ public interface NCClient {
         String avatarUrl,
         boolean isAdmin,
         Map<String, String> properties,
-        String extId) throws NCClientException, IOException;
+        String extId
+    ) throws NCClientException, IOException;
 
     /**
      * Updates given user. Current signed in user must have administrative 
privileges.
@@ -236,7 +240,8 @@ public interface NCClient {
         String firstName,
         String lastName,
         String avatarUrl,
-        Map<String, String> properties) throws NCClientException, IOException;
+        Map<String, String> properties
+    ) throws NCClientException, IOException;
 
     /**
      * Resets password for the given user. Note that NLPCraft doesn't store 
clear text passwords and therefore
@@ -388,7 +393,8 @@ public interface NCClient {
      * @see #ask(String, String)
      * @see #ask(String, String, Map, boolean, Long, String)
      */
-    NCResult askSync(String mdlId, String txt, Map<String, Object> data, 
boolean enableLog, Long usrId, String usrExtId) throws NCClientException, 
IOException;
+    NCResult askSync(String mdlId, String txt, Map<String, Object> data, 
boolean enableLog, Long usrId, String usrExtId)
+        throws NCClientException, IOException;
 
     default NCResult askSync(String mdlId, String txt) throws 
NCClientException, IOException {
         return askSync(mdlId, txt, null, false, null, null);
@@ -417,7 +423,8 @@ public interface NCClient {
      * @throws NCClientException Thrown in case of client-specific errors.
      * @throws IOException Thrown in case of generic I/O errors.
      */
-    List<NCResult> check(Set<String> srvReqIds, Integer maxRows, Long usrId, 
String usrExtId) throws NCClientException, IOException;
+    List<NCResult> check(Set<String> srvReqIds, Integer maxRows, Long usrId, 
String usrExtId)
+        throws NCClientException, IOException;
 
     /**
      * Cancels the previously submitted sentence and removes its result, if 
any, from the server storage.
@@ -460,6 +467,7 @@ public interface NCClient {
      * @param adminFirstName Optional company administrator first name.
      * @param adminLastName Optional company administrator last name.
      * @param adminAvatarUrl Optional company administrator avatar URL.
+     * @param props TODO:
      * @return New company data.
      * @throws NCClientException Thrown in case of client-specific errors.
      * @throws IOException Thrown in case of generic I/O errors.
@@ -477,7 +485,7 @@ public interface NCClient {
         String adminFirstName,
         String adminLastName,
         String adminAvatarUrl,
-        Map<String, String> props // TODO:
+        Map<String, String> props
     ) throws NCClientException, IOException;
 
     /**
diff --git a/src/main/java/org/apache/nlpcraft/client/NCResult.java 
b/src/main/java/org/apache/nlpcraft/client/NCResult.java
index 52eb2f3..802e890 100644
--- a/src/main/java/org/apache/nlpcraft/client/NCResult.java
+++ b/src/main/java/org/apache/nlpcraft/client/NCResult.java
@@ -17,7 +17,8 @@
 
 package org.apache.nlpcraft.client;
 
-import java.util.*;
+import java.util.Map;
+import java.util.Set;
 
 /**
  * Request result descriptor.
diff --git a/src/main/java/org/apache/nlpcraft/client/impl/beans/NCAskBean.java 
b/src/main/java/org/apache/nlpcraft/client/impl/beans/NCAskBean.java
index 4423647..b72cfd3 100644
--- a/src/main/java/org/apache/nlpcraft/client/impl/beans/NCAskBean.java
+++ b/src/main/java/org/apache/nlpcraft/client/impl/beans/NCAskBean.java
@@ -17,7 +17,7 @@
 
 package org.apache.nlpcraft.client.impl.beans;
 
-import com.google.gson.annotations.*;
+import com.google.gson.annotations.SerializedName;
 
 /**
  * REST bean.
diff --git 
a/src/main/java/org/apache/nlpcraft/client/impl/beans/NCSuggestionDataBean.java 
b/src/main/java/org/apache/nlpcraft/client/impl/beans/NCSuggestionDataBean.java
index d1e7d75..7804d1a 100644
--- 
a/src/main/java/org/apache/nlpcraft/client/impl/beans/NCSuggestionDataBean.java
+++ 
b/src/main/java/org/apache/nlpcraft/client/impl/beans/NCSuggestionDataBean.java
@@ -18,8 +18,8 @@
 package org.apache.nlpcraft.client.impl.beans;
 
 import com.google.gson.annotations.SerializedName;
-import org.apache.nlpcraft.client.NCSuggestionData;
 import org.apache.nlpcraft.client.NCSuggestion;
+import org.apache.nlpcraft.client.NCSuggestionData;
 
 import java.util.ArrayList;
 import java.util.List;

Reply via email to