GetAll also for child client
This commit is contained in:
@@ -5,8 +5,4 @@ namespace Pilz.Net.Api.Client;
|
||||
|
||||
public abstract class BaseItemClient<T>(IApiClient client) : BaseClient<T>(client), IBaseItemClient<T> where T : IDataObject
|
||||
{
|
||||
public virtual async Task<IEnumerable<T>> GetAll()
|
||||
{
|
||||
return (await client.SendRequest<GeneralItemMessages<T>.Items>(ApiEndpoint, HttpMethod.Get)).EnsureOk().Items;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user