Table of Contents

Class CalendarEventQuery

Namespace
MailFathom.Application.Calendar
Assembly
MailFathom.Application.dll

Asks for one bounded window of somebody's calendar.

public sealed record CalendarEventQuery : IEquatable<CalendarEventQuery>
Inheritance
CalendarEventQuery
Implements
Inherited Members

Remarks

Every read of the calendar is a window, because every view over it is: a month, a week, a day, and an agenda are four spans rather than four questions. An event is in the window when any part of it falls inside it, so a meeting that began before the window opened is still what the day it runs into shows.

The window is bounded by how many events it may answer with rather than by how long it may be. A span is what a caller genuinely asks about — a year of an agenda view is an ordinary request — while the number of rows is what decides the cost of answering, and a window whose events overflow the bound is reported as such by the count coming back full rather than being silently cut to a shorter span.

Fields

DefaultCount

How many events a request that names no count is answered with at most.

MaximumCount

The greatest number of events one window may answer with.

Properties

Count

Gets how many events the window answers with at most.

From

Gets the instant the window opens, which an event ending exactly there falls outside.

Origin

Gets the origin the window is narrowed to, or null for both.

Until

Gets the instant the window closes, which an event beginning exactly there falls outside.

Methods

Create(DateTimeOffset, DateTimeOffset, CalendarEventOrigin?, int?)

Builds a validated window from what a caller asked for.