Skip to content

Commit

Permalink
meilisearch#462: Total tasks in task route
Browse files Browse the repository at this point in the history
  • Loading branch information
kashifsoofi committed Oct 13, 2023
1 parent cf297c3 commit 737c82c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Meilisearch/TasksResults.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace Meilisearch
/// <typeparam name="T">Type of the Meilisearch server object. Ex: keys, indexes, ...</typeparam>
public class TasksResults<T> : Result<T>
{
public TasksResults(T results, int? limit, int? from, int? next)
public TasksResults(T results, int? limit, int? from, int? next, int? total)
: base(results, limit)
{
From = from;
Expand All @@ -25,5 +25,10 @@ public TasksResults(T results, int? limit, int? from, int? next)
/// Gets next size.
/// </summary>
public int? Next { get; }

/// <summary>
/// Gets total number of tasks.
/// </summary>
public int? Total { get; }
}
}

0 comments on commit 737c82c

Please sign in to comment.