1 | static TelegramMsg telegramMsgFromLogEntry(S s) { |
2 | Map map = safeUnstructureMap(s); |
3 | S type = cast map.get('type); |
4 | S text = cast map.get('text); |
5 | long originalDate = toInt(map.get('originalDate))*1000L; |
6 | long date = parseLocalDateWithMilliseconds_orKeepLong(map.get('date)); |
7 | ret nu(TelegramMsg, +date, +originalDate, +text, |
8 | firstName := map.get('userFirstName), |
9 | lastName := map.get('userLastName), |
10 | userID := toInt(map.get('userID)), |
11 | sent := eq(type, 'sent), |
12 | globalID := map.get('globalID), |
13 | chatID := toLong(map.get('chatID))); |
14 | } |
Began life as a copy of #1017622
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1018393 |
Snippet name: | telegramMsgFromLogEntry |
Eternal ID of this version: | #1018393/1 |
Text MD5: | a99ee1ededa97ce703fb5fe5d236fad6 |
Author: | stefan |
Category: | javax / networking |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-09-25 14:33:00 |
Source code size: | 575 bytes / 14 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 327 / 379 |
Referenced in: | [show references] |