Skip to content

Commit 9c0542a

Browse files
author
spoeck
committed
fix: typo in method name
1 parent 0b5240d commit 9c0542a

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ public void setContextsAsJson(String contextsAsJson) {
106106
}
107107

108108
@ReactMethod
109-
public void setPermantentContextsAsJson(String contextsAsJson) {
109+
public void setPermanentContextsAsJson(String contextsAsJson) {
110110
Gson gson = new Gson();
111111
permantentContexts = gson.fromJson(contextsAsJson, new TypeToken<List<Entity>>() {
112112
}.getType());

example/index.android.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,16 @@ export default class App extends Component {
3939
ApiAi.setContexts(contexts);
4040

4141

42+
const pcontexts = [{
43+
"name": "config",
44+
"parameters": {
45+
"access_token": "42 yo 42 tiny rick"
46+
}
47+
}];
48+
49+
ApiAi.setPermanentContexts(pcontexts);
50+
51+
4252
const entities = [{
4353
"name":"shop",
4454
"extend":true,

0 commit comments

Comments
 (0)