public bool ActiveDeviceCatalogQuery(string deviceid) { ResponseStruct rs; var ret = CommonApi.ActiveDeviceCatalogQuery(deviceid, out rs); if (rs.Code != ErrorNumber.None) { throw new HttpResponseException(JsonHelper.ToJson(rs)); } return(ret); }