mirror of
https://github.com/ckaczor/OneWireAPI.git
synced 2026-01-14 01:25:40 -05:00
File and class renaming
This commit is contained in:
27
Device.cs
Normal file
27
Device.cs
Normal 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; }
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user