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

14
LINES

< > BotCompany Repo | #1002917 // getWebChatPresences

JavaX fragment (include)

/*static class Presence {
  long room;
  S name;
  int n;
}*/

static L<S> getWebChatPresences(long room) {
  Map data = jsonDecodeMap(loadPageSilently("tinybrain.de:8080/tb-int/groupchat.json.presences.php?room=" + room));
  L<Map<S, S>> lines = (L) data.get("presences");
  new L<S> names;
  for (Map<S, S> m : lines)
    names.add(m.get("name"));
  ret names;
}

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: 677 / 639
Referenced in: [show references]