Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
65 changes: 29 additions & 36 deletions TuyaKeyExtractor/ExtractedKey.cs
Original file line number Diff line number Diff line change
@@ -1,41 +1,34 @@
using System;
using System.Collections.Generic;
using System.Text;


// Class to hold information on an extracted key. Currently only holding three bits of information.
// Class to hold information on an extracted key. Currently only holding three bits of information.
namespace TuyaKeyExtractor
{
/// <summary>
/// Object/Model to hold the Extracted Key
/// </summary>
///
public class ExtractedKey
{
public ExtractedKey ()
{
}

/// <summary>
/// Object/Model to hold the Extracted Key
/// </summary>
///
public class ExtractedKey
{
public ExtractedKey()
{

}

public ExtractedKey(string deviceName, string localKey, string deviceId)
{
this.DeviceName = deviceName;
this.LocalKey = localKey;
this.DeviceID = deviceId;
}
public ExtractedKey ( string deviceName, string localKey, string deviceId )
{
this.DeviceName = deviceName;
this.LocalKey = localKey;
this.DeviceID = deviceId;
}

/// <summary>
/// The name of the Device as listed in the Smart Life App.
/// </summary>
public string DeviceName { get; set; }
/// <summary>
/// The Localy Key which will be used to control the device locally.
/// </summary>
public string LocalKey { get; set; }
/// <summary>
/// The ID of the device as listed in the Smart Life App.
/// </summary>
public string DeviceID { get; set; }
}
/// <summary>
/// The name of the Device as listed in the Smart Life App.
/// </summary>
public string DeviceName { get; set; }
/// <summary>
/// The Localy Key which will be used to control the device locally.
/// </summary>
public string LocalKey { get; set; }
/// <summary>
/// The ID of the device as listed in the Smart Life App.
/// </summary>
public string DeviceID { get; set; }
}
}
Loading