From b7e39b59fd0fc7b5610ebff29035bf622079e0d8 Mon Sep 17 00:00:00 2001 From: ivarlovlie Date: Wed, 5 Oct 2022 20:45:21 +0800 Subject: refactor: Change file structure --- .../src/Endpoints/V1/Entries/EntryQueryResponse.cs | 37 ++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 code/api/src/Endpoints/V1/Entries/EntryQueryResponse.cs (limited to 'code/api/src/Endpoints/V1/Entries/EntryQueryResponse.cs') diff --git a/code/api/src/Endpoints/V1/Entries/EntryQueryResponse.cs b/code/api/src/Endpoints/V1/Entries/EntryQueryResponse.cs new file mode 100644 index 0000000..b1b07a3 --- /dev/null +++ b/code/api/src/Endpoints/V1/Entries/EntryQueryResponse.cs @@ -0,0 +1,37 @@ +namespace IOL.GreatOffice.Api.Endpoints.V1.Entries; + +/// +/// Response given for a successful query. +/// +public class EntryQueryResponse +{ + /// + public EntryQueryResponse() { + Results = new List(); + } + + /// + /// List of entries. + /// + public List Results { get; set; } + + /// + /// Current page. + /// + public int Page { get; set; } + + /// + /// Current page size (amount of entries). + /// + public int PageSize { get; set; } + + /// + /// Total amount of entries in query. + /// + public int TotalSize { get; set; } + + /// + /// Total amount of page(s) in query. + /// + public int TotalPageCount { get; set; } +} -- cgit v1.3