private async Task SetImageList(string apiKey, Set set, Sets bricksetSet)
        {
            if (!(bricksetSet.Image is null))
            {
                set.Images.Add(new Image
                {
                    ImageUrl     = bricksetSet.Image.ImageUrl?.SanitizeBricksetString(),
                    ThumbnailUrl = bricksetSet.Image.ThumbnailUrl?.SanitizeBricksetString()
                });
            }

            if (bricksetSet.AdditionalImageCount == 0)
            {
                return;
            }

            var getAdditionalImagesParameters = new ParameterSetId
            {
                ApiKey = apiKey,
                SetID  = set.SetId
            };

            set.Images = (await _bricksetApiService.GetAdditionalImages(getAdditionalImagesParameters))
                         .ToImageEnumerable()
                         .ToList();
        }
        private async Task SetInstructionList(string apiKey, Set set, Sets bricksetSet)
        {
            if (bricksetSet.InstructionsCount == 0)
            {
                return;
            }

            var getInstructionsParameters = new ParameterSetId
            {
                ApiKey = apiKey,
                SetID  = set.SetId
            };

            set.Instructions = (await _bricksetApiService.GetInstructions(getInstructionsParameters))
                               .ToInstructionEnumerable()
                               .ToList();
        }
 public async Task <IEnumerable <SetImage> > GetAdditionalImages(ParameterSetId getAdditionalImagesParameters)
 {
     return((await BricksetHttpPostUrlEncodeAsync <ResultGetAdditionalImages, ParameterSetId>(getAdditionalImagesParameters).ConfigureAwait(false)).AdditionalImages);
 }
 public async Task <IEnumerable <Instructions> > GetInstructions(ParameterSetId getInstructionsParameters)
 {
     return((await BricksetHttpPostUrlEncodeAsync <ResultGetInstructions, ParameterSetId>(getInstructionsParameters).ConfigureAwait(false)).Instructions);
 }