Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public bool GetThisThing()
- {
- string response;
- ExecuteCommand(commandGetThisThing, out response);
- bool value = false;
- string[] token = response.Trim().Split(' ');
- int tmpInt = 0;
- if (token.Length < 2 || !int.TryParse(token[1], Styles.Any, Culture.Invariant, out tmpInt))
- {
- throw new DeviceException("Unrecognized Response: " + response);
- }
- else
- {
- return tmpInt == 1;
- }
- }
- public void SetThisThing(bool alertOption)
- {
- string response;
- ExecuteCommand(commandSetThisThing + " " + alertOption.ToString(), out response);
- bool value = false;
- if (response != null)
- {
- }
- else
- {
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement