コード例 #1
0
        /// <summary>
        /// Get items (of any kind) listed on the Steam store. Picks up from where the last request left off
        /// </summary>
        /// <param name="client">The <see cref="SteamApiRequest"/> to use</param>
        /// <param name="maxItems">Max number of entries to be returned</param>
        /// <returns>Up-to <see cref="maxItems"/> items being sold on the Steam store</returns>
        public static SteamStoreListingContainer GetStoreItems(this SteamApiClient client, uint maxItems, SteamStoreListingContainer lastItem)
        {
            var request = new SteamStoreListingRequest
            {
                LastAppId  = lastItem.LastApp,
                MaxEntries = maxItems
            };

            return(client.Perform <SteamStoreListingResponse>(request).Listing);
        }
コード例 #2
0
        /// <summary>
        /// Get a list of apps and games listed on the Steam store. Picks up from where the last request left off
        /// </summary>
        /// <param name="client">The <see cref="SteamApiRequest"/> to use</param>
        /// <param name="maxItems">Max number of entries to be returned</param>
        /// <returns>Up-to <see cref="maxItems"/> games and apps being sold on the Steam store</returns>
        public static SteamStoreListingContainer GetStoreApps(this SteamApiClient client, uint maxItems, SteamStoreListingContainer lastItem)
        {
            var request = new SteamStoreListingRequest
            {
                IncludeDLC      = false,
                IncludeGames    = true,
                IncludeHardware = false,
                IncludeSoftware = true,
                IncludeVideos   = false,

                LastAppId  = lastItem.LastApp,
                MaxEntries = maxItems
            };

            return(client.Perform <SteamStoreListingResponse>(request).Listing);
        }