public final class Comment extends GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Blogger API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
Modifier and Type | Class and Description |
---|---|
static class |
Comment.Author
The author of this Comment.
|
static class |
Comment.Blog
Data about the blog containing this comment.
|
static class |
Comment.InReplyTo
Data about the comment this is in reply to.
|
static class |
Comment.Post
Data about the post containing this comment.
|
GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
Comment() |
Modifier and Type | Method and Description |
---|---|
Comment |
clone() |
Comment.Author |
getAuthor()
The author of this Comment.
|
Comment.Blog |
getBlog()
Data about the blog containing this comment.
|
String |
getContent()
The actual content of the comment.
|
String |
getId()
The identifier for this resource.
|
Comment.InReplyTo |
getInReplyTo()
Data about the comment this is in reply to.
|
String |
getKind()
The kind of this entry.
|
Comment.Post |
getPost()
Data about the post containing this comment.
|
String |
getPublished()
RFC 3339 date-time when this comment was published.
|
String |
getSelfLink()
The API REST URL to fetch this resource from.
|
String |
getStatus()
The status of the comment (only populated for admin users).
|
String |
getUpdated()
RFC 3339 date-time when this comment was last updated.
|
Comment |
set(String fieldName,
Object value) |
Comment |
setAuthor(Comment.Author author)
The author of this Comment.
|
Comment |
setBlog(Comment.Blog blog)
Data about the blog containing this comment.
|
Comment |
setContent(String content)
The actual content of the comment.
|
Comment |
setId(String id)
The identifier for this resource.
|
Comment |
setInReplyTo(Comment.InReplyTo inReplyTo)
Data about the comment this is in reply to.
|
Comment |
setKind(String kind)
The kind of this entry.
|
Comment |
setPost(Comment.Post post)
Data about the post containing this comment.
|
Comment |
setPublished(String published)
RFC 3339 date-time when this comment was published.
|
Comment |
setSelfLink(String selfLink)
The API REST URL to fetch this resource from.
|
Comment |
setStatus(String status)
The status of the comment (only populated for admin users).
|
Comment |
setUpdated(String updated)
RFC 3339 date-time when this comment was last updated.
|
getFactory, setFactory, toPrettyString, toString
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public Comment.Author getAuthor()
null
for nonepublic Comment setAuthor(Comment.Author author)
author
- author or null
for nonepublic Comment.Blog getBlog()
null
for nonepublic Comment setBlog(Comment.Blog blog)
blog
- blog or null
for nonepublic String getContent()
null
for nonepublic Comment setContent(String content)
content
- content or null
for nonepublic String getId()
null
for nonepublic Comment setId(String id)
id
- id or null
for nonepublic Comment.InReplyTo getInReplyTo()
null
for nonepublic Comment setInReplyTo(Comment.InReplyTo inReplyTo)
inReplyTo
- inReplyTo or null
for nonepublic String getKind()
null
for nonepublic Comment setKind(String kind)
kind
- kind or null
for nonepublic Comment.Post getPost()
null
for nonepublic Comment setPost(Comment.Post post)
post
- post or null
for nonepublic String getPublished()
null
for nonepublic Comment setPublished(String published)
published
- published or null
for nonepublic String getSelfLink()
null
for nonepublic Comment setSelfLink(String selfLink)
selfLink
- selfLink or null
for nonepublic String getStatus()
null
for nonepublic Comment setStatus(String status)
status
- status or null
for nonepublic String getUpdated()
null
for nonepublic Comment setUpdated(String updated)
updated
- updated or null
for nonepublic Comment set(String fieldName, Object value)
set
in class GenericJson
public Comment clone()
clone
in class GenericJson
Copyright © 2011–2022 Google. All rights reserved.