aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.Integration/Emergency/IEmergencyNotificationProvider.cs
blob: 9d8f0d421393dd405a7db608392ea1dffc0f00c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Tango.Integration.Emergency
{
    /// <summary>
    /// Represents a machine emergency notification provider.
    /// </summary>
    public interface IEmergencyNotificationProvider
    {
        /// <summary>
        /// Gets or sets a value indicating whether to enable emergency detection and notification.
        /// </summary>
        bool IsEnabled { get; set; }

        /// <summary>
        /// Gets or sets the address/port of the detection device.
        /// </summary>
        String Address { get; set; }

        /// <summary>
        /// Gets or sets the current emergency status.
        /// </summary>
        EmergencyStatus Status { get; set; }

        /// <summary>
        /// Occurs when the emergency status has changed.
        /// </summary>
        event EventHandler<EmergencyStatusChangedEventArgs> StatusChanged;
    }
}