mirror of
https://github.com/excaliburpartners/OmniLinkBridge
synced 2024-12-23 11:12:24 +00:00
31 lines
817 B
C#
31 lines
817 B
C#
|
using HAI_Shared;
|
|||
|
using OmniLinkBridge.OmniLink;
|
|||
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.Linq;
|
|||
|
using System.Text;
|
|||
|
using System.Threading.Tasks;
|
|||
|
|
|||
|
namespace OmniLinkBridgeTest.Mock
|
|||
|
{
|
|||
|
class MockOmniLinkII : IOmniLinkII
|
|||
|
{
|
|||
|
public clsHAC Controller { get; private set; }
|
|||
|
|
|||
|
public event EventHandler<SendCommandEventArgs> OnSendCommand;
|
|||
|
|
|||
|
public MockOmniLinkII()
|
|||
|
{
|
|||
|
Controller = new clsHAC();
|
|||
|
Controller.Model = enuModel.OMNI_PRO_II;
|
|||
|
Controller.TempFormat = enuTempFormat.Fahrenheit;
|
|||
|
}
|
|||
|
|
|||
|
public bool SendCommand(enuUnitCommand Cmd, byte Par, ushort Pr2)
|
|||
|
{
|
|||
|
OnSendCommand?.Invoke(null, new SendCommandEventArgs() { Cmd = Cmd, Par = Par, Pr2 = Pr2 });
|
|||
|
return true;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|