/// <summary> /// Gets a count of all of the shop's ProductImages. /// </summary> /// <param name="productId">The id of the product that counted images belong to.</param> /// <param name="filter">Options for filtering the result.</param> /// <param name="cancellationToken">Cancellation Token</param> public virtual async Task <int> CountAsync(long productId, ProductImageCountFilter filter = null, CancellationToken cancellationToken = default) { return(await ExecuteGetAsync <int>($"products/{productId}/images/count.json", "count", filter, cancellationToken)); }
/// <summary> /// Gets a count of all of the shop's ProductImages. /// </summary> /// <param name="productId">The id of the product that counted images belong to.</param> /// <param name="filter">Options for filtering the result.</param> public virtual async Task <int> CountAsync(long productId, ProductImageCountFilter filter = null) { return(await ExecuteGetAsync <int>($"products/{productId}/images/count.json", "count", filter)); }