vncore / com.venuenext.vncore.service / DeviceService / registerDevice

registerDevice

fun registerDevice(device: Device): <ERROR CLASS>

Register device token to API service via async/await.

Parameters

device - the Device request.

Return
awaits for async promise to return response.

fun registerDevice(device: Device, success: (result: Device?) -> Unit, failure: (Exception) -> Unit): Unit

Register device token to API service via callbacks.

Parameters

device - the Device request.

success - the success callback.

failure - the failure callback.