public ListenerInteractMenuItem(CovenantAPI CovenantClient, EventPrinter EventPrinter) : base(CovenantClient, EventPrinter) { this.MenuTitle = "Interact"; this.MenuDescription = "Interact with a Listener."; this.MenuItemParameters = new List <MenuCommandParameter> { new MenuCommandParameter { Name = "Listener Name", Values = CovenantClient.ApiListenersGet().Select(L => new MenuCommandParameterValue { Value = L.Name }).ToList() } }; this.MenuOptions.Add(new HostedFilesMenuItem(this.CovenantClient, this.EventPrinter, listener)); this.AdditionalOptions.Add(new MenuCommandListenerInteractShow(this.CovenantClient)); this.AdditionalOptions.Add(new MenuCommandListenerInteractStart(this.CovenantClient, this.EventPrinter)); this.AdditionalOptions.Add(new MenuCommandListenerInteractStop(this.CovenantClient, this.EventPrinter)); this.SetupMenuAutoComplete(); }