File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed
android/src/main/java/de/innfactory/apiai Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff 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 ());
Original file line number Diff line number Diff 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 ,
You can’t perform that action at this time.
0 commit comments