From 11be5df857a74fa8ee1c9dcb661a293ed9f09536 Mon Sep 17 00:00:00 2001 From: ivarlovlie Date: Mon, 14 Nov 2022 10:37:56 +0700 Subject: feat: Remove old time tracker models, routes and entities --- .../src/Endpoints/V1/Entries/EntryQueryPayload.cs | 60 ---------------------- 1 file changed, 60 deletions(-) delete mode 100644 code/api/src/Endpoints/V1/Entries/EntryQueryPayload.cs (limited to 'code/api/src/Endpoints/V1/Entries/EntryQueryPayload.cs') diff --git a/code/api/src/Endpoints/V1/Entries/EntryQueryPayload.cs b/code/api/src/Endpoints/V1/Entries/EntryQueryPayload.cs deleted file mode 100644 index 763ac8b..0000000 --- a/code/api/src/Endpoints/V1/Entries/EntryQueryPayload.cs +++ /dev/null @@ -1,60 +0,0 @@ -namespace IOL.GreatOffice.Api.Endpoints.V1.Entries; - -/// -/// Query model for querying time entries. -/// -public class EntryQueryPayload -{ - /// - /// Duration to filter with. - /// - public TimeEntryQueryDuration Duration { get; set; } - - /// - /// List of categories to filter with. - /// - public List Categories { get; set; } - - /// - /// List of labels to filter with. - /// - public List Labels { get; set; } - - /// - /// Date range to filter with, only respected if Duration is set to TimeEntryQueryDuration.DATE_RANGE. - /// - /// - public QueryDateRange DateRange { get; set; } - - /// - /// Spesific date to filter with, only respected if Duration is set to TimeEntryQueryDuration.SPECIFIC_DATE. - /// - /// - public DateTime SpecificDate { get; set; } - - /// - /// Optional page number to show, goes well with PageSize. - /// - public int Page { get; set; } - - /// - /// Optional page size to show, goes well with Page. - /// - public int PageSize { get; set; } - - /// - /// Represents a date range. - /// - public class QueryDateRange - { - /// - /// Range start - /// - public DateTime From { get; set; } - - /// - /// Range end - /// - public DateTime To { get; set; } - } -} -- cgit v1.3