1 | sclass MsgOut extends DynamicObject {
|
2 | S buttonsIntro; |
3 | LS buttons; |
4 | S placeholder; |
5 | S defaultInput; |
6 | |
7 | bool isEmpty() { ret empty(buttons); }
|
8 | } |
9 | |
10 | sclass Msg extends DynamicObject {
|
11 | long time; |
12 | bool fromUser; |
13 | S text; |
14 | MsgOut out; |
15 | |
16 | *() {}
|
17 | *(bool *fromUser, S *text) { time = now(); }
|
18 | |
19 | toString {
|
20 | ret "[" + time + "] " + (fromUser ? "User" : "Bot") + ": " + text; |
21 | } |
22 | } |
Began life as a copy of #1027630
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
| Snippet ID: | #1027772 |
| Snippet name: | Msg + MsgOut |
| Eternal ID of this version: | #1027772/1 |
| Text MD5: | beb837664f56e93a44906b525eae086b |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2020-04-10 18:50:37 |
| Source code size: | 413 bytes / 22 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 566 / 837 |
| Referenced in: | [show references] |