package com.zxhl.cms.common;

import static com.zxhl.cms.common.NetConfig.Environment.DEV;
import static com.zxhl.cms.common.NetConfig.Environment.PRODUCT;
import static com.zxhl.cms.common.NetConfig.Environment.SAND_BOX;

/**
 * Created by gaoleichao on 2018/5/2.
 */

public class NetConfig {


    public static enum Environment {

        DEV,

        TEST,
        SAND_BOX,
        PRODUCT,


    }

    // 根据调试选项更新环境
    public static Environment sEnvironment = DEV;// 当前环境
    public static String BASE_WEB_URL = "";
    public static String BASE_URL = "";
    public static String BASE_NEW_URL = "";
    public static String BASE_FEED_URL = "";
    public static final String URL_REPORT_BASE = "http://report.zhangxinhulian.com/";
    public static final String HOME_BANNER_BASE_URL = "https://bs.zhangxinhulian.com/";

    public static void setBase_Url(Environment s) {
        sEnvironment = s;
        switch (sEnvironment) {
            case PRODUCT:
                BASE_URL = "http://feedapi.zhangxinhulian.com/";
                BASE_WEB_URL = "http://feedapi.zhangxinhulian.com/";
                BASE_NEW_URL = "http://feedapi.zhangxinhulian.com/";
                BASE_FEED_URL = "http://feedapi.zhangxinhulian.com/";
                break;
            case TEST:
                BASE_URL = "https://sandbox.huolea.com/";
                BASE_WEB_URL = "https://www.huolea.com/";
                BASE_NEW_URL = "http://newapi.huolea.com/";
                BASE_FEED_URL = "http://feedapi.huolea.com/";
                break;
            case SAND_BOX:
                BASE_URL = "https://feedapi-sandbox.zhangxinhulian.com/";
                BASE_WEB_URL = "https://feedapi-sandbox.zhangxinhulian.com/";
                BASE_NEW_URL = "https://feedapi-sandbox.zhangxinhulian.com/";
                BASE_FEED_URL = "https://feedapi-sandbox.zhangxinhulian.com/";
                break;
            default:
                BASE_URL = "http://feedapitest4.zhangxinhulian.com/";
                BASE_WEB_URL = "http://feedapitest4.zhangxinhulian.com/";
                BASE_NEW_URL = "http://feedapitest4.zhangxinhulian.com/";
                BASE_FEED_URL = "http://feedapitest4.zhangxinhulian.com/";
                break;
        }
    }

    public static class Invite {
        public static final String URL_INVITE_AWARD = "api/v1/invite/inviteAward";
        public static final String URL_INVITE_POSTER = "api/v1/invite/genPoster";
        public static final String URL_INVITE_WITHDRAWUSERLIST = "api/v1/invite/withdrawUserList";
        public static final String URL_INVITE_INVITEURL = "api/v1/invite/genInviteUrl";
        public static final String URL_INVITE_PROTEGELIST = "api/v1/invite/protegeList";
        public static final String URL_INVITE_SHOWSTATUS = "api/v1/award/showStatus";
        public static final String URL_INVITE_SHAREDATA = "api/v1/share/getShareData";
    }

    public static class News {
        public static final String URL_NEWS_TABLIST = "api/v1/info/tabList";
        public static final String URL_NEWS_USERTABLIST = "api/v1/info/userTabList";
        public static final String URL_NEWS_STOREINFOTAB = "api/v1/info/storeInfoTab";
        public static final String URL_NEWS_INFODETAIL = "api/v1/info/getInfoDetailData";
        public static final String URL_NEWS_STOREINFOCOIN = "api/v1/coin/storeInfoCoin";
        public static final String URL_NEWS_HOTSEARCH = "api/v1/info/getTopKey";

        public static final String URL_NEWS_TIPS = "api/v1/info/frontData";

        public static final String URL_FLOAT_ICON = "api/v1/navigate/navigateList";

        public static final String URL_REDPACKET = "api/v1/info/redPacketData";

        public static final String URL_GET_EXIT_DATA = "api/v1/eac/getDlgData";


        public static final String URL_SAVE_CONTACTS = "api/v1/udc/spn";

        //        public static final String URL_NEWS_DFURL = "http://106.75.3.64/newsapi/newspool";
        public static final String URL_NEWS_DFURL = "http://newsapicom.dftoutiao.com/newsapi/newspool";


        public static final String URL_NEWS_URL = "v1/news/fetchWithAds";

        public static final String URL_NEWS_IMEI_URL = "http://weimiinfo.dftoutiao.com/appidfa_encryption/appidfa";

        public static final String URL_NEWS_QUERY_COLLECT = "api/v1/info/collectStatus";

        public static final String URL_NEWS_COLLECT = "api/v1/info/collect";

        public static final String URL_NEWS_UN_COLLECT = "api/v1/info/cancelCollect";

        public static final String URL_NEWS_COLLECT_LIST = "api/v1/info/collectList";

        public static final String URL_NEWS_GET_CITYINFO = "api/v1/cityInfo";

    }

    public static class Video {
        public static final String URL_VIDEO_TAB = "app/v1/game/face/tab";
        public static final String URL_NEWS_USERTABLIST = "api/v1/info/userTabList";
        public static final String URL_NEWS_STOREINFOTAB = "api/v1/info/storeInfoTab";

        public static final String URL_NEWS_VIDEOS_FETCH_WITH_ADS = "v2/videos/fetchWithAds";//获取视频列表
        public static final String URL_NEWS_VIDEO_CHANNELS = "v2/videos/channels";//get获取视频频道列表 post保存用户频道

        public static final String URL_NEWS_VIDEO_LIST = "app/v1/game/face/pageInfo";
        public static final String URL_NEWS_VIDEO_INFO_V2 = "v2/videos/content";
        public static final String URL_NEWS_VIDEO_INFO_V1 = "v1/videos/content";
        public static final String URL_ALI_IMG_UPLOAD = "app/v1/game/face/imageUpload";
        public static final String URL_TX_IMG_UPLOAD = "app/v2/game/face/imageUpload";
        public static final String URL_IMG_LIST = "app/v1/game/face/getUserImgList";
        public static final String URL_ALI_VIDEO_SYNTHESIS = "app/v1/game/face/videoSynthesis";
        public static final String URL_TX_VIDEO_SYNTHESIS = "app/v2/game/face/videoSynthesis";
        public static final String URL_ALI_VIDEO_QUERY = "app/v1/game/face/getResult";
        public static final String URL_TX_VIDEO_QUERY = "app/v2/game/face/getResult";
    }

    public static class User {
        public static final String URL_USER_DEVICE_LOGIN = "app/v1/auth/tourist-login";
        public static final String URL_USER_GET_USERINFO_ = "app/v1/hk/game/star/user";
        public static final String URL_PAY_CONFIG = "app/v2/location/user/pay-config";//獲取配置列表

        public static final String URL_PAY_ORDER = "app/v4/location/user/pay";//請求支付訂單
        public static final String VERIFY_PAY_URL = "app/v1/location/user/pay-order";
        public static final String VERIFY_PAY_SWITCH_URL = "/app/v1/game/face/config";
        public static final String USER_FREE_PROGRESS = "/app/v1/location/user/userFreeTrialV3Progress";//试用进度
        public static final String USER_FREE_RECEIVE = "/app/v1/location/user/freeTrialV3";//试用领取
        public static final String USER_PAY_CONFIG = "/app/v2/location/user/pay-config";//支付配置-v2 - 支持打折 和 优惠卷
        public static final String USER_FREE_REPORT = "/app/v1/location/user/freeReport";//视频上报
        public static final String USER_CHECK_FREE_TRIALV3 = "/app/v1/location/user/checkFreeTrialV3";//试用V3 - 判断弹窗
        public static final String USER_IS_WX_LOGIN = "app/v1/waimai/isWxLogin";//试用V3 - 判断弹窗
        public static final String USER_WX_SHARE = "app/v1/game/remote/friends/share";//试用V3 - 判断弹窗
        public static final String APP_NOVEL_INFO = "app/v1/novel/info";//配置信息接口
        public static final String AUTH_WX_LOGIN = "app/v1/auth/wxLogin";//微信登录
        public static final String USER_SEND_CODE = "app/v1/auth/sendCode";//发送验证码
        public static final String USER_PHONE_CODE_LOGIN = "app/v3/auth/phoneCodeLogin";//验证码登录
        public static final String URL_VERSION = "app/v1/version";
        public static final String URL_AUTH_LOGOUT = "app/v2/auth/logout";//注销登录

