mirror of
https://github.com/ckaczor/OneWireAPI.git
synced 2026-01-14 01:25:40 -05:00
24 lines
482 B
C#
24 lines
482 B
C#
namespace OneWireAPI
|
|
{
|
|
public class Device
|
|
{
|
|
protected Session Session;
|
|
|
|
public Identifier Id { get; protected set; }
|
|
|
|
public Device(Session session, short[] rawId)
|
|
{
|
|
// Store the session
|
|
Session = session;
|
|
|
|
// Create a new identifier and give it the ID supplied
|
|
Id = new Identifier(rawId);
|
|
}
|
|
|
|
public int Family
|
|
{
|
|
get { return Id.Family; }
|
|
}
|
|
}
|
|
}
|