Skip to content

Commit 700f745

Browse files
committed
fix: add ParamCollection to ReferencesAsync call
1 parent 1efb2d1 commit 700f745

File tree

1 file changed

+3
-5
lines changed
  • Contentstack.Management.Core/Models

1 file changed

+3
-5
lines changed

Contentstack.Management.Core/Models/Asset.cs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -318,11 +318,10 @@ public virtual Task<ContentstackResponse> UnpublishAsync(PublishUnpublishDetails
318318
/// <summary>
319319
/// The References request returns the details of the entries and the content types in which the specified asset is referenced.
320320
/// </summary>
321-
/// <param name="details">Publish details.</param>
322321
/// <example>
323322
/// <pre><code>
324323
/// ContentstackClient client = new ContentstackClient(&quot;&lt;AUTHTOKEN&gt;&quot;, &quot;&lt;API_HOST&gt;&quot;);
325-
/// ContentstackResponse contentstackResponse = client.Stack(&quot;&lt;API_KEY&gt;&quot;).Asset(&quot;&lt;ASSET_UID&gt;&quot;).Unpublish(new PublishUnpublishDetails());
324+
/// ContentstackResponse contentstackResponse = client.Stack(&quot;&lt;API_KEY&gt;&quot;).Asset(&quot;&lt;ASSET_UID&gt;&quot;).References();
326325
/// </code></pre>
327326
/// </example>
328327
/// <returns>The <see cref="ContentstackResponse"/>.</returns>
@@ -338,15 +337,14 @@ public virtual ContentstackResponse References(ParameterCollection collection =
338337
/// <summary>
339338
/// The ReferencesAsync request returns the details of the entries and the content types in which the specified asset is referenced.
340339
/// </summary>
341-
/// <param name="details">Publish details.</param>
342340
/// <example>
343341
/// <pre><code>
344342
/// ContentstackClient client = new ContentstackClient(&quot;&lt;AUTHTOKEN&gt;&quot;, &quot;&lt;API_HOST&gt;&quot;);
345-
/// ContentstackResponse contentstackResponse = await client.Stack(&quot;&lt;API_KEY&gt;&quot;).Asset(&quot;&lt;ASSET_UID&gt;&quot;).UnpublishAsync(new PublishUnpublishDetails());
343+
/// ContentstackResponse contentstackResponse = await client.Stack(&quot;&lt;API_KEY&gt;&quot;).Asset(&quot;&lt;ASSET_UID&gt;&quot;).ReferencesAsync();
346344
/// </code></pre>
347345
/// </example>
348346
/// <returns>The <see cref="ContentstackResponse"/>.</returns>
349-
public virtual Task<ContentstackResponse> ReferencesAsync()
347+
public virtual Task<ContentstackResponse> ReferencesAsync(ParameterCollection collection = null)
350348
{
351349
stack.ThrowIfNotLoggedIn();
352350
ThrowIfUidEmpty();

0 commit comments

Comments
 (0)