public static class Storefront.Comment extends AbstractResponse<Storefront.Comment> implements Storefront.Node
optimisticData, responseData| Modifier and Type | Method and Description |
|---|---|
Storefront.CommentAuthor |
getAuthor()
The comment’s author.
|
java.lang.String |
getContent()
Stripped content of the comment, single line with HTML tags removed.
|
java.lang.String |
getContentHtml()
The content of the comment, complete with HTML formatting.
|
java.lang.String |
getGraphQlTypeName() |
ID |
getId()
A globally-unique ID.
|
Storefront.Comment |
setAuthor(Storefront.CommentAuthor arg) |
Storefront.Comment |
setContent(java.lang.String arg) |
Storefront.Comment |
setContentHtml(java.lang.String arg) |
boolean |
unwrapsToObject(java.lang.String key) |
collectNodes, get, getFieldName, getKey, jsonAsArray, jsonAsBoolean, jsonAsDouble, jsonAsInteger, jsonAsObject, jsonAsString, withAliaspublic Comment()
public Comment(JsonObject fields)
throws SchemaViolationError
SchemaViolationErrorpublic java.lang.String getGraphQlTypeName()
getGraphQlTypeName in interface Storefront.NodegetGraphQlTypeName in interface Nodepublic Storefront.CommentAuthor getAuthor()
public Storefront.Comment setAuthor(Storefront.CommentAuthor arg)
public java.lang.String getContent()
public Storefront.Comment setContent(java.lang.String arg)
public java.lang.String getContentHtml()
public Storefront.Comment setContentHtml(java.lang.String arg)
public ID getId()
getId in interface Storefront.NodegetId in interface Nodepublic boolean unwrapsToObject(java.lang.String key)
unwrapsToObject in class AbstractResponse<Storefront.Comment>