public CameraInstance AddCameraInstance(string mediaServerId, ReqAddCameraInstance req) { ResponseStruct rs; var ret = MediaServerApis.AddCameraInstance(mediaServerId, req, out rs); if (rs.Code != ErrorNumber.None) { throw new HttpResponseException(JsonHelper.ToJson(rs)); } return(ret); }