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; }
}
}