package com.duolebo.blyrobot.util

object Constants {
    const val KEY_URL = "url"
    const val KEY_TIME = "time"
    const val KEY_CMD = "cmd"

    const val CMD_START = "start"
    const val CMD_STOP = "stop"

    val KEY_MAP = mapOf(
            "0" to "7",
            "1" to "8",
            "2" to "9",
            "3" to "10",
            "4" to "11",
            "5" to "12",
            "6" to "13",
            "7" to "14",
            "8" to "15",
            "9" to "16",
            "up" to "19",
            "down" to "20",
            "left" to "21",
            "right" to "22",
            "enter" to "66",
            "home" to "3",
            "menu" to "82",
            "ok" to "23",
            "back" to "4",
            "mute" to "164")

    const val ONLY_VIDEO = "only_video"
    val VIDEO_EXTS = "m3u8|.ts|.mp4|.rmvb|.mkv|.wmv"

    //data key
    const val PACKAGE_NAME = "packageName"
    const val LAUNCHER = "launcher"
    const val LAUNCH_DELAY = "launchDelay"
    const val KEY_EVENT = "keyEvent"

    const val ASTERISK = "*"
    const val SLASH = "/"
    const val VERTICAL_BAR = "|"

    const val ACTION_LOCAL_SERVICE = "action_local_service"
}