package com.ym.library.router

import android.content.Intent
import com.ym.commen.router.RounterParam
import com.ym.commen.router.RounterUri
import com.ym.library.MyConstant

/**
 * Created by gaoleichao on 2018/12/8.
 */
interface RounterApi {

    @RounterUri(MyConstant.scheme + "://login")
    fun getIntentActivityLogin(): Intent

    @RounterUri(MyConstant.scheme + "://local_login")
    fun getIntentActivityLocalLogin(): Intent

//    @RounterUri(Constant.scheme + "://web")
//    fun getIntentActivityAdWeb(
//        @RounterParam("title") title: String,
//        @RounterParam("url") url: String
//    ): Intent

    @RounterUri(MyConstant.scheme + "://web")
    fun getIntentActivityWeb(
        @RounterParam("title") title: String,
        @RounterParam("url") url: String,
        @RounterParam("showToolbar") showToolbar: Boolean
    ): Intent

    @RounterUri(MyConstant.scheme + "://nomal_web")
    fun getIntentNomalActivityWeb(
        @RounterParam("title") title: String,
        @RounterParam("url") url: String,
        @RounterParam("showToolbar") showToolbar: Boolean
    ): Intent

    @RounterUri(MyConstant.scheme + "://adshare")
    fun getIntentActivityAdShare(@RounterParam("data") data: String): Intent

    @RounterUri(MyConstant.scheme + "://invite_code")
    fun getIntentActivityInviteCode(): Intent

    @RounterUri(MyConstant.scheme + "://read_and_timer")
    fun getIntentActivityRead(@RounterParam("type") type: String): Intent

    @RounterUri(MyConstant.scheme + "://click_ad")
    fun getIntentActivityTaskNav(@RounterParam("type") type: String): Intent

    @RounterUri(MyConstant.scheme + "://wechat_share")
    fun getIntentActivityAdShareList(): Intent

    @RounterUri(MyConstant.scheme + "://collect")
    fun getIntentActivityCollect(): Intent

    @RounterUri(MyConstant.scheme + "://news_history")
    fun getIntentActivityNewsHistory(): Intent

    @RounterUri(MyConstant.scheme + "://setting")
    fun getIntentActivitySetting(): Intent

    @RounterUri(MyConstant.scheme + "://message")
    fun getIntentActivityMessage(): Intent

    @RounterUri(MyConstant.scheme + "://news_detail")
    fun getIntentActivityNewsDatail(
        @RounterParam("title") title: String,
        @RounterParam("url") url: String,
        @RounterParam("shareUrl") shareUrl: String,
        @RounterParam("images") images: String,
        @RounterParam("tabid") tabid: String
    ): Intent

    @RounterUri(MyConstant.scheme + "://video_detail")
    fun getIntentActivityVideoDatail(
        @RounterParam("videoId") videoId: String,
        @RounterParam("url") url: String,
        @RounterParam("isV2") isV2: String,
        @RounterParam("image") image: String,
        @RounterParam("from") from: String
    ): Intent

    @RounterUri(MyConstant.scheme + "://choice_city")
    fun getIntentActivityChoiceCity(): Intent

    @RounterUri(MyConstant.scheme + "://new_user_withdraw")
    fun getIntentActivityNewUserWithdraw(): Intent

    @RounterUri(MyConstant.scheme + "://withdraw")
    fun getIntentActivityWithdraw(): Intent

    @RounterUri(MyConstant.scheme + "://splash")
    fun getIntentActivitySplash(): Intent

    @RounterUri(MyConstant.scheme + "://main")
    fun getIntentActivityMain(): Intent

    @RounterUri(MyConstant.scheme + "://redpackage")
    fun getIntentActivityRedPackage(): Intent

    @RounterUri(MyConstant.scheme + "://feedback")
    fun getIntentActivityFeedBack(): Intent

    @RounterUri(MyConstant.scheme + "://videoplay")
    fun getIntentActivityVideoPlay(
        @RounterParam("url") url: String,
        @RounterParam("albumId") albumId: String
        ,
        @RounterParam("id") id: String,
        @RounterParam("title") title: String,
        @RounterParam("pid") pid: String,
        @RounterParam(
            "cChannel"
        ) cChannel: String
    ): Intent

    @RounterUri(MyConstant.scheme + "://audioplay")
    fun getIntentActivityAudioPlay(
        @RounterParam("url") url: String,
        @RounterParam("albumId") albumId: String
        ,
        @RounterParam("id") id: String,
        @RounterParam("title") title: String,
        @RounterParam("pid") pid: String,
        @RounterParam("cChannel") cChannel: String,
        @RounterParam("jumpTag") jumpTag: String
    ): Intent

    @RounterUri(MyConstant.scheme + "://search")
    fun getIntentActivitySearch(): Intent

    @RounterUri(MyConstant.scheme + "://history")
    fun getIntentActivityHistory(): Intent


