Exemple #1
0
        /**********************************************************/

        public string createUpdateReport(string venID, string requestID, oadrReportType report, string reportRequestID)
        {
            request = new oadrUpdateReportType();

            request.requestID     = requestID;
            request.schemaVersion = "2.0b";
            request.venID         = venID;

            request.oadrReport = new oadrReportType[1];

            request.oadrReport[0] = report;

            return(serializeObject(request));
        }
Exemple #2
0
        /**********************************************************/

        public string createUpdateReport(string venID, string requestID, Dictionary <string, ReportWrapper> reports, string reportRequestID)
        {
            request = new oadrUpdateReportType();

            request.requestID     = requestID;
            request.schemaVersion = "2.0b";
            request.venID         = venID;

            request.oadrReport = new oadrReportType[reports.Count];

            int index = 0;

            foreach (ReportWrapper reportWrapper in reports.Values)
            {
                oadrReportType report = reportWrapper.generateReport(reportRequestID);

                request.oadrReport[index++] = report;
            }

            return(serializeObject(request));
        }
Exemple #3
0
        /**********************************************************/

        public string createUpdateReport(string venID, string requestID, ReportDescription reportDescription, List <string> reportSpecifierIDs, DateTime dtstartUTC)
        {
            request = new oadrUpdateReportType();

            request.requestID     = requestID;
            request.schemaVersion = "2.0b";
            request.venID         = venID;

            request.oadrReport = new oadrReportType[reportSpecifierIDs.Count];

            int index = 0;

            foreach (string reportSpecifierID in reportSpecifierIDs)
            {
                oadrReportType report = reportDescription.generateReport(reportSpecifierID, dtstartUTC);

                request.oadrReport[index++] = report;
            }

            return(serializeObject(request));
        }