Class DeviceConfiguration
Contains all the settings and expected values for a saved configuration.
Inheritance
System.Object
DeviceConfiguration
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Phoenix.DeviceConfiguration
Assembly: Phoenix.DeviceConfiguration.dll
Syntax
public class DeviceConfiguration : IDeviceConfiguration, IDisposable
Constructors
View SourceDeviceConfiguration(String)
Initializes a new instance of the DeviceConfiguration class.
Declaration
public DeviceConfiguration(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name of this configuration. |
Properties
View SourceCategoryId
Gets the command category id for this configuration.
Declaration
public int CategoryId { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Interval
Gets or sets the interval that this configuration is checked at.
Declaration
public TimeSpan Interval { get; set; }
Property Value
Type | Description |
---|---|
System.TimeSpan |
Name
Gets the name of this configuration.
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
System.String |
Settings
Gets the collection settings for this configuration.
Declaration
public Collection<SettingValue> Settings { get; }
Property Value
Type | Description |
---|---|
System.Collections.ObjectModel.Collection<SettingValue> |
Methods
View SourceDispose()
Disposes the class.
Declaration
public void Dispose()
Dispose(Boolean)
Disposes resources
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing | if the managed resources are to be disposed or not. |
GetDeviceConfigStatus(IDevice)
Gets the configuration status for the specified device.
Declaration
public DeviceConfigurationStatus GetDeviceConfigStatus(IDevice device)
Parameters
Type | Name | Description |
---|---|---|
IDevice | device | The device to check |
Returns
Type | Description |
---|---|
DeviceConfigurationStatus | The device config status. |
Implements
System.IDisposable