more flex and filters
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user