GlpiSearchCriteria class
Represent a search criteria to be used in a search request with GlpiClient.search
Constructors
- GlpiSearchCriteria(int field, GlpiItemType? type, dynamic value, GlpiSearchType searchType, {GlpiSearchLink? link, bool meta = false})
- Create a new search criteria for GlpiClient.search 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)
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- link ↔ GlpiSearchLink?
-
The logical link between the search criteria
getter/setter pair
- meta ↔ bool
-
Is this criteria a meta one
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- searchType ↔ GlpiSearchType
-
The search type (See : GlpiSearchType)
getter/setter pair
- type ↔ GlpiItemType?
-
Only used if the search option is a meta one
getter/setter pair
- value ↔ dynamic
-
The value to search for
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent 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