fun registerDevice(device: Device): <ERROR CLASS>
Register device token to API service via async/await.
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.