コード例 #1
0
        private ResponseCommand createResponseCommand(short cmdCode)
        {
            ResponseCommand command = new RpcResponseCommand();

            command.CmdCode = RpcCommandCode.valueOf(cmdCode);
            return(command);
        }
コード例 #2
0
        private RpcRequestCommand createRequestCommand(short cmdCode)
        {
            RpcRequestCommand command = new RpcRequestCommand();

            command.CmdCode    = RpcCommandCode.valueOf(cmdCode);
            command.ArriveTime = new DateTimeOffset(DateTime.UtcNow).ToUnixTimeMilliseconds();
            return(command);
        }