diff --git a/app/src/main/java/lightcontainer/protocol/rules/HelloRule.java b/app/src/main/java/lightcontainer/protocol/rules/HelloRule.java new file mode 100644 index 0000000..6edb27d --- /dev/null +++ b/app/src/main/java/lightcontainer/protocol/rules/HelloRule.java @@ -0,0 +1,18 @@ +package lightcontainer.protocol.rules; + +import lightcontainer.protocol.ProtocolReader; + +public class HelloRule extends ProtocolReader { + private static final String PATTERN = "^HELLO ([A-Za-z0-9]{5,20}) ([0-9]{1,5})\r\n$"; + + public HelloRule() { + super(PATTERN); + } + + + @Override + protected void onExecuted(String[] data) { + + } + +}