Class InputCommand

java.lang.Object
com.iohao.net.extension.client.command.InputCommand

public class InputCommand extends Object
模拟命令 example:
        ofCommand(DemoCmd.here).setTitle("here").setRequestData(() -> {
            YourMsg msg = ...
            return msg;
        }).callback(result -> {
             HelloReq value = result.getValue(HelloReq.class);
             log.info("value : {}", value);
         });

        ofCommand(DemoCmd.list).setTitle("list").callback(result -> {
            // 得到 list 数据
            List<HelloReq> list = result.listValue(HelloReq.class);
            log.info("list : {}", list);
        });

Author:
渔民小镇
date:
2023-07-08