// Path: baseble/src/main/java/com/vise/baseble/model/BluetoothLeDeviceStore.java
// public class BluetoothLeDeviceStore {
// 
//     private final Map<String, BluetoothLeDevice> mDeviceMap;
// 
//     public BluetoothLeDeviceStore() {
//         mDeviceMap = new HashMap<>();
//     }
// 
//     public void addDevice(BluetoothLeDevice device) {
//         if (device == null) {
//             return;
//         }
//         if (mDeviceMap.containsKey(device.getAddress())) {
//             mDeviceMap.get(device.getAddress()).updateRssiReading(device.getTimestamp(), device.getRssi());
//         } else {
//             mDeviceMap.put(device.getAddress(), device);
//         }
//     }
// 
//     public void removeDevice(BluetoothLeDevice device) {
//         if (device == null) {
//             return;
//         }
//         if (mDeviceMap.containsKey(device.getAddress())) {
//             mDeviceMap.remove(device.getAddress());
//         }
//     }
// 
//     public void clear() {
//         mDeviceMap.clear();
//     }
// 
//     public Map<String, BluetoothLeDevice> getDeviceMap() {
//         return mDeviceMap;
//     }
// 
//     public List<BluetoothLeDevice> getDeviceList() {
//         final List<BluetoothLeDevice> methodResult = new ArrayList<>(mDeviceMap.values());
// 
//         Collections.sort(methodResult, new Comparator<BluetoothLeDevice>() {
// 
//             @Override
//             public int compare(final BluetoothLeDevice arg0, final BluetoothLeDevice arg1) {
//                 return arg0.getAddress().compareToIgnoreCase(arg1.getAddress());
//             }
//         });
// 
//         return methodResult;
//     }
// 
//     @Override
//     public String toString() {
//         return "BluetoothLeDeviceStore{" +
//                 "DeviceList=" + getDeviceList() +
//                 '}';
//     }
// }


import com.vise.baseble.model.BluetoothLeDeviceStore;
import com.vise.xsnow.event.IEvent;
package com.vise.bledemo.event;


public class ScanEvent implements IEvent {
    private boolean isScanTimeout;
    private boolean isScanFinish;
// Path: baseble/src/main/java/com/vise/baseble/model/BluetoothLeDeviceStore.java
// public class BluetoothLeDeviceStore {
// 
//     private final Map<String, BluetoothLeDevice> mDeviceMap;
// 
//     public BluetoothLeDeviceStore() {
//         mDeviceMap = new HashMap<>();
//     }
// 
//     public void addDevice(BluetoothLeDevice device) {
//         if (device == null) {
//             return;
//         }
//         if (mDeviceMap.containsKey(device.getAddress())) {
//             mDeviceMap.get(device.getAddress()).updateRssiReading(device.getTimestamp(), device.getRssi());
//         } else {
//             mDeviceMap.put(device.getAddress(), device);
//         }
//     }
// 
//     public void removeDevice(BluetoothLeDevice device) {
//         if (device == null) {
//             return;
//         }
//         if (mDeviceMap.containsKey(device.getAddress())) {
//             mDeviceMap.remove(device.getAddress());
//         }
//     }
// 
//     public void clear() {
//         mDeviceMap.clear();
//     }
// 
//     public Map<String, BluetoothLeDevice> getDeviceMap() {
//         return mDeviceMap;
//     }
// 
//     public List<BluetoothLeDevice> getDeviceList() {
//         final List<BluetoothLeDevice> methodResult = new ArrayList<>(mDeviceMap.values());
// 
//         Collections.sort(methodResult, new Comparator<BluetoothLeDevice>() {
// 
//             @Override
//             public int compare(final BluetoothLeDevice arg0, final BluetoothLeDevice arg1) {
//                 return arg0.getAddress().compareToIgnoreCase(arg1.getAddress());
//             }
//         });
// 
//         return methodResult;
//     }
// 
//     @Override
//     public String toString() {
//         return "BluetoothLeDeviceStore{" +
//                 "DeviceList=" + getDeviceList() +
//                 '}';
//     }
// }


// Path: newapp/src/main/java/com/vise/bledemo/event/ScanEvent.java
import com.vise.baseble.model.BluetoothLeDeviceStore;
import com.vise.xsnow.event.IEvent;

package com.vise.bledemo.event;


public class ScanEvent implements IEvent {
    private boolean isScanTimeout;
    private boolean isScanFinish;
    private BluetoothLeDeviceStore bluetoothLeDeviceStore;