31 lines
767 B
C#
31 lines
767 B
C#
// Copyright (c) 2023 - schick Informatik
|
|
// bsmd.AIS2Service [Alarm.cs]: Daniel Schick
|
|
// Description: alarm created if vessel interacts with zone
|
|
//
|
|
using System;
|
|
|
|
namespace bsmd.AIS2Service
|
|
{
|
|
#region class Alarm
|
|
|
|
public class Alarm : DBEntity
|
|
{
|
|
private readonly MonitorAssignment _assignment;
|
|
|
|
public Alarm(long id, MonitorAssignment assignment) : base(id) { _assignment = assignment; }
|
|
|
|
public MonitorAssignment Assignment { get { return _assignment; } }
|
|
|
|
public DateTime Timestamp_First { get; set; }
|
|
|
|
public DateTime? Timestamp_Last { get; set; }
|
|
|
|
public DateTime? Acknowledged { get; set; }
|
|
|
|
public MonitorAssignment.ZoneMonitorType ZoneMonitorType { get; set; }
|
|
|
|
}
|
|
|
|
#endregion
|
|
}
|