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).

1  
static AutoCloseable dm_phoneAssistantAction(VF1<AssistantRequest> onRequest) {
2  
  ret combineAutoCloseables(
3  
    dm_vmBus_onMessage_q phoneCatHeard(voidfunc(Map map) {
4  
      AssistantRequest r = nu(AssistantRequest, +map,
5  
        token := getString token(map),
6  
        input := getString line(map),
7  
        language := getString language(map),
8  
        module := map.get('module));
9  
      pcallF(onRequest, r);
10  
    }),
11  
    dm_vmBus_onMessage_q phoneCatEvent(voidfunc(Map map) {
12  
      AssistantRequest r = nu(AssistantRequest, +map,
13  
        token := getString token(map),
14  
        event := getString what(map),
15  
        language := getString language(map),
16  
        module := map.get('module));
17  
      pcallF(onRequest, r);
18  
    }));
19  
}

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: 255 / 377
Version history: 6 change(s)
Referenced in: [show references]