hc
2023-02-13 e440ec23c5a540cdd3f7464e8779219be6fd3d95
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
package com.rockchip.smart.rockhome.blue;
 
import android.bluetooth.BluetoothDevice;
import android.os.SystemClock;
 
/**
 * Created by GJK on 2018/11/9.
 */
 
public class Device {
    public BluetoothDevice device;
    public int rssi;
    public Long last_scanned;
 
    public Device(BluetoothDevice device, int rssi) {
        this.device = device;
        this.rssi = rssi;
        this.last_scanned = SystemClock.currentThreadTimeMillis();
    }
 
    public BluetoothDevice getDevice() {
        return device;
    }
 
    public void setDevice(BluetoothDevice device) {
        this.device = device;
    }
 
    public int getRssi() {
        return rssi;
    }
 
    public void setRssi(int rssi) {
        this.rssi = rssi;
    }
 
    public Long getLast_scanned() {
        return last_scanned;
    }
 
    public void setLast_scanned(Long last_scanned) {
        this.last_scanned = last_scanned;
    }
}