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); }
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); }