Ejemplo n.º 1
0
        public override IList <OutputFile> ProcessStream(Stream input, ConvertOptions options)
        {
            List <RPCCommand> rpc    = new List <RPCCommand>();
            StreamReader      reader = new StreamReader(input);
            string            line;

            while ((line = reader.ReadLine()) != null)
            {
                string[]       split = line.Split(new[] { ": " }, 0);
                RPCCommandType cmd   = (RPCCommandType)Enum.Parse(typeof(RPCCommandType), split[0]);
                int            value = Int32.Parse(split[1]);
                rpc.Add(new RPCCommand(cmd, value));
            }
            return(LoadPCS.ProcessRPC(rpc, options));
        }
Ejemplo n.º 2
0
 public RPCCommand(RPCCommandType type, int channel, int data)
 {
     Type    = type;
     Channel = channel;
     Data    = data;
 }
Ejemplo n.º 3
0
 public RPCCommand(RPCCommandType type, int data)
 {
     Type = type;
     Data = data;
 }
Ejemplo n.º 4
0
 public RPCCommand(RPCCommandType type, int channel, int data)
 {
     Type = type;
     Channel = channel;
     Data = data;
 }
Ejemplo n.º 5
0
 public RPCCommand(RPCCommandType type, int data)
 {
     Type = type;
     Data = data;
 }