Add DateTime and numeric constructors to filters #119
Labels
filters
Stories related to queries and filters.
good first issue
groomed
The issue has been groomed and should be in a good shape.
hacktoberfest
help wanted
up-for-grabs
Motivation
When using filters, the developer always specifies the element or attribute path (the predicate) and a
value
to filter by. The value has to be formatted specifically in order for the SDK to understand it.Design guidelines
Filter
class that will acceptT
instead ofstring
for thevalue
parameter in its constructorFilter
class will storeT
s instead ofstring
s in theValues
propertyDateTime
anddecimal
constructors to all applicable filters.Filter
that acceptsobject
s as valuesGetQueryStringParameter()
method ofFilter
will use pattern matching to distinguish between various types and will behave according to the specification:DateTime
values to ISO-8601"##########.##########"
Example
References
Pattern matching:
The text was updated successfully, but these errors were encountered: