コード例 #1
0
ファイル: LiveChannelHandler.cs プロジェクト: uvbs/MyProjects
 public static void ProcessLang(LiveVideoNode video)
 {
     video.Language = new Dictionary<string, LiveChannelLanguageNode>(AppSettingCache.LanguageNum);
     var cnode = new LiveChannelLanguageNode();
     cnode.ChannelName = video.ChannelName;
     cnode.Mark = ListUtils<LiveVideoNode>.SetMark(video);
     cnode.Introduction = video.BKInfo.Introduction;
     video.Language[CustomArray.LanguageArray[0]] = cnode;
     if (AppSettingCache.Instance["LanauageTW"] == "1")
     {
         var node = new TraditionLiveChannelNode(cnode);
         //var node = new LiveChannelLanguageNode();
         //node.ChannelName = LanguageUtils.FormatTraditionChinese(video.Language[CustomArray.LanguageArray[0]].ChannelName);
         //node.Mark = LanguageUtils.FormatTraditionChinese(video.Language[CustomArray.LanguageArray[0]].Mark);
         //node.Introduction = LanguageUtils.FormatTraditionChinese(video.Language[CustomArray.LanguageArray[0]].Introduction);
         video.Language[CustomArray.LanguageArray[1]] = node;
     }
     if (AppSettingCache.Instance["LanauageEN"] == "2")
     {
         var node = new LiveChannelLanguageNode();
         node.ChannelName = video.Main.NameEng;
         node.Mark = "unknow";
         node.Introduction = video.BKInfo.IntroductionEng;
         video.Language[CustomArray.LanguageArray[2]] = node;
     }
 }
コード例 #2
0
        public static void ProcessLang(LiveVideoNode video)
        {
            video.Language = new Dictionary <string, LiveChannelLanguageNode>(AppSettingCache.LanguageNum);
            var cnode = new LiveChannelLanguageNode();

            cnode.ChannelName = video.ChannelName;
            cnode.Mark        = ListUtils <LiveVideoNode> .SetMark(video);

            cnode.Introduction = video.BKInfo.Introduction;
            video.Language[CustomArray.LanguageArray[0]] = cnode;
            if (AppSettingCache.Instance["LanauageTW"] == "1")
            {
                var node = new TraditionLiveChannelNode(cnode);
                //var node = new LiveChannelLanguageNode();
                //node.ChannelName = LanguageUtils.FormatTraditionChinese(video.Language[CustomArray.LanguageArray[0]].ChannelName);
                //node.Mark = LanguageUtils.FormatTraditionChinese(video.Language[CustomArray.LanguageArray[0]].Mark);
                //node.Introduction = LanguageUtils.FormatTraditionChinese(video.Language[CustomArray.LanguageArray[0]].Introduction);
                video.Language[CustomArray.LanguageArray[1]] = node;
            }
            if (AppSettingCache.Instance["LanauageEN"] == "2")
            {
                var node = new LiveChannelLanguageNode();
                node.ChannelName  = video.Main.NameEng;
                node.Mark         = "unknow";
                node.Introduction = video.BKInfo.IntroductionEng;
                video.Language[CustomArray.LanguageArray[2]] = node;
            }
        }
コード例 #3
0
 public TraditionLiveChannelNode(LiveChannelLanguageNode simpleNode)
 {
     _simpleNode = simpleNode;
 }
コード例 #4
0
 public TraditionLiveChannelNode(LiveChannelLanguageNode simpleNode)
 {
     _simpleNode = simpleNode;
 }