        public static final String URL_AUTH_GOOGLE_LOGIN = "app/v1/auth/googleLogin";//绑定谷歌登录
        public static final String URL_AUTH_FACEBOOK_LOGIN = "app/v1/auth/facebookLogin";//绑定FaceBook登录

    }

    public static class Task {
        public static final String URL_TASK_NEWTASKLIST = "api/v1/userTask/newUserTaskList";
        public static final String URL_TASK_DAILYTASKLIST = "api/v1/userTask/dailyUserTaskList";
        public static final String URL_TASK_QUERYTASK = "api/v1/userTask/getAdStatus";
        public static final String URL_TASK_GETSIGNLIST = "api/v1/signIn/getSignRecords";
        public static final String URL_TASK_SIGNIN = "api/v1/signIn/signIn";

        public static final String URL_TASK_NAV_DESC = "api/v1/cfg/taskPageConfig";
    }

    public static class Other {
        public static final String URL_SEC_CHECK = "api/v1/sec/check";
        public static final String URL_CFG_NAV = "api/v1/cfg/getModel";
        public static final String URL_ACTIVITY = "api/v1/activity/getActivity";

        public static final String URL_ZFB = "api/v1/cfg/getZfb";

        public static final String URL_STATUS = "api/v1/ta/getStatusV2";
        public static final String URL_AWARD = "api/v1/ta/awardV2";

        public static final String URL_CONFIG = "api/v1/cfg/globalCfg";

        public static final String URL_EVENT = URL_REPORT_BASE + "logCollection/log/v1/userLogCollection";

    }

    public static class Ad {
        public static final String URL_AD_CLOUDCONFIG = "api/v1/cloudconfig";
        public static final String URL_AD_SOGOUCFG = "api/v1/cfg/getSougouCfg";
        public static final String URL_NEWS_FEEDADLIST = "api/v1/info/feedAdList";
        public static final String URL_AD_GETADS = "api/v1/ad/getAds";
        public static final String URL_AD_UPLOAD = "api/v1/report/adLog";
        public static final String URL_USER_UPLOAD = "api/v1/report/uLog";
        public static final String URL_AD_GETADSEXT = "api/v1/ad/getAdsExt";
        public static final String URL_AD_GET_AD_SHARE = "api/v1/ad/getShareAds";

        public static final String HOME_BANNER_DATA_URL = HOME_BANNER_BASE_URL + "v4/ads";

    }

    public static class ShenMi {
        public static final String URL_GET_AD = "v10/getad";
    }

    public static class H5 {
        public static String WEB_URL_USER = "https://newspool.zhangxinhulian.com/sspapiNovel/su/custom/xgchat/hk/StarlightTermsOfService.html?version="+ Constant.Param.vn+"&appName=StarLight&company=北京志信博文科技发展有限公司";

        public static String WEB_URL_PRIVACY = "https://newspool.zhangxinhulian.com/sspapiNovel/su/custom/xgchat/hk/StarlightPrivacyPolicy.html?version="+ Constant.Param.vn+"&appName=StarLight&company=北京志信博文科技发展有限公司";

        public static String WEB_URL_ABOUT_US = "https://newspool.zhangxinhulian.com/sspapiNovel/su/custom/xingyunmohe/aboutMe.html?version="+ Constant.Param.vn+"&appName=StarLight&company=北京志信博文科技发展有限公司";

        //public static String WEB_URL_CUSTOMER_SERVICE = "https://1568685.s4.udesk.cn/im_client/?web_plugin_id=25351";
        public static String WEB_URL_BUYER_KNOW = "https://newspool.zhangxinhulian.com//sspapiNovel/su/custom/xgchat/add_value.html?version="+ Constant.Param.vn+"&appName=StarLight&company=北京志信博文科技发展有限公司";

        public static String WEB_URL_INVITE;
        public static String WEB_URL_CUSTOMER_SERVICE="http://cdn-apph5.zhangxinzhixun.com/favorite/newService?pkg=com.zhangxin.starlight";
        public static String WEB_URL_WINTER_RULE="https://newspool.zhangxinhulian.com/sspapiNovel/su/custom/xingyunmohe/winter_mh_activity_ruleV1.0.6.html";

    }

