示例#1
0
        internal static BluetoothDeviceConnectionData ConvertStructToConnectionData(BluetoothDeviceConnectionStruct structInfo)
        {
            BluetoothDeviceConnectionData resultData = new BluetoothDeviceConnectionData();

            resultData.RemoteAddress = structInfo.Address;
            resultData.Link          = structInfo.LinkType;
            resultData.Reason        = structInfo.DisconnectReason;
            return(resultData);
        }
示例#2
0
 internal DeviceConnectionStateChangedEventArgs(bool isConnected, BluetoothDeviceConnectionData connectionData)
 {
     _isConnected    = isConnected;
     _connectionData = connectionData;
 }