    @RounterUri(MyConstant.scheme + "://starlist")
    fun getIntentActivityStarList(
        @RounterParam("CChannel") url: String,
        @RounterParam("pid") albumId: String,
        @RounterParam("albumId") id: String,
        @RounterParam("name") name: String

    ): Intent

    @RounterUri(MyConstant.scheme + "://gather")
    fun getIntentActivityGather(
        @RounterParam("CChannel") url: String,
        @RounterParam("pid") albumId: String,
        @RounterParam("albumId") id: String,

        @RounterParam("description") description: String,
        @RounterParam("area") area: String,
        @RounterParam("tvYear") tvYear: String,
        @RounterParam("score") score: String,
        @RounterParam("contentType") contentType: String,
        @RounterParam("name") name: String,
        @RounterParam("image") image: String,
        @RounterParam("topVisibleFlag") topVisibleFlag: Boolean,
        @RounterParam("availableMediaNum") availableMediaNum: String,
        @RounterParam("playCnt") playCnt: String

    ): Intent


    @RounterUri(MyConstant.scheme + "://web")
    fun getIntentWeb(@RounterParam("url") url: String, @RounterParam("title") title: String): Intent

    @RounterUri(MyConstant.scheme + "://baidu_video")
    fun getIntentBaiduVideo(@RounterParam("url") url: String): Intent

    @RounterUri(MyConstant.scheme + "://withdrawcash")
    fun getWithDrawCash(): Intent

    @RounterUri(MyConstant.scheme + "://dialogpermission")
    fun getDialogPermission(): Intent

    @RounterUri(MyConstant.scheme + "://luckydraw")
    fun getIntentLuckyDraw(): Intent


    @RounterUri(MyConstant.scheme + "://dimond_crash")
    fun getIntentDimoneCrash(): Intent

    @RounterUri(MyConstant.scheme + "://task_crash")
    fun getIntentTaskCrash(): Intent

    @RounterUri(MyConstant.scheme + "://coin_crash")
    fun getIntentCoinCrash(): Intent


    @RounterUri(MyConstant.scheme + "://slotmachine")
    fun getIntentSlotMachine(): Intent

    @RounterUri(MyConstant.scheme + "://incomingtelegram")
    fun getIntentIncomingTelegram(): Intent

    @RounterUri(MyConstant.scheme + "://scraping_card")
    fun getIntentScratchCard(): Intent

    @RounterUri(MyConstant.scheme + "://double_color")
    fun getIntentDoubleColor(@RounterParam("ifnex") ifnex: Boolean): Intent

    @RounterUri(MyConstant.scheme + "://run_lottery")
    fun getIntentRunLottery(): Intent

    @RounterUri(MyConstant.scheme + "://soundsearch")
    fun getIntentSoundSearch(): Intent

    @RounterUri(MyConstant.scheme + "://shave")
    fun getIntentShave(): Intent

    @RounterUri(MyConstant.scheme + "://task")
    fun getIntentTask(): Intent

    @RounterUri(MyConstant.scheme + "://gold_details")
    fun getIntentGoldDetails(): Intent

    @RounterUri(MyConstant.scheme + "://clockinwithdraw")
    fun getIntentClockInWithdraw(): Intent

    @RounterUri(MyConstant.scheme + "://welfare")
    fun getIntentWelfare(): Intent

    @RounterUri(MyConstant.scheme + "://xiaoman")
    fun getIntentXiaoMan(@RounterParam("title") title: String): Intent

    //    intent.putExtra("url", url)
//    intent.putExtra("title", title)
//    intent.putExtra("slot_id", slot_id)
//    intent.putExtra("sid", sid)
    @RounterUri(MyConstant.scheme + "://new_web")
    fun getIntentReadH5(
        @RounterParam("url") url: String,
        @RounterParam("title") title: String,
        @RounterParam("slot_id") slot_id: String,
        @RounterParam(
            "sid"
        ) sid: String
    ): Intent

    @RounterUri(MyConstant.scheme + "://ad_web")
    fun getIntentAdWeb(
        @RounterParam("incentive_level") incentive_level: String,
        @RounterParam("alert") alert: String,
        @RounterParam("alertRenderType") alertRenderType: String,
        @RounterParam("timeTrigger") timeTrigger: String,
        @RounterParam("delay") delay: String,
        @RounterParam("deep_url_re") deep_url_re: String,
        @RounterParam("url") url: String,
        @RounterParam("title") title: String,
        @RounterParam("slot_id") slot_id: String,
        @RounterParam("sid") sid: String
    ): Intent

    @RounterUri(MyConstant.scheme + "://slot_machine_record")
    fun getIntentSlotMachineRecord(): Intent

    @RounterUri(MyConstant.scheme + "://setting")
    fun getIntentSetting(): Intent

    @RounterUri(MyConstant.scheme + "://withdrawals_record")
    fun getIntentSWithdrawalsRecord(): Intent
    @RounterUri(MyConstant.scheme + "://user_info")
    fun getIntentUserInfo(): Intent
}