=== Summary: 675 files | 7 generated | 484 fresh | 4605 untracked | 4268 adopted | 355 marked | 466 validated-ok | 2+0 stale (sig+body) | 0 skipped | 0 failed | elapsed 11:08:11.442 (40091.44s) ===
This commit is contained in:
@@ -7,6 +7,7 @@ namespace adas_core.module.LightBeacons.Devices;
|
||||
/// </summary>
|
||||
/// <param name="host">The host address of the LightBeacon device. This is typically the IP address or hostname used to connect to the device for controlling its LED states.</param>
|
||||
/// <param name="password">The password used for authenticating with the LightBeacon device. This is required to establish a connection and control the device's LED states securely.</param>
|
||||
/// <!-- aidoc:v1 sig=d775c30 -->
|
||||
public abstract class LightBeaconAbstract(string host, string password)
|
||||
{
|
||||
/// <summary>
|
||||
@@ -23,24 +24,28 @@ public abstract class LightBeaconAbstract(string host, string password)
|
||||
/// Abstract method to set the LightBeacon device to Code Blue state. This method should be implemented by each specific LightBeacon model to control the LED state accordingly.
|
||||
/// </summary>
|
||||
/// <param name="entry">An object parameter that can be used to pass additional information or context needed for setting the LED state.</param>
|
||||
/// <!-- aidoc:v1 sig=0d7f136 -->
|
||||
public abstract void CodeBlue(object entry);
|
||||
|
||||
/// <summary>
|
||||
/// Abstract method to set the LightBeacon device to Code Red state. This method should be implemented by each specific LightBeacon model to control the LED state accordingly.
|
||||
/// </summary>
|
||||
/// <param name="entry">An object parameter that can be used to pass additional information or context needed for setting the LED state.</param>
|
||||
/// <!-- aidoc:v1 sig=f600697 -->
|
||||
public abstract void CodeRed(object entry);
|
||||
|
||||
/// <summary>
|
||||
/// Abstract method to set the LightBeacon device to Code Yellow state. This method should be implemented by each specific LightBeacon model to control the LED state accordingly.
|
||||
/// </summary>
|
||||
/// <param name="entry">An object parameter that can be used to pass additional information or context needed for setting the LED state.</param>
|
||||
/// <!-- aidoc:v1 sig=2ed3bae -->
|
||||
public abstract void CodeYellow(object entry);
|
||||
|
||||
/// <summary>
|
||||
/// Abstract method to power off the LED of the LightBeacon device. This method should be implemented by each specific LightBeacon model to control the LED state accordingly.
|
||||
/// </summary>
|
||||
/// <param name="entry">An object parameter that can be used to pass additional information or context needed for setting the LED state.</param>
|
||||
/// <!-- aidoc:v1 sig=70c2fef -->
|
||||
public abstract void PowerOffLed(object entry);
|
||||
|
||||
/// <summary>
|
||||
@@ -51,6 +56,7 @@ public abstract class LightBeaconAbstract(string host, string password)
|
||||
/// <param name="host">The host address of the LightBeacon device.</param>
|
||||
/// <param name="password">The password for authenticating with the LightBeacon device.</param>
|
||||
/// <returns>An instance of the specific LightBeacon device, or null if the driver class is not found or cannot be instantiated.</returns>
|
||||
/// <!-- aidoc:v1 sig=93cfab7 body=2607338 -->
|
||||
public static LightBeaconAbstract? GetBeaconDevice(string driver, string host, string password)
|
||||
{
|
||||
var modelType = Type.GetType($"adas_core.Drivers.LightBeacon.{driver}");
|
||||
|
||||
Reference in New Issue
Block a user