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)

// a human who answers to clients
concept Worker {
  S loginName, displayName;
  //S password;
  bool available;
  long lastOnline; // recent timestamp if online
  new Ref<AbstractBotImage> image;
  
  sS _fieldOrder = "loginName displayName";
  
  S renderAsHTML() {
    ret htmlEncode2(loginName + " (display name: " + displayName + ")");
  }
}

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: 177 / 2934
Version history: 2 change(s)
Referenced in: [show references]