Class Switch
Client implementation of an ASCOM Alpaca Switch device.
This class is meant to be use in a client application that need to control an ASCOM Alpaca Switch
Inheritance
System.Object
Switch
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()
Assembly: ES.Ascom.Alpaca.Client.dll
Syntax
public sealed class Switch : DeviceBase, ISwitch, IDevice, ISwitchAsync, IDeviceAsync
Constructors
|
Improve this Doc
View Source
Switch(DeviceConfiguration)
Initializes a new instance of the Switch class.
Declaration
public Switch(DeviceConfiguration configuration)
Parameters
|
Improve this Doc
View Source
Switch(DeviceConfiguration, ILogger)
Initializes a new instance of the Switch class.
Declaration
public Switch(DeviceConfiguration configuration, ILogger logger)
Parameters
|
Improve this Doc
View Source
Switch(DeviceConfiguration, IClientTransactionIdGenerator)
Initializes a new instance of the Switch class.
Declaration
public Switch(DeviceConfiguration configuration, IClientTransactionIdGenerator clientTransactionIdGenerator)
Parameters
|
Improve this Doc
View Source
Switch(DeviceConfiguration, IClientTransactionIdGenerator, ILogger)
Initializes a new instance of the Switch class.
Declaration
public Switch(DeviceConfiguration configuration, IClientTransactionIdGenerator clientTransactionIdGenerator, ILogger logger)
Parameters
Properties
|
Improve this Doc
View Source
DeviceType
Declaration
protected override DeviceType DeviceType { get; }
Property Value
Overrides
ES.Ascom.Alpaca.Client.Devices.DeviceBase.DeviceType
Methods
|
Improve this Doc
View Source
CanWrite(Int32)
Declaration
public bool CanWrite(int id)
Parameters
Type |
Name |
Description |
System.Int32 |
id |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
CanWriteAsync(Int32)
Declaration
public Task<bool> CanWriteAsync(int id)
Parameters
Type |
Name |
Description |
System.Int32 |
id |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<System.Boolean> |
|
|
Improve this Doc
View Source
GetMaxSwitch()
Declaration
public int GetMaxSwitch()
Returns
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
GetMaxSwitchAsync()
Declaration
public Task<int> GetMaxSwitchAsync()
Returns
Type |
Description |
System.Threading.Tasks.Task<System.Int32> |
|
|
Improve this Doc
View Source
GetMaxSwitchValue(Int32)
Declaration
public double GetMaxSwitchValue(int id)
Parameters
Type |
Name |
Description |
System.Int32 |
id |
|
Returns
Type |
Description |
System.Double |
|
|
Improve this Doc
View Source
GetMaxSwitchValueAsync(Int32)
Declaration
public Task<double> GetMaxSwitchValueAsync(int id)
Parameters
Type |
Name |
Description |
System.Int32 |
id |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<System.Double> |
|
|
Improve this Doc
View Source
GetMinSwitchValue(Int32)
Declaration
public double GetMinSwitchValue(int id)
Parameters
Type |
Name |
Description |
System.Int32 |
id |
|
Returns
Type |
Description |
System.Double |
|
|
Improve this Doc
View Source
GetMinSwitchValueAsync(Int32)
Declaration
public Task<double> GetMinSwitchValueAsync(int id)
Parameters
Type |
Name |
Description |
System.Int32 |
id |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<System.Double> |
|
|
Improve this Doc
View Source
GetSwitch(Int32)
Declaration
public bool GetSwitch(int id)
Parameters
Type |
Name |
Description |
System.Int32 |
id |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
GetSwitchAsync(Int32)
Declaration
public Task<bool> GetSwitchAsync(int id)
Parameters
Type |
Name |
Description |
System.Int32 |
id |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<System.Boolean> |
|
|
Improve this Doc
View Source
GetSwitchDescription(Int32)
Declaration
public string GetSwitchDescription(int id)
Parameters
Type |
Name |
Description |
System.Int32 |
id |
|
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
GetSwitchDescriptionAsync(Int32)
Declaration
public Task<string> GetSwitchDescriptionAsync(int id)
Parameters
Type |
Name |
Description |
System.Int32 |
id |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<System.String> |
|
|
Improve this Doc
View Source
GetSwitchName(Int32)
Declaration
public string GetSwitchName(int id)
Parameters
Type |
Name |
Description |
System.Int32 |
id |
|
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
GetSwitchNameAsync(Int32)
Declaration
public Task<string> GetSwitchNameAsync(int id)
Parameters
Type |
Name |
Description |
System.Int32 |
id |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<System.String> |
|
|
Improve this Doc
View Source
GetSwitchStep(Int32)
Declaration
public double GetSwitchStep(int id)
Parameters
Type |
Name |
Description |
System.Int32 |
id |
|
Returns
Type |
Description |
System.Double |
|
|
Improve this Doc
View Source
GetSwitchStepAsync(Int32)
Declaration
public Task<double> GetSwitchStepAsync(int id)
Parameters
Type |
Name |
Description |
System.Int32 |
id |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<System.Double> |
|
|
Improve this Doc
View Source
GetSwitchValue(Int32)
Declaration
public double GetSwitchValue(int id)
Parameters
Type |
Name |
Description |
System.Int32 |
id |
|
Returns
Type |
Description |
System.Double |
|
|
Improve this Doc
View Source
GetSwitchValueAsync(Int32)
Declaration
public Task<double> GetSwitchValueAsync(int id)
Parameters
Type |
Name |
Description |
System.Int32 |
id |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<System.Double> |
|
|
Improve this Doc
View Source
SetSwitch(Int32, Boolean)
Declaration
public void SetSwitch(int id, bool state)
Parameters
Type |
Name |
Description |
System.Int32 |
id |
|
System.Boolean |
state |
|
|
Improve this Doc
View Source
SetSwitchAsync(Int32, Boolean)
Declaration
public Task SetSwitchAsync(int id, bool state)
Parameters
Type |
Name |
Description |
System.Int32 |
id |
|
System.Boolean |
state |
|
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
|
Improve this Doc
View Source
SetSwitchName(Int32, String)
Declaration
public void SetSwitchName(int id, string name)
Parameters
Type |
Name |
Description |
System.Int32 |
id |
|
System.String |
name |
|
|
Improve this Doc
View Source
SetSwitchNameAsync(Int32, String)
Declaration
public Task SetSwitchNameAsync(int id, string name)
Parameters
Type |
Name |
Description |
System.Int32 |
id |
|
System.String |
name |
|
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
|
Improve this Doc
View Source
SetSwitchValue(Int32, Double)
Declaration
public void SetSwitchValue(int id, double value)
Parameters
Type |
Name |
Description |
System.Int32 |
id |
|
System.Double |
value |
|
|
Improve this Doc
View Source
SetSwitchValueAsync(Int32, Double)
Declaration
public Task SetSwitchValueAsync(int id, double value)
Parameters
Type |
Name |
Description |
System.Int32 |
id |
|
System.Double |
value |
|
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
Implements