This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
update ac | |
set ac.lastUpdated = r.dateCreated, | |
ac.dateUsed = r.dateCreated, | |
ac.registrationId = r.Id, | |
ac.isEnabled = 0 | |
from activationCode ac, | |
registration r | |
where ac.[name] = '0895-C5720785507' | |
and r.Id = 13695 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
export default class RegistrationForm extends React.Component { | |
constructor(props) { | |
super(props); | |
this.state = { | |
model: { | |
firstName: '', | |
lastName: '' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using MLS.HA.DeviceController.Common.Gui; | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Windows; | |
using System.Windows.Controls; | |
using System.Windows.Data; | |
using System.Windows.Documents; | |
using System.Windows.Input; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<l:PluginGuiWindow x:Class="MyPlugin.PluginSetup" | |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | |
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | |
mc:Ignorable="d" | |
Title="MyPlugin Setup" | |
xmlns:l="clr-namespace:MLS.HA.DeviceController.Common.Gui;assembly=MLS.HA.DeviceController.Common" | |
Height="400" Width="400"> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public bool executeSpecialCommand(object providerDeviceId, SpecialCommand command, object value) { | |
try { | |
if (command == SpecialCommand.SetDeviceXYColor) { | |
var split = value.ToString().Split('|'); | |
Double x, y; | |
int brightness; | |
Double.TryParse(split[0], out x); | |
Double.TryParse(split[1], out y); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"__type": "Thermostat:#MLS.HA.DeviceController.Common.Device.ZWave", | |
"as": true, | |
"autoToggleOff": false, | |
"autoToggleSeconds": 0, | |
"cs": true, | |
"deviceId": "5a8b9ea1-23d0-4ced-9d22-d899959eccd5", | |
"deviceName": "G Thermostat", | |
"deviceType": 3, | |
"displayOrder": 0, |