コード例 #1
0
 public CatalogItemsByCategoryRequest(string category, long scheduledThemeChallengeId, string cursor = "")
 {
     CacheId = CatalogItemsRequest.GetPrefixedCacheId(category, scheduledThemeChallengeId);
     Service.Get <EventDispatcher>().AddListener <CatalogServiceEvents.CatalogItemsByCategoryRetrievedEvent>(onItemsByCategory);
     Service.Get <INetworkServicesManager>().CatalogService.GetCatalogItemsByCategory(category, scheduledThemeChallengeId, cursor);
 }
コード例 #2
0
 public CatalogItemsByPopularRequest(long scheduledThemeChallengeId, string cursor = "")
 {
     CacheId = CatalogItemsRequest.GetPrefixedCacheId("Popular", scheduledThemeChallengeId);
     Service.Get <EventDispatcher>().AddListener <CatalogServiceEvents.CatalogItemsByPopularityRetrievedEvent>(onItems);
     Service.Get <INetworkServicesManager>().CatalogService.GetCatalogItemsByPopularity(scheduledThemeChallengeId, cursor);
 }