U
unomystEz
I have a protocol structure that makes use of subcommands and I was
wondering if it's possible to do something like the following:
public enum MajorCommand {
LOGON { public enum SubCommand { }; }
QUIT { public enum SubCommand { IMMEDIATELY, DELAY }; }
LIGHT { public enum SubCommand { TURN_ON, TURN OFF}; }
public abstract enum SubCommand;
}
It would help a lot with the organization of the various combinations
possible.
wondering if it's possible to do something like the following:
public enum MajorCommand {
LOGON { public enum SubCommand { }; }
QUIT { public enum SubCommand { IMMEDIATELY, DELAY }; }
LIGHT { public enum SubCommand { TURN_ON, TURN OFF}; }
public abstract enum SubCommand;
}
It would help a lot with the organization of the various combinations
possible.