started major refactoring
This commit is contained in:
@@ -18,11 +18,11 @@ public abstract class TextAction extends Action {
|
||||
|
||||
|
||||
public String fill(String tx,Context context) {
|
||||
if (isSet(context.block)) tx = tx.replace("%block%", context.block.name);
|
||||
if (isSet(context.contact)) tx = tx.replace("%contact%", context.contact.id());
|
||||
if (isSet(context.direction)) tx = tx.replace("%dir%", context.direction.name());
|
||||
if (isSet(context.route)) tx = tx.replace("%route%", context.route.name());
|
||||
if (isSet(context.train)) tx = tx.replace("%train%", context.train.name());
|
||||
if (isSet(context.block())) tx = tx.replace("%block%", context.block().name);
|
||||
if (isSet(context.contact())) tx = tx.replace("%contact%", context.contact().id().toString());
|
||||
if (isSet(context.direction())) tx = tx.replace("%dir%", context.direction().name());
|
||||
if (isSet(context.route())) tx = tx.replace("%route%", context.route().name());
|
||||
if (isSet(context.train())) tx = tx.replace("%train%", context.train().name());
|
||||
return tx;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user