Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

19
LINES

< > BotCompany Repo | #1023384 // dm_phoneAssistantAction

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (9576L/68K).

static AutoCloseable dm_phoneAssistantAction(VF1<AssistantRequest> onRequest) {
  ret combineAutoCloseables(
    dm_vmBus_onMessage_q phoneCatHeard(voidfunc(Map map) {
      AssistantRequest r = nu(AssistantRequest, +map,
        token := getString token(map),
        input := getString line(map),
        language := getString language(map),
        module := map.get('module));
      pcallF(onRequest, r);
    }),
    dm_vmBus_onMessage_q phoneCatEvent(voidfunc(Map map) {
      AssistantRequest r = nu(AssistantRequest, +map,
        token := getString token(map),
        event := getString what(map),
        language := getString language(map),
        module := map.get('module));
      pcallF(onRequest, r);
    }));
}

Author comment

Began life as a copy of #1023376

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1023384
Snippet name: dm_phoneAssistantAction
Eternal ID of this version: #1023384/7
Text MD5: 68c8a5505222a5338b66128cf356e172
Transpilation MD5: d7e4d73e857385835bcbc7cd725fd4bf
Author: stefan
Category: javax / web / a.i. / android
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-06-13 13:03:08
Source code size: 745 bytes / 19 lines
Pitched / IR pitched: No / No
Views / Downloads: 254 / 376
Version history: 6 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)