public static UPnPInfo Parse(RovioResponse response) { UPnPInfo info = new UPnPInfo(); info.Enable = (response["Enable"] == "1"); info.Port = int.Parse(response["Port"]); info.IP = response["IP"]; info.HttpPort = int.Parse(response["HTTP"]); info.RstpTcpPort = int.Parse(response["RTSP_TCP"]); info.RstpUdpPort = int.Parse(response["RTSP_UDP"]); return info; }
public static UPnPInfo Parse(RovioResponse response) { UPnPInfo info = new UPnPInfo(); info.Enable = (response["Enable"] == "1"); info.Port = int.Parse(response["Port"]); info.IP = response["IP"]; info.HttpPort = int.Parse(response["HTTP"]); info.RstpTcpPort = int.Parse(response["RTSP_TCP"]); info.RstpUdpPort = int.Parse(response["RTSP_UDP"]); return(info); }