| Facets Class |
Namespace: Apptus.ESales.Connector
public class Facets
The Facets type exposes the following members.
| Name | Description | |
|---|---|---|
| Facets |
Create a new empty Facets.
| |
| Facets(String, IEnumerableString) |
Create a new Facets with the given attribute and values.
| |
| Facets(String, String) |
Create a new Facets with the given attribute and values.
|
| Name | Description | |
|---|---|---|
| Add(String, IEnumerableString) |
Return a new Facets with the given attribute and values added.
| |
| Add(String, String) |
Return a new Facets with the given attribute and values added.
| |
| AddRange |
Return a new Facets with the given attribute range added. If a range of the
current attribute already existed, it will replace the existing one. Note that
facet ranges are inclusive.
| |
| Equals | (Overrides ObjectEquals(Object).) | |
| Finalize | (Inherited from Object.) | |
| GetHashCode | (Overrides ObjectGetHashCode.) | |
| GetType | (Inherited from Object.) | |
| MemberwiseClone | (Inherited from Object.) | |
| Parse |
Create a Facets object from the source string.
| |
| Remove |
Return a new Facets with the given attribute removed.
| |
| Toggle |
Toggle the given attribute and value.
| |
| ToString |
Builds and returns a string on the facet argument format.
(Overrides ObjectToString.) |
Facets f = new Facets("color", "yellow", "blue").Add("brand", "nike"); // f.ToString() is: brand:nike,color:blue|yellow ArgMap panelArguments = new ArgMap(); panelArguments.Add("facets", f); // ... other arguments...
ToString()
Facets f = Facets.Parse(facetsString);
f = f.Toggle(clickedAttribute, clickedValue); panelArguments.Add("facets", f); // ... add other arguments and send request...