public class CompareList extends AbstractResponse<CompareList>
optimisticData, responseData| Constructor and Description |
|---|
CompareList() |
CompareList(com.google.gson.JsonObject fields) |
| Modifier and Type | Method and Description |
|---|---|
List<ComparableAttribute> |
getAttributes()
An array of attributes that can be used for comparing products
|
String |
getGraphQlTypeName() |
Integer |
getItemCount()
The number of items in the compare list
|
List<ComparableItem> |
getItems()
An array of products to compare
|
ID |
getUid()
The unique ID assigned to the compare list
|
CompareList |
setAttributes(List<ComparableAttribute> arg) |
CompareList |
setItemCount(Integer arg) |
CompareList |
setItems(List<ComparableItem> arg) |
CompareList |
setUid(ID arg) |
boolean |
unwrapsToObject(String key) |
collectNodes, get, getAsArray, getAsBoolean, getAsDouble, getAsInteger, getAsString, getFieldName, getKey, jsonAsArray, jsonAsBoolean, jsonAsDouble, jsonAsInteger, jsonAsObject, jsonAsString, readCustomField, withAliaspublic CompareList()
public CompareList(com.google.gson.JsonObject fields)
throws SchemaViolationError
SchemaViolationErrorpublic String getGraphQlTypeName()
public List<ComparableAttribute> getAttributes()
public CompareList setAttributes(List<ComparableAttribute> arg)
public Integer getItemCount()
public CompareList setItemCount(Integer arg)
public List<ComparableItem> getItems()
public CompareList setItems(List<ComparableItem> arg)
public ID getUid()
public CompareList setUid(ID arg)
public boolean unwrapsToObject(String key)
unwrapsToObject in class AbstractResponse<CompareList>Copyright © 2022 Adobe. All rights reserved.