public static int SetCameraQualityInfo(CameraQuality item, CameraQualityInfo paramInfo) { int result = (int)Error.FAILED; result = SRWorkModule_API.SetCameraStatus((int)item, paramInfo.Status); if (result != (int)Error.WORK) { return(result); } result = SRWorkModule_API.SetCameraDefaultValue((int)item, paramInfo.DefaultValue); if (result != (int)Error.WORK) { return(result); } result = SRWorkModule_API.SetCameraMin((int)item, paramInfo.Min); if (result != (int)Error.WORK) { return(result); } result = SRWorkModule_API.SetCameraMax((int)item, paramInfo.Max); if (result != (int)Error.WORK) { return(result); } result = SRWorkModule_API.SetCameraStep((int)item, paramInfo.Step); if (result != (int)Error.WORK) { return(result); } result = SRWorkModule_API.SetCameraDefaultMode((int)item, paramInfo.DefaultMode); if (result != (int)Error.WORK) { return(result); } result = SRWorkModule_API.SetCameraValue((int)item, paramInfo.Value); if (result != (int)Error.WORK) { return(result); } result = SRWorkModule_API.SetCameraMode((int)item, paramInfo.Mode); if (result != (int)Error.WORK) { return(result); } return(result); }