Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

14
LINES

< > BotCompany Repo | #1029875 // concept Worker for WorkerChat

JavaX fragment (include)

1  
// a human who answers to clients
2  
concept Worker {
3  
  S loginName, displayName;
4  
  //S password;
5  
  bool available;
6  
  long lastOnline; // recent timestamp if online
7  
  new Ref<AbstractBotImage> image;
8  
  
9  
  sS _fieldOrder = "loginName displayName";
10  
  
11  
  S renderAsHTML() {
12  
    ret htmlEncode2(loginName + " (display name: " + displayName + ")");
13  
  }
14  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1029875
Snippet name: concept Worker for WorkerChat
Eternal ID of this version: #1029875/3
Text MD5: 21c3819840f28b89c6569ac0db2d509a
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-09-30 16:27:03
Source code size: 363 bytes / 14 lines
Pitched / IR pitched: No / No
Views / Downloads: 178 / 2935
Version history: 2 change(s)
Referenced in: [show references]