コード例 #1
0
        public async Task <IActionResult> GetWorkshopPublishedItemDetails([Required] long publishedItemId)
        {
            var collectionDetails = await steamApiRepository.GetPublishedItemDetailsAsync(publishedItemId);

            if (collectionDetails == null)
            {
                return(BadRequest("Invalid workshop item id"));
            }

            return(Ok(collectionDetails));
        }
コード例 #2
0
    public Task <SteamWorkshopItem> GetPublishedItemDetailsAsync(long publishedItemId)
    {
        logger.LogInformation("Retrieving information for {PublishedItemId}", publishedItemId);

        return(steamApiRepository.GetPublishedItemDetailsAsync(publishedItemId));
    }