Libraryless. Click here for Pure Java version (1228L/9K/29K).
// todo: actual upload !747 m { static new L<Info> informationForServer; static new L<Info> forwarded; static class Info { S text; long timeSubmitted, timeForwarded; *() {} *(S *text, long *timeSubmitted) {} } p { readLocally("informationForServer forwarded"); makeAndroid("Information forwarding android.", stringfunc { answer(s) }); } static synchronized S answer(S s) { new Matches m; if (match3("Can you forward information to the main server?", s)) return "yes"; if (match3("please forward to main server: ...", s, m)) { informationForServer.add(new Info(m.m[0], now())); saveLocally("informationForServer"); return "ok, forwarding: " + quote(m.m[0]); } if (match3("how many lines are in store?", s)) return "" + informationForServer.size(); if (match3("show me your store", s)) return structure(informationForServer); return null; } }
download show line numbers debug dex old transpilations
Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, teubizvjbppd, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1001133 |
Snippet name: | Information forwarding android (developing) |
Eternal ID of this version: | #1001133/1 |
Text MD5: | f1a1de29fd29b4d71e259c184b8e6860 |
Transpilation MD5: | ae752efc0c0f1554ce8307e5f5018b4a |
Author: | stefan |
Category: | |
Type: | JavaX source code |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2015-09-23 21:29:15 |
Source code size: | 1008 bytes / 39 lines |
Pitched / IR pitched: | No / Yes |
Views / Downloads: | 650 / 1017 |
Referenced in: | #1001134 - Find supported questions in an android's source code #3000382 - Answer for ferdie (>> t = 1, f = 0) |