Class SearchObject
A search object has a set of bool and string parameters for conducting a query using the INatManager.
Namespace: JoshAaronMiller.INaturalist
Assembly: cs.temp.dll.dll
Syntax
public abstract class SearchObject
Fields
boolParams
Declaration
protected Dictionary<string, bool> boolParams
Field Value
Type | Description |
---|---|
Dictionary<String, Boolean> |
stringParams
Declaration
protected Dictionary<string, string> stringParams
Field Value
Type | Description |
---|---|
Dictionary<String, String> |
Methods
RemoveBooleanParameter(SearchObject.BooleanParameter)
Remove a parameter from the search.
Declaration
public void RemoveBooleanParameter(SearchObject.BooleanParameter key)
Parameters
Type | Name | Description |
---|---|---|
SearchObject.BooleanParameter | key | The key to remove. |
RemoveStringParameter(SearchObject.StringParameter)
Remove a parameter from the search.
Declaration
public void RemoveStringParameter(SearchObject.StringParameter key)
Parameters
Type | Name | Description |
---|---|---|
SearchObject.StringParameter | key | The key to remove. |
SetBooleanParameter(SearchObject.BooleanParameter, Boolean)
Add a parameter from the search.
Declaration
public void SetBooleanParameter(SearchObject.BooleanParameter key, bool value)
Parameters
Type | Name | Description |
---|---|---|
SearchObject.BooleanParameter | key | The key to add. |
Boolean | value | The value to add. |
SetStringParameter(SearchObject.StringParameter, String)
Add a parameter from the search.
Declaration
public void SetStringParameter(SearchObject.StringParameter key, string value)
Parameters
Type | Name | Description |
---|---|---|
SearchObject.StringParameter | key | The key to add. |
String | value | The value to add. |
ToUrlParameters()
Returns this search object as a string of URL parameters.
Declaration
public string ToUrlParameters()
Returns
Type | Description |
---|---|
String | A string of URL parameters |