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

14
LINES

< > BotCompany Repo | #1002917 // getWebChatPresences

JavaX fragment (include)

1  
/*static class Presence {
2  
  long room;
3  
  S name;
4  
  int n;
5  
}*/
6  
7  
static L<S> getWebChatPresences(long room) {
8  
  Map data = jsonDecodeMap(loadPageSilently("tinybrain.de:8080/tb-int/groupchat.json.presences.php?room=" + room));
9  
  L<Map<S, S>> lines = (L) data.get("presences");
10  
  new L<S> names;
11  
  for (Map<S, S> m : lines)
12  
    names.add(m.get("name"));
13  
  ret names;
14  
}

Author comment

Began life as a copy of #1002905

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1002917
Snippet name: getWebChatPresences
Eternal ID of this version: #1002917/1
Text MD5: 54d88c10c8309b424131f9738a41e9ee
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-04-05 20:23:45
Source code size: 377 bytes / 14 lines
Pitched / IR pitched: No / No
Views / Downloads: 678 / 640
Referenced in: [show references]