Model: EventFilter
A model is required to encapsulate configuration settings for filtering events retrieved from the feed API. The purpose of this model will be to track the feed API specific criteria that will be used to query the appropriate data. This model is specified as follows:
Properties:
-
range
:- Represent the time period to retrieve
- Restricted by enumeration:
EventRange
-
magnitude
:- Represents the magnitude of the events to retrieve
- Restricted by enumeration:
EventMag
Enumerations:
-
EventRange
:- Hour = 'hour'
- Day = 'day'
- Week = 'week'
- Month = 'month'
-
EventMag
:- Significant = 'significant'
- M45 = '4.5'
- M25 = '2.5'
- M10 = '1.0
- All = 'all'