Example #1
0
    public void LoadLivePart()
    {
        TabsItem liveRoot     = tabsItems[4];//直播专区的
        string   jsonLivePath = HttpUitls.GetJsonPath(tabUrl, liveRoot.path);

        StartCoroutine(Getjson(jsonLivePath, LoadLive));
    }
Example #2
0
    /// <summary>
    /// 巨幕的数据加载
    /// </summary>
    ///   public static List<ListDataItem> vrDataItems = new List<ListDataItem>();
    /// <summary>
    /// VR专区的数据加载
    /// </summary>
    ///
    public void LoadVRPart()
    {
        TabsItem vrRoot = tabsItems[2];
        string   vrPath = HttpUitls.GetJsonPath(tabUrl, vrRoot.path);

        StartCoroutine(Getjson(vrPath, LoadVR));
    }
Example #3
0
    /// <summary>
    /// 巨幕的数据加载
    /// </summary>
    ///   public static List<ListDataItem> vrDataItems = new List<ListDataItem>();
    /// <summary>
    /// VR专区的数据加载
    /// </summary>
    ///

    public void LoadGiantScreen()
    {
        TabsItem gsRoot = tabsItems[3];

        string gsPath = HttpUitls.GetJsonPath(tabUrl, gsRoot.path);

        StartCoroutine(Getjson(gsPath, LoadScreen));
    }
Example #4
0
    /// <summary>
    /// 4k专区的数据加载
    /// </summary>
    public void Load_4K()
    {
        Debug.Log("Load_4K");
        TabsItem _4kRoot = tabsItems[1];
        string   _4kPath = HttpUitls.GetJsonPath(tabUrl, _4kRoot.path);

        StartCoroutine(Getjson(_4kPath, Load4KPart));
    }
Example #5
0
        public void AddItem(TabsItem item)
        {
            if (item == null)
            {
                throw new ArgumentNullException(nameof(item));
            }

            _items.Add(item);
        }
Example #6
0
    void LoadTabs()
    {
        Tabs tabs = JsonConvert.DeserializeObject <Tabs>(retString);

        for (int i = 0; i < tabs.tabs.Count; i++)
        {
            tabsItems.Add(tabs.tabs[i]);
        }
        TabsItem recommendRoot = tabsItems[0];//推荐专区的
        string   jsonPath      = HttpUitls.GetJsonPath(tabUrl, recommendRoot.path);

        LauncherUIManager.instance.IniTopCulumn();
        StartCoroutine(Getjson(jsonPath, LoadRecommendPart));
    }
Example #7
0
 public TabsItemsViewModel(TabsItem tabsItem)
 {
     this.TabItemId = tabsItem.TabItemId;
     this.TabId     = tabsItem.TabId;
     this.ItemId    = tabsItem.TabItemId;
 }