예제 #1
0
        private void UpdateUserReportOutPutConfig(int reportId, int userId, string outputConfiguration)
        {
            var userReport = GetUserReport(reportId, userId);

            //The same output is kept
            var currentOutput = userReport.Output;

            var updateOutputRequest = Utils.GetRequestInfo(Method.POST, "/api/ReportConfiguration/UpdateUserReportOutput");

            var updateOutputParmams = new UserReportOutputModel
            {
                Output = currentOutput,
                OutputConfiguration = outputConfiguration,
                UserId = userId,
                ReportId = reportId
            };

            _webClient.Execute<bool>(updateOutputParmams, ApiUrls.API_KEY, ApiUrls.API_SECRET, updateOutputRequest);
        }
예제 #2
0
        private void UpdateUserReportOutPut(int reportId, int userId, IEnumerable<string> outPut)
        {
            var userReport = GetUserReport(reportId, userId);

            //The same Output Config is kept
            var currentOutputConfig = userReport.OutputConfiguration;

            var updateOutputRequest = Utils.GetRequestInfo(Method.POST, "/api/ReportConfiguration/UpdateUserReportOutput");

            var updateOutputParmams = new UserReportOutputModel
            {
                Output = outPut.GetCommaSeparatedTokens(),
                OutputConfiguration = currentOutputConfig,
                UserId = userId,
                ReportId = reportId
            };

               _webClient.Execute<bool>(updateOutputParmams, ApiUrls.API_KEY, ApiUrls.API_SECRET, updateOutputRequest);
        }