using System; using System.Collections.Generic; using System.Text; namespace DirectUSB.Attributes { public class Attribute { #region Declarations private short _type; private bool _valid; private byte[] _data; public enum AttributeType { VariableSize = 0x0001, VariableType = 0x0002, ArchivedStatus = 0x0003 }; #endregion #region Constructors / Teardown internal Attribute(short type) { _type = type; //Assume valid for now _valid = true; } public Attribute(short type, bool valid, byte[] data) { _type = type; _valid = valid; _data = data; } #endregion #region Public Properties public AttributeType Type { get { return (AttributeType)_type; } } public byte[] Data { get { return _data; } } #endregion } }