public AuditTrailFileSyncCreateInfo(XmlElement node) : base(node) { foreach (XmlElement propertyNode in node.ChildNodes) { switch (propertyNode.Name) { case "version": this._Version = propertyNode.InnerText; continue; case "objectSubType": this._ObjectSubType = ParseInt(propertyNode.InnerText); continue; case "dc": this._Dc = ParseInt(propertyNode.InnerText); continue; case "original": this._Original = ParseBool(propertyNode.InnerText); continue; case "fileType": this._FileType = (AuditTrailFileSyncType)ParseEnum(typeof(AuditTrailFileSyncType), propertyNode.InnerText); continue; } } }
public AuditTrailFileSyncCreateInfo(JToken node) : base(node) { if (node["version"] != null) { this._Version = node["version"].Value <string>(); } if (node["objectSubType"] != null) { this._ObjectSubType = ParseInt(node["objectSubType"].Value <string>()); } if (node["dc"] != null) { this._Dc = ParseInt(node["dc"].Value <string>()); } if (node["original"] != null) { this._Original = ParseBool(node["original"].Value <string>()); } if (node["fileType"] != null) { this._FileType = (AuditTrailFileSyncType)ParseEnum(typeof(AuditTrailFileSyncType), node["fileType"].Value <string>()); } }