public WidevineRepositorySyncJobData(JToken node) : base(node) { if (node["syncMode"] != null) { this._SyncMode = (WidevineRepositorySyncMode)ParseEnum(typeof(WidevineRepositorySyncMode), node["syncMode"].Value <string>()); } if (node["wvAssetIds"] != null) { this._WvAssetIds = node["wvAssetIds"].Value <string>(); } if (node["modifiedAttributes"] != null) { this._ModifiedAttributes = node["modifiedAttributes"].Value <string>(); } if (node["monitorSyncCompletion"] != null) { this._MonitorSyncCompletion = ParseInt(node["monitorSyncCompletion"].Value <string>()); } }
public WidevineRepositorySyncJobData(XmlElement node) : base(node) { foreach (XmlElement propertyNode in node.ChildNodes) { switch (propertyNode.Name) { case "syncMode": this._SyncMode = (WidevineRepositorySyncMode)ParseEnum(typeof(WidevineRepositorySyncMode), propertyNode.InnerText); continue; case "wvAssetIds": this._WvAssetIds = propertyNode.InnerText; continue; case "modifiedAttributes": this._ModifiedAttributes = propertyNode.InnerText; continue; case "monitorSyncCompletion": this._MonitorSyncCompletion = ParseInt(propertyNode.InnerText); continue; } } }