Skip to content

Commit 252b648

Browse files
committed
Fixing context type. It was been set as Entity
1 parent 10ca313 commit 252b648

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

android/src/main/java/de/innfactory/apiai/RNApiAiModule.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,14 +101,14 @@ public void getLanguage(Promise promise) {
101101
@ReactMethod
102102
public void setContextsAsJson(String contextsAsJson) {
103103
Gson gson = new Gson();
104-
contexts = gson.fromJson(contextsAsJson, new TypeToken<List<Entity>>() {
104+
contexts = gson.fromJson(contextsAsJson, new TypeToken<List<AIContext>>() {
105105
}.getType());
106106
}
107107

108108
@ReactMethod
109109
public void setPermanentContextsAsJson(String contextsAsJson) {
110110
Gson gson = new Gson();
111-
permantentContexts = gson.fromJson(contextsAsJson, new TypeToken<List<Entity>>() {
111+
permantentContexts = gson.fromJson(contextsAsJson, new TypeToken<List<AIContext>>() {
112112
}.getType());
113113
}
114114

0 commit comments

Comments
 (0)