public object GetSys(enumSys k, bool online) { if (this.Sys != null) { object obj = null; Dictionary <string, string> dic = online == true?this.LoadSys()["sys"] : this.Sys["sys"]; switch (k) { case enumSys.ip: case enumSys.netmask: case enumSys.gateway: case enumSys.mac: case enumSys.dhcp_enable: case enumSys.wifi_enable: case enumSys.wifi_ap_mode: case enumSys.wifi_hostap_hw_mode: case enumSys.wifi_hostap_essid: case enumSys.wifi_hostap_psk: case enumSys.wifi_hostap_channel: case enumSys.dns0: case enumSys.dns1: case enumSys.http_port: case enumSys.rtsp_port: case enumSys.rtsp_g711: case enumSys.rtsp_g711_8k: case enumSys.rtsp_g711_mu: case enumSys.audio_left_right: case enumSys.pte_g711: case enumSys.ts_over_rtsp: case enumSys.rtp_multicast: case enumSys.udp_ttl: case enumSys.udp_sock_buf_size: case enumSys.html_password: case enumSys.hostname: case enumSys.language: obj = dic[k.ToString()]; break; default: break; } return(obj); } return(null); }
public object GetSys(enumSys k) { return(this.GetSys(k, false)); }