//--- (end of generated code: YFileRecord definitions) public YFileRecord(string data) { YAPI.TJsonParser p; Nullable<YAPI.TJSONRECORD> node; //--- (generated code: YFileRecord attributes initialization) //--- (end of generated code: YFileRecord attributes initialization) p = new YAPI.TJsonParser(data, false); node = p.GetChildNode(null, "name"); this._name = node.Value.svalue; node = p.GetChildNode(null, "size"); this._size = (int)node.Value.ivalue; node = p.GetChildNode(null, "crc"); this._crc = (int)node.Value.ivalue; }
//--- (end of generated code: YWlanRecord definitions) public YWlanRecord(string data) { YAPI.TJsonParser p; Nullable<YAPI.TJSONRECORD> node; //--- (generated code: YWlanRecord attributes initialization) //--- (end of generated code: YWlanRecord attributes initialization) p = new YAPI.TJsonParser(data, false); node = p.GetChildNode(null, "ssid"); this._ssid = node.Value.svalue; node = p.GetChildNode(null, "sec"); this._sec = node.Value.svalue; node = p.GetChildNode(null, "rssi"); this._rssi = (int)node.Value.ivalue; node = p.GetChildNode(null, "channel"); this._channel = (int)node.Value.ivalue; }