Exposed timestamp
This commit is contained in:
@@ -40,6 +40,10 @@ public class BluetoothLeDevice implements Parcelable{
|
|||||||
return new BluetoothLeDevice[size];
|
return new BluetoothLeDevice[size];
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
public BluetoothLeDevice(BluetoothDevice device, int rssi, byte[] scanRecord){
|
||||||
|
this(device, rssi, scanRecord, 0);
|
||||||
|
}
|
||||||
|
|
||||||
public BluetoothLeDevice(BluetoothDevice device, int rssi, byte[] scanRecord, long timestamp){
|
public BluetoothLeDevice(BluetoothDevice device, int rssi, byte[] scanRecord, long timestamp){
|
||||||
mDevice = device;
|
mDevice = device;
|
||||||
@@ -49,10 +53,6 @@ public class BluetoothLeDevice implements Parcelable{
|
|||||||
mTimestamp = timestamp;
|
mTimestamp = timestamp;
|
||||||
}
|
}
|
||||||
|
|
||||||
public BluetoothLeDevice(BluetoothDevice device, int rssi, byte[] scanRecord){
|
|
||||||
this(device, rssi, scanRecord, 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
private BluetoothLeDevice(Parcel in) {
|
private BluetoothLeDevice(Parcel in) {
|
||||||
final Bundle b = in.readBundle(getClass().getClassLoader());
|
final Bundle b = in.readBundle(getClass().getClassLoader());
|
||||||
|
|
||||||
@@ -119,6 +119,10 @@ public class BluetoothLeDevice implements Parcelable{
|
|||||||
return mScanRecord;
|
return mScanRecord;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public long getTimestamp(){
|
||||||
|
return mTimestamp;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int hashCode() {
|
public int hashCode() {
|
||||||
final int prime = 31;
|
final int prime = 31;
|
||||||
|
|||||||
Reference in New Issue
Block a user