-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix paging in DeletedMessages/Infractions
Move RecordsPage to Modix.Models project
- Loading branch information
Showing
9 changed files
with
62 additions
and
49 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
namespace Modix.Models; | ||
|
||
/// <summary> | ||
/// Describes paged subset of records, from a larger recordset. | ||
/// </summary> | ||
/// <typeparam name="T">The type of record contained in the page.</typeparam> | ||
public class RecordsPage<T> | ||
{ | ||
/// <summary> | ||
/// The total number of records in the recordset. | ||
/// </summary> | ||
public long TotalRecordCount { get; set; } | ||
|
||
/// <summary> | ||
/// The number of records in the recordset, after applying an optional set of filtering criteria. | ||
/// </summary> | ||
public long FilteredRecordCount { get; set; } | ||
|
||
/// <summary> | ||
/// The current page of records, selected from the larger recordset. | ||
/// </summary> | ||
public IReadOnlyCollection<T> Records { get; set; } = null!; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters