public AkamaiUniversalProvisionJobData(XmlElement node) : base(node) { foreach (XmlElement propertyNode in node.ChildNodes) { switch (propertyNode.Name) { case "streamId": this._StreamId = ParseInt(propertyNode.InnerText); continue; case "systemUserName": this._SystemUserName = propertyNode.InnerText; continue; case "systemPassword": this._SystemPassword = propertyNode.InnerText; continue; case "domainName": this._DomainName = propertyNode.InnerText; continue; case "dvrEnabled": this._DvrEnabled = (DVRStatus)ParseEnum(typeof(DVRStatus), propertyNode.InnerText); continue; case "dvrWindow": this._DvrWindow = ParseInt(propertyNode.InnerText); continue; case "primaryContact": this._PrimaryContact = propertyNode.InnerText; continue; case "secondaryContact": this._SecondaryContact = propertyNode.InnerText; continue; case "streamType": this._StreamType = (AkamaiUniversalStreamType)StringEnum.Parse(typeof(AkamaiUniversalStreamType), propertyNode.InnerText); continue; case "notificationEmail": this._NotificationEmail = propertyNode.InnerText; continue; } } }
public AkamaiUniversalProvisionJobData(JToken node) : base(node) { if (node["streamId"] != null) { this._StreamId = ParseInt(node["streamId"].Value <string>()); } if (node["systemUserName"] != null) { this._SystemUserName = node["systemUserName"].Value <string>(); } if (node["systemPassword"] != null) { this._SystemPassword = node["systemPassword"].Value <string>(); } if (node["domainName"] != null) { this._DomainName = node["domainName"].Value <string>(); } if (node["dvrEnabled"] != null) { this._DvrEnabled = (DVRStatus)ParseEnum(typeof(DVRStatus), node["dvrEnabled"].Value <string>()); } if (node["dvrWindow"] != null) { this._DvrWindow = ParseInt(node["dvrWindow"].Value <string>()); } if (node["primaryContact"] != null) { this._PrimaryContact = node["primaryContact"].Value <string>(); } if (node["secondaryContact"] != null) { this._SecondaryContact = node["secondaryContact"].Value <string>(); } if (node["streamType"] != null) { this._StreamType = (AkamaiUniversalStreamType)StringEnum.Parse(typeof(AkamaiUniversalStreamType), node["streamType"].Value <string>()); } if (node["notificationEmail"] != null) { this._NotificationEmail = node["notificationEmail"].Value <string>(); } }