Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

31 lines (23 sloc) 0.714 kB
using System;
using System.Collections.Generic;
using System.Text;
namespace PhoneGap {
class CommandManager {
private Command[] commands = new Command[2];
public CommandManager() {
commands[0] = new InitializationCommand();
commands[1] = new MediaCommand();
}
public String processInstruction(String instruction) {
for (int index = 0; index < commands.Length; index++) {
Command command = (Command) commands[index];
if (command.accept(instruction))
try {
return command.execute(instruction);
} catch(Exception e) {
}
}
return null;
}
}
}
Jump to Line
Something went wrong with that request. Please try again.