|
1 | | -using System; |
2 | | -using System.Collections.Generic; |
3 | | -using System.Text; |
4 | | - |
5 | | - |
6 | | -// Class to hold information on an extracted key. Currently only holding three bits of information. |
| 1 | +// Class to hold information on an extracted key. Currently only holding three bits of information. |
7 | 2 | namespace TuyaKeyExtractor |
8 | 3 | { |
| 4 | + /// <summary> |
| 5 | + /// Object/Model to hold the Extracted Key |
| 6 | + /// </summary> |
| 7 | + /// |
| 8 | + public class ExtractedKey |
| 9 | + { |
| 10 | + public ExtractedKey () |
| 11 | + { |
| 12 | + } |
9 | 13 |
|
10 | | - /// <summary> |
11 | | - /// Object/Model to hold the Extracted Key |
12 | | - /// </summary> |
13 | | - /// |
14 | | - public class ExtractedKey |
15 | | - { |
16 | | - public ExtractedKey() |
17 | | - { |
18 | | - |
19 | | - } |
20 | | - |
21 | | - public ExtractedKey(string deviceName, string localKey, string deviceId) |
22 | | - { |
23 | | - this.DeviceName = deviceName; |
24 | | - this.LocalKey = localKey; |
25 | | - this.DeviceID = deviceId; |
26 | | - } |
| 14 | + public ExtractedKey ( string deviceName, string localKey, string deviceId ) |
| 15 | + { |
| 16 | + this.DeviceName = deviceName; |
| 17 | + this.LocalKey = localKey; |
| 18 | + this.DeviceID = deviceId; |
| 19 | + } |
27 | 20 |
|
28 | | - /// <summary> |
29 | | - /// The name of the Device as listed in the Smart Life App. |
30 | | - /// </summary> |
31 | | - public string DeviceName { get; set; } |
32 | | - /// <summary> |
33 | | - /// The Localy Key which will be used to control the device locally. |
34 | | - /// </summary> |
35 | | - public string LocalKey { get; set; } |
36 | | - /// <summary> |
37 | | - /// The ID of the device as listed in the Smart Life App. |
38 | | - /// </summary> |
39 | | - public string DeviceID { get; set; } |
40 | | - } |
| 21 | + /// <summary> |
| 22 | + /// The name of the Device as listed in the Smart Life App. |
| 23 | + /// </summary> |
| 24 | + public string DeviceName { get; set; } |
| 25 | + /// <summary> |
| 26 | + /// The Localy Key which will be used to control the device locally. |
| 27 | + /// </summary> |
| 28 | + public string LocalKey { get; set; } |
| 29 | + /// <summary> |
| 30 | + /// The ID of the device as listed in the Smart Life App. |
| 31 | + /// </summary> |
| 32 | + public string DeviceID { get; set; } |
| 33 | + } |
41 | 34 | } |
0 commit comments