using System; using GeoVLog.Core.Models; namespace GeoVLog.Core.Hdf5 { /// /// Represents a single sensor data log record to be written to an HDF5 log file. /// public struct H5LogRecord { /// /// The identifier of the sensor that produced this record. /// public SensorId SensorId { get; set; } /// /// The timestamp (in UTC) when the sensor data was captured. /// public DateTime Timestamp { get; set; } /// /// The raw sensor message payload (e.g., the full message bytes from the sensor). /// public ReadOnlyMemory Payload { get; set; } /// /// Initializes a new with the specified sensor ID, timestamp, and payload. /// /// The sensor identifier. /// The UTC timestamp of the record. /// The raw message data payload. public H5LogRecord(SensorId sensorId, DateTime timestamp, ReadOnlyMemory payload) { SensorId = sensorId; Timestamp = timestamp; Payload = payload; } } }