File and class renaming

This commit is contained in:
2015-01-16 18:06:47 -05:00
parent 47db415506
commit be11e8c8cb
17 changed files with 178 additions and 228 deletions

27
Device.cs Normal file
View File

@@ -0,0 +1,27 @@
namespace OneWireAPI
{
public class Device
{
protected Session Session;
protected Identifier DeviceId;
public Device(Session session, short[] rawId)
{
// Store the session
Session = session;
// Create a new identifier and give it the ID supplied
DeviceId = new Identifier(rawId);
}
public Identifier Id
{
get { return DeviceId; }
}
public int Family
{
get { return DeviceId.Family; }
}
}
}