Commit before merge. Updates to source device usage triggers based on room source routing

This commit is contained in:
Neil Dorin
2017-08-24 15:43:12 -06:00
parent 85c2c448d1
commit 2fd4bbc8b3
13 changed files with 352 additions and 160 deletions

View File

@@ -3,6 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
using Crestron.SimplSharp;
using PepperDash.Core;
namespace PepperDash.Essentials.Core
{
@@ -70,6 +71,7 @@ namespace PepperDash.Essentials.Core
if (handler != null)
{
Debug.Console(1, "Device Usage Ended at {1}. In use for {2} minutes.", UsageEndTime, timeUsed.Minutes);
handler(this, new DeviceUsageEventArgs() { UsageEndTime = UsageEndTime, MinutesUsed = timeUsed.Minutes });
}
}