Coverage Summary for Class: MindboxHuawei (cloud.mindbox.mindbox_huawei)

Class Class, % Method, % Branch, % Line, % Instruction, %
MindboxHuawei 100% (1/1) 50% (2/4) 50% (2/4) 50% (8/16)


 package cloud.mindbox.mindbox_huawei
 
 import cloud.mindbox.mobile_sdk.logger.MindboxLogger
 import cloud.mindbox.mobile_sdk.pushes.MindboxPushConverter
 import cloud.mindbox.mobile_sdk.pushes.MindboxPushService
 import cloud.mindbox.mobile_sdk.pushes.PushServiceHandler
 import cloud.mindbox.mobile_sdk.utils.ExceptionHandler
 import com.huawei.hms.push.RemoteMessage
 
 private typealias MindboxPushAction = cloud.mindbox.mobile_sdk.pushes.PushAction
 
 /**
  * An object to use when choosing push provider in Mindbox.initPushServices or Mindbox.init.
  * Represents HCM
  * */
 public object MindboxHuawei : MindboxPushService, MindboxPushConverter<RemoteMessage>() {
 
     override val tag: String = "HCM"
 
     override fun getServiceHandler(
         logger: MindboxLogger,
         exceptionHandler: ExceptionHandler,
     ): PushServiceHandler = HuaweiServiceHandler(logger, exceptionHandler)
 
     override fun toString(): String = tag
 
     override fun RemoteMessage.pushData(): Map<String, String> = dataOfMap
 }