(function(f,c,e){var b="Rho.Network";var a=e.apiReqFor(b);function d(){var g=null;this.getId=function(){return g};if(1==arguments.length&&arguments[0][e.rhoIdParam()]){if(b!=arguments[0][e.rhoClassParam()]){throw"Wrong class instantiation!"}g=arguments[0][e.rhoIdParam()]}else{g=e.nextId()}}e.createPropsProxy(d.prototype,[],a,function(){return this.getId()});e.createMethodsProxy(d.prototype,[],a,function(){return this.getId()});e.createRawPropsProxy(d.prototype,[]);d.AUTH_BASIC="basic";e.createPropsProxy(d,[{propName:"url",propAccess:"rw"},{propName:"authType",propAccess:"rw"},{propName:"authUser",propAccess:"rw"},{propName:"authPassword",propAccess:"rw"},{propName:"verifyPeerCertificate",propAccess:"rw"},{propName:"httpVerb",propAccess:"rw"},{propName:"headers",propAccess:"rw"},{propName:"responseTimeout",propAccess:"rw"}],a);e.createMethodsProxy(d,[{methodName:"cancel",nativeName:"cancel",persistentCallbackIndex:0,valueCallbackIndex:2},{methodName:"downloadFile",nativeName:"downloadFile",persistentCallbackIndex:1,valueCallbackIndex:3},{methodName:"get",nativeName:"get",persistentCallbackIndex:1,valueCallbackIndex:3},{methodName:"post",nativeName:"post",persistentCallbackIndex:1,valueCallbackIndex:3},{methodName:"uploadFile",nativeName:"uploadFile",persistentCallbackIndex:1,valueCallbackIndex:3},{methodName:"hasNetwork",nativeName:"hasNetwork",valueCallbackIndex:0},{methodName:"hasWifiNetwork",nativeName:"hasWifiNetwork",valueCallbackIndex:0},{methodName:"hasCellNetwork",nativeName:"hasCellNetwork",valueCallbackIndex:0},{methodName:"startStatusNotify",nativeName:"startStatusNotify",persistentCallbackIndex:1,valueCallbackIndex:3},{methodName:"stopStatusNotify",nativeName:"stopStatusNotify",valueCallbackIndex:0},{methodName:"detectConnection",nativeName:"detectConnection",persistentCallbackIndex:1,valueCallbackIndex:3},{methodName:"stopDetectingConnection",nativeName:"stopDetectingConnection",persistentCallbackIndex:0,valueCallbackIndex:2},{methodName:"connectWan",nativeName:"connectWan",persistentCallbackIndex:1,valueCallbackIndex:3},{methodName:"disconnectWan",nativeName:"disconnectWan",valueCallbackIndex:0}],a);e.namespace(b,d)})(Rho.jQuery,Rho,Rho.util);