Ejemplo n.º 1
0
        public TelentAction(TelentActionType type, TelentActionData actionData)
            : base(Enums.ActionTypeId.Telnet)
        {
            _telnetActionData = actionData;
            _type = type;

            Details.Add(type.ToString());
            Details.Add(_telnetActionData.Host); //1
            Details.Add(_telnetActionData.Port); //2
            Details.Add(_telnetActionData.Command); //3
            Details.Add(_telnetActionData.TargetVar); //4
        }
Ejemplo n.º 2
0
 public override void Construct()
 {
     _type = (TelentActionType)Enum.Parse(typeof(TelentActionType), Details[0]);
     _telnetActionData = new TelentActionData() { Host = Details[1], Port = Details[2], Command = Details[3], TargetVar = Details[4] };
 }