using QuantConnect.Packets; namespace QuantConnect.Views { /// /// Messaging System Plugin Interface for the UI. /// Provides a common messaging pattern between the desktop client and the UI. /// public interface IDesktopMessageHandler { /// /// This method should be called first when a new job is recieved. /// /// The job that is being executed void Initialize(AlgorithmNodePacket job); /// /// Display the Handled error packet /// /// Handled error packet to be displayed void DisplayHandledErrorPacket(HandledErrorPacket packet); /// /// Method to display the runtime error packet /// /// Runtime error packet to be displayed void DisplayRuntimeErrorPacket(RuntimeErrorPacket packet); /// /// Method to display the Log packets /// /// Log packet to be displayed void DisplayLogPacket(LogPacket packet); /// /// Method to display the debug packet /// /// Debug packet to be displayed void DisplayDebugPacket(DebugPacket packet); /// /// Displays the Backtest results packet /// /// Backtest results void DisplayBacktestResultsPacket(BacktestResultPacket packet); } }