public RSResponseGroup(string name, string flags) { this.Name = name; char[] splitters = { ' ' }; foreach (var flagName in flags.Split(splitters, System.StringSplitOptions.RemoveEmptyEntries)) { switch (flagName) { case "permitrepeats": this.flags |= RSResponseGroupFlags.PermitRepeats; break; case "sequential": this.flags |= RSResponseGroupFlags.Sequential; break; case "norepeat": this.flags |= RSResponseGroupFlags.NoRepeat; break; default: // we don't know this flag break; } } }
public RSResponseGroup(string name, RSResponseGroupFlags flags) { this.Name = name; this.flags = flags; }