static class RemoteDB { DialogIO db; *(S botName) { db = findBot(botName); } L<PassRef> xlist(S className) { ret (L<PassRef>) rpc(db, "xlist", className); } S xclass(PassRef o) { ret (S) rpc(db, "xclass", o); } O xget(PassRef o, S field) { ret rpc(db, "xget", o, field); } S xS(PassRef o, S field) { ret (S) xget(o, field); } PassRef xgetref(PassRef o, S field) { ret (PassRef) xget(o, field); } void xset(PassRef o, S field, O value) { rpc(db, "xset", o, field, value); } PassRef unary(S className) { PassRef ref = first(xlist(className)); if (ref == null) ref = xnew(className); ret ref; } PassRef xnew(S className, O... values) { ret (PassRef) rpc(db, "xnew", className, values); } void xdelete(PassRef o) { rpc(db, "xdelete", o); } void close() { if (db != null) db.close(); } }
!include #1004681
download show line numbers debug dex old transpilations
Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1004925 |
Snippet name: | RemoteDB (old) |
Eternal ID of this version: | #1004925/2 |
Text MD5: | 4ae9fb45709d8d70fa8269caa2e56dba |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-03-26 21:00:31 |
Source code size: | 973 bytes / 51 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 563 / 581 |
Version history: | 1 change(s) |
Referenced in: | [show references] |