Skip to content

Commit 8cfd0da

Browse files
authored
Merge pull request #3 from MaheshVcsoft/codeCleanup
Code cleanup - Standardized Code
2 parents 0e3da25 + 48eaacc commit 8cfd0da

5 files changed

Lines changed: 544 additions & 574 deletions

File tree

TuyaKeyExtractor/ExtractedKey.cs

Lines changed: 29 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,34 @@
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.
72
namespace TuyaKeyExtractor
83
{
4+
/// <summary>
5+
/// Object/Model to hold the Extracted Key
6+
/// </summary>
7+
///
8+
public class ExtractedKey
9+
{
10+
public ExtractedKey ()
11+
{
12+
}
913

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+
}
2720

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+
}
4134
}

0 commit comments

Comments
 (0)