using DTS.Common.Enums;
using System;
namespace DTS.Common.Interface.Sensors.SensorsList
{
///
/// interface describes objects used in the UI to display digital inputs
///
public interface IDigitalInputSetting
{
///
/// ID in the database for the digital input setting
/// only positive numbers are valid database ids
///
int DatabaseId { get; set; }
///
/// whether the digital input is checked in a list with a checkbox
///
bool Included { get; set; }
///
/// the serial number / setting name
///
string SerialNumber { get; set; }
///
/// description or comment of setting
///
string Description { get; set; }
///
/// string representation of the Digital Input Mode of the setting
///
string DIMode { get; set; }
///
/// the user who last modified setting
///
string ModifiedBy { get; set; }
///
/// when the setting was last modified
///
DateTime LastModified { get; set; }
///
/// returns true if digital input matches filter criteria
///
///
///
bool Filter(string term);
///
/// whether the digital input is associated with a channel
///
bool Assigned { get; set; }
///
/// whether the digital input is online or not
///
bool Online { get; set; }
///
/// electronic id associated with the digital input
///
string EID { get; set; }
///
/// the isocode for the digital input
///
string ISOCode { get; set; }
///
/// the iso channel name for the digital input
///
string ISOChannelName { get; set; }
///
/// the user code for the digital input
///
string UserCode { get; set; }
///
/// the user channel name for the digital input
///
string UserChannelName { get; set; }
///
/// the active value of digital input as a string
/// this is the what to display when the digital input is in active state
///
string ActiveValue { get; set; }
///
/// the string representation of the state of the digital input in it's default state
/// this is what to display when the digital input is in idle, inactive, or the default state
///
string DefaultValue { get; set; }
DigitalInputModes Mode { get; set; }
///
/// marks the digital input setting as broken or not
/// broken sensors do not appear in selectable lists of sensors in edit test setup or edit group
///
bool Broken { get; set; }
///
/// marks the digital input setting as donotuse
/// donotuse sensors do not appear in selectable lists of sensors in edit test setup or edit group
///
bool DoNotUse { get; set; }
}
}