public GenericDistributionJobProviderData(JToken node) : base(node) { if (node["xml"] != null) { this._Xml = node["xml"].Value <string>(); } if (node["resultParseData"] != null) { this._ResultParseData = node["resultParseData"].Value <string>(); } if (node["resultParserType"] != null) { this._ResultParserType = (GenericDistributionProviderParser)ParseEnum(typeof(GenericDistributionProviderParser), node["resultParserType"].Value <string>()); } }
public GenericDistributionJobProviderData(XmlElement node) : base(node) { foreach (XmlElement propertyNode in node.ChildNodes) { switch (propertyNode.Name) { case "xml": this._Xml = propertyNode.InnerText; continue; case "resultParseData": this._ResultParseData = propertyNode.InnerText; continue; case "resultParserType": this._ResultParserType = (GenericDistributionProviderParser)ParseEnum(typeof(GenericDistributionProviderParser), propertyNode.InnerText); continue; } } }
public GenericDistributionProviderAction(JToken node) : base(node) { if (node["id"] != null) { this._Id = ParseInt(node["id"].Value <string>()); } if (node["createdAt"] != null) { this._CreatedAt = ParseInt(node["createdAt"].Value <string>()); } if (node["updatedAt"] != null) { this._UpdatedAt = ParseInt(node["updatedAt"].Value <string>()); } if (node["genericDistributionProviderId"] != null) { this._GenericDistributionProviderId = ParseInt(node["genericDistributionProviderId"].Value <string>()); } if (node["action"] != null) { this._Action = (DistributionAction)ParseEnum(typeof(DistributionAction), node["action"].Value <string>()); } if (node["status"] != null) { this._Status = (GenericDistributionProviderStatus)ParseEnum(typeof(GenericDistributionProviderStatus), node["status"].Value <string>()); } if (node["resultsParser"] != null) { this._ResultsParser = (GenericDistributionProviderParser)ParseEnum(typeof(GenericDistributionProviderParser), node["resultsParser"].Value <string>()); } if (node["protocol"] != null) { this._Protocol = (DistributionProtocol)ParseEnum(typeof(DistributionProtocol), node["protocol"].Value <string>()); } if (node["serverAddress"] != null) { this._ServerAddress = node["serverAddress"].Value <string>(); } if (node["remotePath"] != null) { this._RemotePath = node["remotePath"].Value <string>(); } if (node["remoteUsername"] != null) { this._RemoteUsername = node["remoteUsername"].Value <string>(); } if (node["remotePassword"] != null) { this._RemotePassword = node["remotePassword"].Value <string>(); } if (node["editableFields"] != null) { this._EditableFields = node["editableFields"].Value <string>(); } if (node["mandatoryFields"] != null) { this._MandatoryFields = node["mandatoryFields"].Value <string>(); } if (node["mrssTransformer"] != null) { this._MrssTransformer = node["mrssTransformer"].Value <string>(); } if (node["mrssValidator"] != null) { this._MrssValidator = node["mrssValidator"].Value <string>(); } if (node["resultsTransformer"] != null) { this._ResultsTransformer = node["resultsTransformer"].Value <string>(); } }
public GenericDistributionProviderAction(XmlElement node) : base(node) { foreach (XmlElement propertyNode in node.ChildNodes) { switch (propertyNode.Name) { case "id": this._Id = ParseInt(propertyNode.InnerText); continue; case "createdAt": this._CreatedAt = ParseInt(propertyNode.InnerText); continue; case "updatedAt": this._UpdatedAt = ParseInt(propertyNode.InnerText); continue; case "genericDistributionProviderId": this._GenericDistributionProviderId = ParseInt(propertyNode.InnerText); continue; case "action": this._Action = (DistributionAction)ParseEnum(typeof(DistributionAction), propertyNode.InnerText); continue; case "status": this._Status = (GenericDistributionProviderStatus)ParseEnum(typeof(GenericDistributionProviderStatus), propertyNode.InnerText); continue; case "resultsParser": this._ResultsParser = (GenericDistributionProviderParser)ParseEnum(typeof(GenericDistributionProviderParser), propertyNode.InnerText); continue; case "protocol": this._Protocol = (DistributionProtocol)ParseEnum(typeof(DistributionProtocol), propertyNode.InnerText); continue; case "serverAddress": this._ServerAddress = propertyNode.InnerText; continue; case "remotePath": this._RemotePath = propertyNode.InnerText; continue; case "remoteUsername": this._RemoteUsername = propertyNode.InnerText; continue; case "remotePassword": this._RemotePassword = propertyNode.InnerText; continue; case "editableFields": this._EditableFields = propertyNode.InnerText; continue; case "mandatoryFields": this._MandatoryFields = propertyNode.InnerText; continue; case "mrssTransformer": this._MrssTransformer = propertyNode.InnerText; continue; case "mrssValidator": this._MrssValidator = propertyNode.InnerText; continue; case "resultsTransformer": this._ResultsTransformer = propertyNode.InnerText; continue; } } }