18 lines
593 B
Kotlin
18 lines
593 B
Kotlin
package com.gh.common.chain
|
|
|
|
import android.content.Context
|
|
import com.gh.common.dialog.CertificationDialog
|
|
import com.gh.gamecenter.feature.entity.GameEntity
|
|
|
|
class CertificationHandler : DownloadChainHandler() {
|
|
|
|
override fun handleRequest(context: Context, gameEntity: GameEntity, asVGame: Boolean) {
|
|
CertificationDialog.showCertificationDialog(context, gameEntity) {
|
|
if (hasNext()) {
|
|
getNext()?.handleRequest(context, gameEntity, asVGame)
|
|
} else {
|
|
processEndCallback?.invoke(asVGame, null)
|
|
}
|
|
}
|
|
}
|
|
} |