We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 10ca313 commit 252b648Copy full SHA for 252b648
1 file changed
android/src/main/java/de/innfactory/apiai/RNApiAiModule.java
@@ -101,14 +101,14 @@ public void getLanguage(Promise promise) {
101
@ReactMethod
102
public void setContextsAsJson(String contextsAsJson) {
103
Gson gson = new Gson();
104
- contexts = gson.fromJson(contextsAsJson, new TypeToken<List<Entity>>() {
+ contexts = gson.fromJson(contextsAsJson, new TypeToken<List<AIContext>>() {
105
}.getType());
106
}
107
108
109
public void setPermanentContextsAsJson(String contextsAsJson) {
110
111
- permantentContexts = gson.fromJson(contextsAsJson, new TypeToken<List<Entity>>() {
+ permantentContexts = gson.fromJson(contextsAsJson, new TypeToken<List<AIContext>>() {
112
113
114
0 commit comments