Add Phoenix remote desktop, action connector, documentation engine, and gamification support. Refactor support-case processing and search/action UI, and update installer assets and dependencies.
39 lines
1.2 KiB
C#
39 lines
1.2 KiB
C#
using C4IT.XML;
|
|
using F4SD.ActionConnector.Enumerations;
|
|
using System;
|
|
using System.Xml;
|
|
using static C4IT.Logging.cLogManager;
|
|
|
|
namespace F4SD.ActionConnector.Models
|
|
{
|
|
public abstract class ActionDefinitionBase
|
|
{
|
|
public string Id { get; set; }
|
|
public abstract ActionType Type { get; }
|
|
public bool AwaitResult { get; set; }
|
|
public bool IsEnabled { get; set; }
|
|
public string Description { get; set; }
|
|
public bool IsValid { get; private protected set; }
|
|
|
|
protected ActionDefinitionBase(XmlElement xNode, cXmlParser parser)
|
|
{
|
|
try
|
|
{
|
|
Id = cXmlParser.GetStringFromXmlAttribute(xNode, "Id");
|
|
AwaitResult = cXmlParser.GetBoolFromXmlAttribute(xNode, "AwaitResult");
|
|
IsEnabled = cXmlParser.GetBoolFromXmlAttribute(xNode, "IsEnabled");
|
|
|
|
XmlNode descriptionNode = xNode.SelectSingleNode("Description");
|
|
if (descriptionNode != null)
|
|
Description = cXmlParser.GetInnerTextFromXmlElement(descriptionNode);
|
|
|
|
IsValid = true;
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
LogException(ex);
|
|
}
|
|
}
|
|
}
|
|
}
|