1 | static new Map<S, S> slackGetUserName_map; |
2 | |
3 | static synchronized S slackGetUserName(S token, S userID) { |
4 | if (userID == null) ret null; |
5 | S userName = slackGetUserName_map.get(userID); |
6 | if (userName == null) pcall { |
7 | userName = (S) slackGetUserInfo(token, userID).get("name"); |
8 | slackGetUserName_map.put(userID, userName); |
9 | } |
10 | ret userName; |
11 | } |
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: | #1001978 |
Snippet name: | slackGetUserName |
Eternal ID of this version: | #1001978/1 |
Text MD5: | 6e124273ad1166e5fa89fed2b45fc11d |
Author: | stefan |
Category: | |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2015-12-10 20:34:59 |
Source code size: | 362 bytes / 11 lines |
Pitched / IR pitched: | No / Yes |
Views / Downloads: | 616 / 1184 |
Referenced in: | [show references] |