using System;
using System.Collections.Generic;
namespace TBF.BenchControl.Network.Telnet
{
///
/// Type of argument of FatalEventHandler
///
public class FatalEventArgs : EventArgs
{
public string FatalErrorText; /// Fatal error description messages.
public FatalEventArgs(string text)
{
FatalErrorText = text;
}
}
///
/// Type of argument of NotificationEventHandler
///
public class NotificationEventArgs : EventArgs
{
public string NotificationText; /// String identifying this notification more closely.
public NotificationEventArgs(string text)
{
NotificationText = text;
}
}
///
/// Type of argument of PromptReceviedEventHandler
///
public class PromptReceivedEventArgs : EventArgs
{
public string Response; /// Response to a command from the telnet server ...
/// ... without the terminal prompt string.
public PromptReceivedEventArgs(string text)
{
Response = text;
}
}
///
/// Type of argument of VtTextChangedEventHandler
///
public class VtTextChangedEventArgs : EventArgs
{
public string VtText; // Virtual terminal text.
public VtTextChangedEventArgs(string text)
{
VtText = text;
}
}
///
/// Used as a part of AuxBrdUpgItemMessage
///
public enum Category
{
Error,
Warning,
Success,
}
///
/// A pair containing Aux Board Upgrade item identification and a message
/// (fatal error, error, warning or success message).
///
public class AuxBrdUpgItemMessage
{
public Category Category; /// Error, Warning or Success
public string Label; /// Identifies the aux.board upgrade item
public string Message; /// The message
public AuxBrdUpgItemMessage(Category category, string label, string message)
{
Category = category;
Label = label;
Message = message;
}
}
///
/// Type of argument of SummaryEventArgs
///
public class SummaryEventArgs : EventArgs
{
public IList SummaryMessages; /// Event description messages.
public SummaryEventArgs(IList summaryMessages)
{
this.SummaryMessages = summaryMessages;
}
}
}