public static string GetCommonVerbString(CommonVerbs verb) { switch (verb) { case CommonVerbs.Activate: return("ACT"); case CommonVerbs.Allow: return("ALW"); case CommonVerbs.Cancel: return("CANC"); case CommonVerbs.Delete: return("DLT"); case CommonVerbs.Edit: return("ED"); case CommonVerbs.Enter: return("ENT"); case CommonVerbs.Inhibit: return("INH"); case CommonVerbs.Initialize: return("INIT"); case CommonVerbs.Operate: return("OPR"); case CommonVerbs.Report: return("REPT"); case CommonVerbs.Release: return("RLS"); case CommonVerbs.Remove: return("RMV"); case CommonVerbs.Restore: return("RST"); case CommonVerbs.Retrieve: return("RTRV"); case CommonVerbs.Set: return("SET"); } throw new ArgumentOutOfRangeException(nameof(verb)); }
public TL1CommonRequest(CommonVerbs verb, string modifier1, string correlationTag) : base(GetCommonVerbString(verb), correlationTag, modifier1) { this.PositionDefinedBlock = new PositionDefinedParametersBlock(); this.NameDefinedBlock = new NameDefinedParameterBlock(); this.StateBlock = new PositionDefinedParametersBlock(); }