static TelegramMsg telegramMsgFromLogEntry(S s) { Map map = safeUnstructureMap(s); S type = cast map.get('type); S text = cast map.get('text); long originalDate = toInt(map.get('originalDate))*1000L; long date = parseLocalDateWithMilliseconds_orKeepLong(map.get('date)); ret nu(TelegramMsg, +date, +originalDate, +text, firstName := map.get('userFirstName), lastName := map.get('userLastName), userID := toInt(map.get('userID)), sent := eq(type, 'sent), globalID := map.get('globalID), chatID := toLong(map.get('chatID))); }
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: | 325 / 376 |
Referenced in: | [show references] |