public void DeviceStateChangedHandler() { var doc = new APLDocument(); var smartMotion = new SmartMotionExtension("SmartMotion"); smartMotion.OnDeviceStateChanged(doc, null); Assert.True(doc.Handlers.ContainsKey("SmartMotion:OnDeviceStateChanged")); }
public void SmartMotion() { var smartMotion = new SmartMotionExtension("SmartMotion"); var doc = new APLDocument(APLDocumentVersion.V1_4); doc.Extensions.Value.Add(smartMotion); doc.Settings = new APLDocumentSettings(); doc.Settings.Add(smartMotion.Name, new SmartMotionSettings { DeviceStateName = "MyDeviceState", WakeWordResponse = WakeWordResponse.FollowOnWakeWord }); Assert.True(Utility.CompareJson(doc, "ExtensionSmartMotion.json")); }
public static GoToCenterCommand For(SmartMotionExtension extension) { return(new GoToCenterCommand(extension.Name)); }
public static StopMotionCommand For(SmartMotionExtension extension) { return(new StopMotionCommand(extension.Name)); }
public static TurnToPrimaryUserCommand For(SmartMotionExtension extension) { return(new TurnToPrimaryUserCommand(extension.Name)); }