using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SipComponent.Linx
{
///
/// Contains the list of LINX alarm types
///
public enum LinxEmergencyType
{
///
/// Man down
///
MAN_DOWN = 1,
///
/// Lone worker
///
LONE_WORKER = 2,
///
/// Motionless
///
MOTIONLESS = 3,
///
/// Regular
///
REGULAR = 4
}
///
/// Provides data about the LinxArsReceived event
///
public class ArsReceivedEventArgs : MBusEventArgs
{
///
/// True if the radio is on, else false
///
public bool IsOn { get; private set; }
internal ArsReceivedEventArgs(string sipIDinDialogWith, string seqID, bool isOn)
: base(sipIDinDialogWith, seqID)
{
IsOn = isOn;
}
}
///
/// Provides data about the LinxEmergencyAlarmReceived event
///
public class LinxEmergencyAlarmReceivedEventArgs : MBusEventArgs
{
///
/// The type of emergency
///
public LinxEmergencyType EmergencyType { get; private set; }
internal LinxEmergencyAlarmReceivedEventArgs(string sipIDinDialogWith, string seqID, LinxEmergencyType emergencyType) :
base(sipIDinDialogWith, seqID)
{
this.EmergencyType = emergencyType;
}
}
///
/// Contains a list of types of calls that a Linx can made
///
public enum LinxTypeOfCall
{
///
/// Full duplex Linx call, like a phone call
///
FULL_DUPLEX,
///
/// Half duplex Ptt call, like a radio
///
HALF_DUPLEX
}
}