    public static class Box {
        public static final String HOME_BOX_VERIFICATION = "app/v1/game/box/rechargeVerification";//用户是否可以充值验证
        public static final String HOME_BOX_APP_INFO = "app/v1/app_info";//配置信息

    }

    public static class StarLight {
        public static final String HOME_STAR_LIGHT_LIST = "app/v1/hk/game/star/pageList";//首页列表
        public static final String HOME_STAR_LIGHT_USER_INFO = "app/v1/hk/game/star/getUserInfo";//访问他人主页
        public static final String HOME_STAR_LIGHT_USER_LIKE = "app/v1/hk/game/star/like";//喜欢/取消喜欢
        public static final String HOME_STAR_LIGHT_USER_FOLLOW = "app/v1/game/star/follow";//关注用户/取消关注
        public static final String HOME_STAR_LIGHT_ADD_USERINFO = "app/v1/game/star/addUserInfo";//注册 - 填写资料
        public static final String HOME_STAR_LIGHT_UPLOAD = "app/v1/game/star/upload";//上传图片
        public static final String HOME_STAR_LIGHT_PICTURES = "app/v1/game/star/pictures";//我的 - 更新相册
        public static final String HOME_STAR_LIGHT_FOLLOWLIST = "app/v1/game/star/followList";//我的 - 关注列表
        public static final String HOME_STAR_LIGHT_FANLIST = "app/v1/game/star/fanList";//我的 - 粉丝列表
        public static final String HOME_STAR_LIGHT_LIKEMYLIST = "app/v1/game/star/likeMyList";//我的 - 喜欢我列表
        public static final String HOME_STAR_LIGHT_REPORT = "app/v1/hk/game/star/report";//举报
        public static final String HOME_STAR_LIGHT_UPDATE_USER_INFO = "app/v1/hk/game/star/updateUserInfo";//我的 - 编辑个人信息
        public static final String HOME_STAR_LIGHT_UPDATE_USER_INFO_NO_HEAD_IMG = "app/v1/game/star/updateUserInfo";//我的 - 编辑个人信息 不带头像的
        public static final String HOME_STAR_LIGHT_UPDATE_USER_VOICE = "app/v1/game/star/updateUserVoice";//我的 -  编辑语音签名
        public static final String HOME_STAR_LIGHT_MEMBER_RECORD = "app/v1/game/star/memberRecord";//购买会员记录
        public static final String HOME_STAR_LIGHT_COIN_LOG = "app/v1/game/star/coinLog";//我的 - 星币明细
        public static final String HOME_STAR_LIGHT_RECEIVE_NEW_USER = "app/v1/game/star/receiveNewUser";//领取新人奖励
        public static final String HOME_STAR_LIGHT_SIGN_LIST = "app/v2/game/common/signList";//签到奖励列表
        public static final String HOME_STAR_LIGHT_SIGN_RECEIVE = "app/v1/game/common/signReceive";//签到奖励领取
        public static final String HOME_STAR_LIGHT_SIGN_FEED_BACK = "app/v1/game/star/feedback";//意见反馈
        public static final String HOME_STAR_LIGHT_RECOMMEND_CHAT_UP = "app/v1/game/star/getRecommendedChatUp";//推荐搭讪用户
        public static final String HOME_STAR_LIGHT_ONE_CLICK_CHAT_UP = "app/v1/game/star/oneClickChatUp";//一键搭讪
        public static final String HOME_STAR_LIGHT_SYNC_POSITION = "app/v1/game/star/syncPosition";//同步最后一次位置信息
        public static final String HOME_STAR_LIGHT_GET_DISTANCE = "app/v1/game/star/getDistance";//获取距离
        //IM
        public static final String HOME_STAR_LIGHT_GET_ADMIN_KEY = "app/v1/game/star/getAdministratorKey";//获取管理员密钥
        public static final String HOME_STAR_LIGHT_VISITOR = "app/v1/game/star/visitor";//消息 - 访客列表
        public static final String HOME_STAR_LIGHT_SEND_MESSAGE = "app/v1/game/star/sendMsg";//发送消息
        public static final String HOME_STAR_LIGHT_MESSAGE_LIST = "app/v1/game/star/messageList";//最近联系人 - 消息列表
        public static final String HOME_STAR_LIGHT_MESSAGE_GIFT_LIST = "app/v1/game/star/giftList";//礼物列表
        public static final String HOME_STAR_LIGHT_MESSAGE_SEND_GIFT = "app/v1/game/star/gift";//送礼物
        public static final String HOME_STAR_LIGHT_MESSAGE_STAR_VALUE = "app/v1/game/star/getUserValue";//查询与好友亲密度和心动值
        public static final String HOME_STAR_LIGHT_MESSAGE_CHARGE_OR_NOT = "app/v1/game/star/chargeOrNot";//查询发送消息是否需要收费
        public static final String HOME_STAR_LIGHT_MESSAGE_IM_DEDUCTION = "app/v1/game/star/im/deduction";//发送消息扣费
        public static final String HOME_STAR_LIGHT_MESSAGE_SEND_MESSAGE = "app/v1/game/star/sendMsg";//发送消息
        public static final String HOME_STAR_LIGHT_MESSAGE_LOG = "app/v1/game/star/getChatLog";//获取聊天记录
        public static final String HOME_STAR_LIGHT_MESSAGE_CHATUP_TEMPLATE = "app/v1/game/star/getChatUpTemplate";//获取搭讪聊天模版
        public static final String HOME_STAR_LIGHT_IM_FREE_REPORT = "app/v1/game/star/im/freeReport";//上报
        public static final String HOME_STAR_LIGHT_HAS_WINTER_BOX = "app/v1/game/star/hasWinterBox";//是否弹冬日盲盒
        public static final String HOME_STAR_LIGHT_GET_WINTER_BOX = "app/v1/game/star/getWinterBox";//获取冬日盲盒详情
        public static final String HOME_STAR_LIGHT_OPEN_WINTER_BOX = "app/v1/game/star/openWinterBox";//开启冬日盲盒
        public static final String HOME_STAR_LIGHT_TAB = "app/v1/game/star/tab";//tab列表
        public static final String HOME_STAR_LIGHT_TO_CREATE_ROOM = "app/v1/game/star/toCreateRoom";//语音房版本 - 准备创建房间
        public static final String HOME_STAR_LIGHT_CREATE_ROOM = "app/v1/game/star/createRoom";//语音房版本 - 创建房间
        public static final String HOME_STAR_LIGHT_ROOM_LIST = "app/v1/game/star/roomList";//语音房版本 - 语音房列表
        public static final String HOME_STAR_LIGHT_CLOSE_ROOM = "app/v1/game/star/closeRoom";//语音房版本 - 关闭房间
        public static final String HOME_STAR_LIGHT_IN_ROOM = "app/v1/game/star/inRoom";//语音房版本 - 进入房间
        public static final String HOME_STAR_LIGHT_OUT_ROOM = "app/v1/game/star/outRoom";//语音房版本 - 离开房间
        public static final String HOME_STAR_LIGHT_GIFT= "app/v1/game/star/room/gift";//语音房版本 - 送礼物
        public static final String HOME_STAR_GIFT_WALL ="app/v1/game/star/giftWall";//语音房版本 - 礼物墙

        public static final String HOME_STAR_LIGHT_GET_RECENT_CONTACTS = "app/v1/game/star/getRecentContacts";//语音房版本 - 获取最近联系人(邀请)
        public static final String HOME_STAR_LIGHT_GET_ROOM_USER = "app/v1/game/star/roomUser";//语音房版本 -  获取当前房内用户
        public static final String HOME_STAR_LIGHT_BLACKLIST = "app/v1/hk/game/star/blacklist";//我的 - 黑名单列表
        public static final String HOME_STAR_BLACK= "app/v1/hk/game/star/black";//拉黑/取消拉黑
        public static final String HOME_STAR_CONSTELLATION_PAIRING= "app/v1/hk/game/star/constellationPairing";//星座配对头像列表
        public static final String HOME_STAR_CONSTELLATION_RESLUT= "app/v1/hk/game/star/constellationPairing";//星座配对 - 结果获取
        public static final String HOME_STAR_MY_LIKE_LIST= "app/v1/hk/game/star/myLikeList";//我的 - 我喜欢列表


    }


}
