예제 #1
0
 /// <summary>
 /// Retrieves a list of all <see cref="Asset"/> objects. Listing theme assets only returns metadata about each asset.
 /// You need to request assets individually in order to get their contents.
 /// </summary>
 /// <param name="themeId">The id of the theme that the asset belongs to.</param>
 /// <param name="filter">Options for filtering the list.</param>
 /// <param name="cancellationToken">Cancellation Token</param>
 public virtual async Task <IEnumerable <Asset> > ListAsync(long themeId, AssetListFilter filter = null, CancellationToken cancellationToken = default)
 {
     return(await ExecuteGetAsync <IEnumerable <Asset> >($"themes/{themeId}/assets.json", "assets", filter, cancellationToken));
 }
예제 #2
0
 /// <summary>
 /// Retrieves a list of all <see cref="Asset"/> objects. Listing theme assets only returns metadata about each asset.
 /// You need to request assets individually in order to get their contents.
 /// </summary>
 /// <param name="themeId">The id of the theme that the asset belongs to.</param>
 /// <param name="filter">Options for filtering the list.</param>
 public virtual async Task <IEnumerable <Asset> > ListAsync(long themeId, AssetListFilter filter = null)
 {
     return(await ExecuteGetAsync <IEnumerable <Asset> >($"themes/{themeId}/assets.json", "assets", filter));
 }