app
androidJvm
app
/
com.iomt.android.room.devicechar
/
DeviceCharacteristicLinkRepository
Device
Characteristic
Link
Repository
class
DeviceCharacteristicLinkRepository
(
context
:
Context
)
Repository for
DeviceCharacteristicLinkEntity
Members
Constructors
Device
Characteristic
Link
Repository
Link copied to clipboard
constructor
(
context
:
Context
)
Functions
delete
Link copied to clipboard
suspend
fun
delete
(
deviceCharacteristicLinkEntity
:
DeviceCharacteristicLinkEntity
)
get
Device
Mac
And
Characteristic
Name
By
Link
Id
Link copied to clipboard
suspend
fun
getDeviceMacAndCharacteristicNameByLinkId
(
linkEntityId
:
Long
)
:
Pair
<
String
,
String
>
?
get
Link
By
Device
Mac
Link copied to clipboard
suspend
fun
getLinkByDeviceMac
(
macAddress
:
String
)
:
DeviceCharacteristicLink
?
insert
Link copied to clipboard
suspend
fun
insert
(
deviceCharacteristicLinkEntity
:
DeviceCharacteristicLinkEntity
)
:
Long
insert
All
If
Not
Present
Link copied to clipboard
suspend
fun
insertAllIfNotPresent
(
entities
:
List
<
DeviceCharacteristicLinkEntity
>
)
:
List
<
Long
>
update
Link copied to clipboard
suspend
fun
update
(
deviceCharacteristicLinkEntity
:
DeviceCharacteristicLinkEntity
)