public static class Storefront.CollectionConnection extends AbstractResponse<Storefront.CollectionConnection>
optimisticData, responseData| Constructor and Description |
|---|
CollectionConnection() |
CollectionConnection(JsonObject fields) |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<Storefront.CollectionEdge> |
getEdges()
A list of edges.
|
java.lang.String |
getGraphQlTypeName() |
java.util.List<Storefront.Collection> |
getNodes()
A list of the nodes contained in CollectionEdge.
|
Storefront.PageInfo |
getPageInfo()
Information to aid in pagination.
|
java.lang.String |
getTotalCount()
The total count of Collections.
|
Storefront.CollectionConnection |
setEdges(java.util.List<Storefront.CollectionEdge> arg) |
Storefront.CollectionConnection |
setNodes(java.util.List<Storefront.Collection> arg) |
Storefront.CollectionConnection |
setPageInfo(Storefront.PageInfo arg) |
Storefront.CollectionConnection |
setTotalCount(java.lang.String arg) |
boolean |
unwrapsToObject(java.lang.String key) |
collectNodes, get, getFieldName, getKey, jsonAsArray, jsonAsBoolean, jsonAsDouble, jsonAsInteger, jsonAsObject, jsonAsString, withAliaspublic CollectionConnection()
public CollectionConnection(JsonObject fields)
throws SchemaViolationError
SchemaViolationErrorpublic java.lang.String getGraphQlTypeName()
public java.util.List<Storefront.CollectionEdge> getEdges()
public Storefront.CollectionConnection setEdges(java.util.List<Storefront.CollectionEdge> arg)
public java.util.List<Storefront.Collection> getNodes()
public Storefront.CollectionConnection setNodes(java.util.List<Storefront.Collection> arg)
public Storefront.PageInfo getPageInfo()
public Storefront.CollectionConnection setPageInfo(Storefront.PageInfo arg)
public java.lang.String getTotalCount()
public Storefront.CollectionConnection setTotalCount(java.lang.String arg)
public boolean unwrapsToObject(java.lang.String key)
unwrapsToObject in class AbstractResponse<Storefront.CollectionConnection>