Beispiel #1
0
 void ReportInvalidMessage(
     TextMessage message,
     IEnumerable <string> errorMessages,
     DataCollector dataCollector,
     CaseReporting caseReporting,
     DateTimeOffset timestamp)
 {
     if (dataCollector != null)
     {
         caseReporting.ReportInvalidReport(
             dataCollector.Id,
             message.OriginNumber,
             message.Message,
             errorMessages,
             timestamp);
     }
     else
     {
         caseReporting.ReportInvalidReportFromUnknownDataCollector(
             message.OriginNumber,
             message.Message,
             errorMessages,
             timestamp);
     }
 }
Beispiel #2
0
 void ReportInvalidMessage(
     TextMessage message,
     TextMessageParsingResult parsingResult,
     DataCollectorId dataCollectorId,
     bool unknown,
     CaseReporting caseReporting,
     DateTimeOffset timestamp)
 {
     if (!unknown)
     {
         caseReporting.ReportInvalidReport(
             dataCollectorId,
             message.Message,
             parsingResult.ErrorMessages,
             timestamp);
     }
     else
     {
         caseReporting.ReportInvalidReportFromUnknownDataCollector(
             message.OriginNumber,
             message.Message,
             parsingResult.ErrorMessages,
             timestamp);
     }
 }