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

21
LINES

< > BotCompany Repo | #1003330 - loadDialogs

JavaX fragment (include)

static L<Dialog> loadDialogs(S themeOrID) {
  L<Snippet> snippets;
  if (isSnippetID(themeOrID)) {
    new Snippet s;
    s.id = themeOrID;
    s.title = getSnippetTitle(s.id);
    snippets = litlist(s);
  } else
    snippets = sortSnippetsByID(findDialogsNamed(themeOrID));
  //psl(snippets);
  new L<Dialog> dialogs;
  for (Snippet s : snippets) {
    new Dialog d;
    d.snippet = s;
    d.good = !cic(javaTok(s.title), "bad");
    d.poem = parsePoem(s.id);
    dialogs.add(d);
  }
  //psl(dialogs);
  ret dialogs;
}

Author comment

Began life as a copy of #1003326

download  show line numbers  debug dex   

Travelled to 12 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz

No comments. add comment

Snippet ID: #1003330
Snippet name: loadDialogs
Eternal ID of this version: #1003330/1
Text MD5: 957d0b1cbe5d9081f96980ebc8ab064f
Author: stefan
Category: javax / talking robots
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-07-11 01:53:15
Source code size: 539 bytes / 21 lines
Pitched / IR pitched: No / No
Views / Downloads: 457 / 864
Referenced in: [show references]

Formerly at http://tinybrain.de/1003330 & http://1003330.tinybrain.de