textMessageLogAnoymizer function

Data textMessageLogAnoymizer(
  1. Data datum
)

A TextMessageLog anonymizer function. Anonymizes each TextMessageDatum entry in the log using the textMessageAnoymizer function.

Implementation

Data textMessageLogAnoymizer(Data datum) {
  assert(datum is TextMessageLog);
  TextMessageLog log = datum as TextMessageLog;
  for (var msg in log.textMessageLog) {
    textMessageAnoymizer(msg);
  }
  return log;
}