示例#1
0
        internal static Device FromDataString(string data, AdbClient client)
        {
            Match m = Regex.Match(data);

            if (m.Success)
            {
                return(new Device(client)
                {
                    Serial = m.Groups["serial"].Value,
                    State = m.Groups["state"].Value,
                    Model = m.Groups["model"].Value,
                    Product = m.Groups["product"].Value,
                    Name = m.Groups["device"].Value,
                    Features = m.Groups["features"].Value,
                    Usb = m.Groups["usb"].Value,
                    TransportId = m.Groups["transport_id"].Value
                });
            }
            return(null);
        }
示例#2
0
 internal Device(AdbClient client)
 {
     _client = client;
 }