mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-01-28 20:04:56 +00:00
docs: XML comments for Devices.Common
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
using System.Collections.Generic;
|
||||
using PepperDash.Core;
|
||||
using PepperDash.Essentials.Core;
|
||||
using PepperDash.Essentials.Core.Config;
|
||||
using Serilog.Events;
|
||||
|
||||
namespace PepperDash.Essentials.Devices.Common.SoftCodec
|
||||
{
|
||||
/// <summary>
|
||||
/// Represents a GenericSoftCodecFactory
|
||||
/// </summary>
|
||||
public class GenericSoftCodecFactory : EssentialsDeviceFactory<GenericSoftCodec>
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="GenericSoftCodecFactory"/> class
|
||||
/// </summary>
|
||||
public GenericSoftCodecFactory()
|
||||
{
|
||||
TypeNames = new List<string> { "genericsoftcodec" };
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// BuildDevice method
|
||||
/// </summary>
|
||||
/// <inheritdoc />
|
||||
public override EssentialsDevice BuildDevice(DeviceConfig dc)
|
||||
{
|
||||
Debug.LogMessage(LogEventLevel.Debug, "Attempting to create new Generic SoftCodec Device");
|
||||
|
||||
var props = dc.Properties.ToObject<GenericSoftCodecProperties>();
|
||||
|
||||
return new GenericSoftCodec(dc.Key, dc.Name, props);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user