summaryrefslogtreecommitdiffstats
path: root/server/src/Endpoints/V1/Entries/EntryQueryResponse.cs
blob: b1b07a3c8d52cad650553d9c2390b0206e39c133 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
namespace IOL.GreatOffice.Api.Endpoints.V1.Entries;

/// <summary>
/// Response given for a successful query.
/// </summary>
public class EntryQueryResponse
{
	/// <inheritdoc cref="EntryQueryResponse"/>
	public EntryQueryResponse() {
		Results = new List<TimeEntry.TimeEntryDto>();
	}

	/// <summary>
	/// List of entries.
	/// </summary>
	public List<TimeEntry.TimeEntryDto> Results { get; set; }

	/// <summary>
	/// Current page.
	/// </summary>
	public int Page { get; set; }

	/// <summary>
	/// Current page size (amount of entries).
	/// </summary>
	public int PageSize { get; set; }

	/// <summary>
	/// Total amount of entries in query.
	/// </summary>
	public int TotalSize { get; set; }

	/// <summary>
	/// Total amount of page(s) in query.
	/// </summary>
	public int TotalPageCount { get; set; }
}