Class ResponseBodyDto<T>
Every request should return this, even if no items are included in it.
If Items is not
null or empty, it means that the request was successful.
public sealed class ResponseBodyDto<T>
Type Parameters
T
- Inheritance
-
ResponseBodyDto<T>
- Inherited Members
Constructors
ResponseBodyDto()
Parameterless ctor.
public ResponseBodyDto()
Properties
Count
The total amount of items potentially available to fetch.
public long Count { get; set; }
Property Value
Items
This can be empty if the request succeeded and there are no items to return.
public ICollection<T> Items { get; set; }
Property Value
- ICollection<T>
Type
The type of the items returned. Can be null if the request was successful but nothing's returned (e.g. a status 201).
public string? Type { get; set; }