public StatsKmcEvent(XmlElement node) : base(node) { foreach (XmlElement propertyNode in node.ChildNodes) { switch (propertyNode.Name) { case "clientVer": this._ClientVer = propertyNode.InnerText; continue; case "kmcEventActionPath": this._KmcEventActionPath = propertyNode.InnerText; continue; case "kmcEventType": this._KmcEventType = (StatsKmcEventType)ParseEnum(typeof(StatsKmcEventType), propertyNode.InnerText); continue; case "eventTimestamp": this._EventTimestamp = ParseFloat(propertyNode.InnerText); continue; case "sessionId": this._SessionId = propertyNode.InnerText; continue; case "partnerId": this._PartnerId = ParseInt(propertyNode.InnerText); continue; case "entryId": this._EntryId = propertyNode.InnerText; continue; case "widgetId": this._WidgetId = propertyNode.InnerText; continue; case "uiconfId": this._UiconfId = ParseInt(propertyNode.InnerText); continue; case "userId": this._UserId = propertyNode.InnerText; continue; case "userIp": this._UserIp = propertyNode.InnerText; continue; } } }
public StatsKmcEvent(JToken node) : base(node) { if (node["clientVer"] != null) { this._ClientVer = node["clientVer"].Value <string>(); } if (node["kmcEventActionPath"] != null) { this._KmcEventActionPath = node["kmcEventActionPath"].Value <string>(); } if (node["kmcEventType"] != null) { this._KmcEventType = (StatsKmcEventType)ParseEnum(typeof(StatsKmcEventType), node["kmcEventType"].Value <string>()); } if (node["eventTimestamp"] != null) { this._EventTimestamp = ParseFloat(node["eventTimestamp"].Value <string>()); } if (node["sessionId"] != null) { this._SessionId = node["sessionId"].Value <string>(); } if (node["partnerId"] != null) { this._PartnerId = ParseInt(node["partnerId"].Value <string>()); } if (node["entryId"] != null) { this._EntryId = node["entryId"].Value <string>(); } if (node["widgetId"] != null) { this._WidgetId = node["widgetId"].Value <string>(); } if (node["uiconfId"] != null) { this._UiconfId = ParseInt(node["uiconfId"].Value <string>()); } if (node["userId"] != null) { this._UserId = node["userId"].Value <string>(); } if (node["userIp"] != null) { this._UserIp = node["userIp"].Value <string>(); } }