TestsRouterImp.kt 1.02 KB
Newer Older
konghaorui committed
1 2 3 4
package com.yidianling.tests.router

import android.app.Activity
import android.content.Intent
5 6 7
import com.ydl.webview.H5Params
import com.ydl.webview.NewH5Activity
import com.ydl.ydlcommon.base.BaseApp
konghaorui committed
8
import com.ydl.ydlcommon.base.config.HttpConfig
konghaorui committed
9 10 11 12 13
import com.yidianling.router.tests.ITestsRouter

class TestsRouterImp : ITestsRouter {

    override fun testH5Result(testResultId: String) {
14 15
        val h5Params = H5Params(HttpConfig.MH5_URL+"ceshi/result/"+testResultId, null)
        NewH5Activity.start(BaseApp.getApp(),h5Params)
konghaorui committed
16 17 18
    }

    override fun testDetailH5(testId: String) {
19 20
        val h5Params = H5Params(HttpConfig.MH5_URL+"ceshi/"+testId, null)
        NewH5Activity.start(BaseApp.getApp(),h5Params)
konghaorui committed
21 22 23
    }

    override fun testDetailIntent(activity: Activity, testId: Int): Intent {
konghaorui committed
24
        return Intent()
konghaorui committed
25 26 27
    }

    override fun testResultIntent(activity: Activity, testResultId: Int): Intent {
konghaorui committed
28
        return Intent()
konghaorui committed
29 30 31
    }

    override fun testAnswerIntent(activity: Activity): Intent {
konghaorui committed
32
        return Intent()
konghaorui committed
33 34 35
    }

}