GlpiSearchCriteria class Null safety
Represent a search criteria to be used in a search request with GlpiClient.searchItems
Constructors
- GlpiSearchCriteria(int field, GlpiItemType? type, dynamic value, GlpiSearchType searchType, {GlpiSearchLink? link, bool meta = false})
- Create a new search criteria for GlpiClient.searchItems link is the logical link between the search criteria field is the id of the search option (See : GlpiClient.listSearchOptions) meta is true if the search option is a meta one type is only used if the search option is a meta one searchType is the search type (See : GlpiSearchType) value is the value to search for See https://github.com/glpi-project/glpi/blob/master/apirest.md#search-items
Properties
- field ↔ int
-
id of the search option (See : GlpiClient.listSearchOptions)
read / write
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- link ↔ GlpiSearchLink?
-
The logical link between the search criteria
read / write
- meta ↔ bool
-
Is this criteria a meta one
read / write
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
- searchType ↔ GlpiSearchType
-
The search type (See : GlpiSearchType)
read / write
- type ↔ GlpiItemType?
-
Only used if the search option is a meta one
read / write
- value ↔ dynamic
-
The value to search for
read / write
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
toString(
) → String -
A string representation of this object. [...]
inherited
-
toUrlParameters(
int index) → Map< String, String> - Format a GlpiSearchCriteria to be used in a search request
Operators
-
operator ==(
Object other) → bool -
The equality operator. [...]
inherited