public IntegrationJobData(XmlElement node) : base(node)
        {
            foreach (XmlElement propertyNode in node.ChildNodes)
            {
                switch (propertyNode.Name)
                {
                case "callbackNotificationUrl":
                    this._CallbackNotificationUrl = propertyNode.InnerText;
                    continue;

                case "providerType":
                    this._ProviderType = (IntegrationProviderType)StringEnum.Parse(typeof(IntegrationProviderType), propertyNode.InnerText);
                    continue;

                case "providerData":
                    this._ProviderData = ObjectFactory.Create <IntegrationJobProviderData>(propertyNode);
                    continue;

                case "triggerType":
                    this._TriggerType = (IntegrationTriggerType)StringEnum.Parse(typeof(IntegrationTriggerType), propertyNode.InnerText);
                    continue;

                case "triggerData":
                    this._TriggerData = ObjectFactory.Create <IntegrationJobTriggerData>(propertyNode);
                    continue;
                }
            }
        }
예제 #2
0
 public IntegrationJobData(JToken node) : base(node)
 {
     if (node["callbackNotificationUrl"] != null)
     {
         this._CallbackNotificationUrl = node["callbackNotificationUrl"].Value <string>();
     }
     if (node["providerType"] != null)
     {
         this._ProviderType = (IntegrationProviderType)StringEnum.Parse(typeof(IntegrationProviderType), node["providerType"].Value <string>());
     }
     if (node["providerData"] != null)
     {
         this._ProviderData = ObjectFactory.Create <IntegrationJobProviderData>(node["providerData"]);
     }
     if (node["triggerType"] != null)
     {
         this._TriggerType = (IntegrationTriggerType)StringEnum.Parse(typeof(IntegrationTriggerType), node["triggerType"].Value <string>());
     }
     if (node["triggerData"] != null)
     {
         this._TriggerData = ObjectFactory.Create <IntegrationJobTriggerData>(node["triggerData"]);
     }
 }