示例#1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="serial"></param>
        /// <param name="state"></param>
        public Device(String serial, DeviceState state)
        {
            this.SerialNumber    = serial;
            this.State           = state;
            MountPoints          = new Dictionary <String, MountPoint> ( );
            Properties           = new Dictionary <string, string> ( );
            EnvironmentVariables = new Dictionary <string, string> ( );
            Clients    = new List <IClient> ( );
            FileSystem = new FileSystem(this);
            BusyBox    = new BusyBox(this);

            RetrieveDeviceInfo( );
        }
示例#2
0
文件: Device.cs 项目: satanmp/madb-1
        /// <summary>
        /// Initializes a new instance of the <see cref="Device"/> class.
        /// </summary>
        /// <param name="serial">The serial.</param>
        /// <param name="state">The state.</param>
        /// <param name="model">The model.</param>
        /// <param name="product">The product.</param>
        /// <param name="device">The device.</param>
        public Device(string serial, DeviceState state, string model, string product, string device)
        {
            this.SerialNumber    = serial;
            this.State           = state;
            MountPoints          = new Dictionary <String, MountPoint> ( );
            Properties           = new Dictionary <string, string> ( );
            EnvironmentVariables = new Dictionary <string, string> ( );
            Clients    = new List <IClient> ( );
            FileSystem = new FileSystem(this);
            BusyBox    = new BusyBox(this);

            Model          = model;
            Product        = product;
            DeviceProperty = device;

            RetrieveDeviceInfo( );
        }
示例#3
0
文件: BusyBox.cs 项目: sttt/madb
 public BusyBoxCommandsReceiver(BusyBox bb)
     : base( )
 {
     TrimLines = true;
     BusyBox   = bb;
 }
示例#4
0
        /// <summary>
        /// Initializes a new instance of the <see cref="Device"/> class.
        /// </summary>
        /// <param name="serial">The serial.</param>
        /// <param name="state">The state.</param>
        /// <param name="model">The model.</param>
        /// <param name="product">The product.</param>
        /// <param name="device">The device.</param>
        public Device(string serial, DeviceState state, string model, string product, string device)
        {
            this.SerialNumber = serial;
            this.State = state;
            MountPoints = new Dictionary<String, MountPoint>();
            Properties = new Dictionary<string, string>();
            EnvironmentVariables = new Dictionary<string, string>();
            Clients = new List<IClient>();
            FileSystem = new FileSystem(this);
            BusyBox = new BusyBox(this);

            Model = model;
            Product = product;
            DeviceProperty = device;

            RetrieveDeviceInfo();
        }
示例#5
0
文件: BusyBox.cs 项目: ngzero/madb
 public BusyBoxCommandsReceiver( BusyBox bb )
     : base()
 {
     TrimLines = true;
     BusyBox = bb;
 }
示例#6
0
        /// <summary>
        /// 
        /// </summary>
        /// <param name="serial"></param>
        /// <param name="state"></param>
        public Device( String serial, DeviceState state )
        {
            this.SerialNumber = serial;
            this.State = state;
            MountPoints = new Dictionary<String, MountPoint> ( );
            Properties = new Dictionary<string, string> ( );
            EnvironmentVariables = new Dictionary<string, string> ( );
            Clients = new List<IClient> ( );
            FileSystem = new FileSystem ( this );
            BusyBox = new BusyBox ( this );

            RetrieveDeviceInfo ( );
        }