more flex and filters

This commit is contained in:
JiriUhlir
2026-07-14 06:21:37 +02:00
parent 1a898b95f9
commit d9e3c59d69
15 changed files with 488 additions and 32 deletions
+5 -2
View File
@@ -14,13 +14,16 @@ public static class SdkRequestExtensions
this BaseList<TList, TClient, TGetModel, TFilter, TSort> list,
int page,
int pageSize,
CancellationToken ct)
CancellationToken ct,
string? filter = null,
string? filterType = null,
string? sort = null)
where TList : BaseList<TList, TClient, TGetModel, TFilter, TSort>
where TClient : BaseClient
where TFilter : new()
where TSort : new()
where TGetModel : new()
=> (await list.Page(page).PageSize(pageSize).GetAsync(ct)).Unwrap();
=> await list.GetPageAsync(page, pageSize, filter, filterType, sort, ct);
public static async Task<object?> ToDetailAsync<TDetail, TClient, TGetModel>(
this BaseDetail<TDetail, TClient, TGetModel> detail,