mirror of
https://github.com/alexhopeoconnor/bom-local-service.git
synced 2026-10-03 21:21:59 +10:00
- Refactor TimeParsingService to parse time strings to UTC only - Remove minutesAgo from RadarFrame and FrameMetadata models - Update CaptureFramesStep to extract UTC timestamps directly - Update CacheService to store/load ObservationTime instead of MinutesAgo - Update BomRadarService to use AbsoluteObservationTime directly - Remove all backward compatibility code for old cache folders - Update documentation and test SPA to calculate minutes ago on client - Fix step registration to register concrete types for DI resolution - Fix hosted service registration to use reflection correctly
22 lines
648 B
C#
22 lines
648 B
C#
namespace BomLocalService.Models;
|
|
|
|
/// <summary>
|
|
/// Represents a single radar frame (historical precipitation data).
|
|
/// Radar frames can be joined across cache folders to create extended historical slideshows.
|
|
/// </summary>
|
|
public class RadarFrame : CachedFrame
|
|
{
|
|
/// <summary>
|
|
/// The absolute UTC observation time for this frame.
|
|
/// Parsed directly from the frame display label during capture.
|
|
/// Client calculates "minutes ago" dynamically from this timestamp.
|
|
/// </summary>
|
|
public DateTime? AbsoluteObservationTime { get; set; }
|
|
|
|
public RadarFrame()
|
|
{
|
|
DataType = CachedDataType.Radar;
|
|
}
|
|
}
|
|
|