Ejemplo n.º 1
0
 @Override
 public String getFunction() {
   return "addBranch(\\\""
       + chapter.getMessage().substring(1, chapter.getMessage().length() - 1)
       + "\\\", \\\""
       + chapter.getC().toLowerCase()
       + "\\\"); ";
 }
Ejemplo n.º 2
0
 @Override
 public String convertToJS() {
   String s = new String();
   s +=
       "{speaker:\"\", message:\"\", commands:\"addBranch(\\\""
           + chapter.getMessage()
           + "\\\", \\\""
           + chapter.getC().toLowerCase()
           + "\\\"); ";
   s += "\"}";
   return s;
 }