DataPointHeader constructor

DataPointHeader({
  1. String? studyId,
  2. String? userId,
  3. DataFormat dataFormat = DataFormat.UNKNOWN,
  4. String? deviceRoleName,
  5. String? triggerId,
  6. DateTime? startTime,
  7. DateTime? endTime,
})

Create a new DataPointHeader.

Implementation

DataPointHeader({
  this.studyId,
  this.userId,
  this.dataFormat = DataFormat.UNKNOWN,
  this.deviceRoleName,
  this.triggerId,
  this.startTime,
  this.endTime,
}) {
  // make sure that timestamps are in UTC
  if (startTime != null) startTime!.toUtc();
  if (endTime != null) endTime!.toUtc();
}