public void LoadLivePart() { TabsItem liveRoot = tabsItems[4];//直播专区的 string jsonLivePath = HttpUitls.GetJsonPath(tabUrl, liveRoot.path); StartCoroutine(Getjson(jsonLivePath, LoadLive)); }
/// <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)); }
/// <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)); }
/// <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)); }
public void AddItem(TabsItem item) { if (item == null) { throw new ArgumentNullException(nameof(item)); } _items.Add(item); }
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)); }
public TabsItemsViewModel(TabsItem tabsItem) { this.TabItemId = tabsItem.TabItemId; this.TabId = tabsItem.TabId; this.ItemId = tabsItem.TabItemId; }