Table of Contents

Class TimeRangeFilter

Namespace
GastroSky.Models.Filters
Assembly
GastroSky.Models.dll

Query filter for making GET endpoints only return results within a given time range.

public sealed class TimeRangeFilter
Inheritance
TimeRangeFilter
Inherited Members

Properties

FromUTC

Inclusive Unix-timestamp from where on to return results.

public long FromUTC { get; set; }

Property Value

long

ToUTC

Inclusive Unix-timestamp until when to return results.

public long ToUTC { get; set; }

Property Value

long

Methods

Clamp()

Fix illegal values.

public void Clamp()