native amount/offset handling
This commit is contained in:
@@ -14,6 +14,15 @@ public abstract class BaseChildItemClient<T>(IApiClient client) : BaseClient<T>(
|
||||
return (await client.SendRequest<GeneralItemMessages<T>.Items>($"{ApiEndpointParent}/{parentId}{ApiEndpointChild}", HttpMethod.Get)).EnsureOk().Items;
|
||||
}
|
||||
|
||||
public virtual async Task<IEnumerable<T>> GetAll(int parentId, int offset, int count)
|
||||
{
|
||||
return (await client.SendRequest<GeneralItemMessages<T>.Items>(ApiEndpoint, HttpMethod.Get, new ApiParameterCollection
|
||||
{
|
||||
["offset"] = offset,
|
||||
["count"] = count,
|
||||
})).EnsureOk().Items;
|
||||
}
|
||||
|
||||
public override async Task<T> Save(T item)
|
||||
{
|
||||
if (item.Id == 0)
|
||||
|
||||
Reference in New Issue
Block a user