Ejemplo n.º 1
0
 void ReportSingle(
     TextMessage message,
     DataCollectorId dataCollectorId,
     CaseReporting caseReporting,
     Guid healthRiskId,
     Sex sex,
     int age,
     bool unknown)
 {
     if (!unknown)
     {
         caseReporting.Report(
             dataCollectorId,
             healthRiskId,
             sex,
             age,
             message.Longitude,
             message.Latitude);
     }
     else
     {
         caseReporting.ReportFromUnknownDataCollector(
             message.OriginNumber,
             healthRiskId,
             sex,
             age,
             message.Longitude,
             message.Latitude);
     }
 }
Ejemplo n.º 2
0
 void Report(
     TextMessage message,
     DataCollectorId dataCollectorId,
     bool unknown,
     CaseReporting caseReporting,
     Guid healthRiskId,
     int malesUnder5,
     int malesOver5,
     int femalesUnder5,
     int femalesOver5,
     DateTimeOffset timestamp)
 {
     if (!unknown)
     {
         caseReporting.Report(
             dataCollectorId,
             healthRiskId,
             malesUnder5,
             malesOver5,
             femalesUnder5,
             femalesOver5,
             message.Longitude,
             message.Latitude,
             timestamp
             );
     }
     else
     {
         caseReporting.ReportFromUnknownDataCollector(
             message.OriginNumber,
             healthRiskId,
             malesUnder5,
             malesOver5,
             femalesUnder5,
             femalesOver5,
             message.Longitude,
             message.Latitude,
             timestamp
             );
     }
 }
Ejemplo n.º 3
0
 void Report(
     TextMessage message,
     DataCollector dataCollector,
     CaseReporting caseReporting,
     Guid healthRiskId,
     int malesUnder5,
     int malesOver5,
     int femalesUnder5,
     int femalesOver5,
     DateTimeOffset timestamp)
 {
     if (dataCollector != null)
     {
         caseReporting.Report(
             dataCollector.Id,
             healthRiskId,
             message.OriginNumber,
             malesUnder5,
             malesOver5,
             femalesUnder5,
             femalesOver5,
             dataCollector.Location.Longitude,
             dataCollector.Location.Latitude,
             timestamp
             );
     }
     else
     {
         caseReporting.ReportFromUnknownDataCollector(
             message.OriginNumber,
             healthRiskId,
             malesUnder5,
             malesOver5,
             femalesUnder5,
             femalesOver5,
             timestamp
             );
     }
 }