Package zendesk.support
Class CommentResponse
- java.lang.Object
-
- zendesk.support.CommentResponse
-
public class CommentResponse extends java.lang.Object
This is a model class for a CommentResponse object that will be fetched by theRequestProvider
as part ofCommentsResponse
.- See Also:
- Getting Comments
-
-
Constructor Summary
Constructors Constructor and Description CommentResponse()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.util.List<Attachment>
getAttachments()
Gets the attachments of the commentjava.lang.Long
getAuthorId()
Gets the ID of the author who created the comment.java.lang.String
getBody()
Gets the body of the comment in plain textjava.util.Date
getCreatedAt()
Gets the date that the comment was created atjava.lang.String
getHtmlBody()
Gets the HTML body of the commentjava.lang.Long
getId()
Gets the ID of the commentjava.lang.String
getRequestId()
Gets the ID of the request that this comment belongs tojava.lang.String
getUrl()
Gets the API URL of the commentboolean
isPublic()
Checks if this comment is public or notvoid
setAttachments(java.util.List<Attachment> attachments)
Sets the attachments of the commentvoid
setAuthorId(java.lang.Long authorId)
Sets the ID of the author who created the commentvoid
setBody(java.lang.String body)
Sets the body of the comment in plain textvoid
setCreatedAt(java.util.Date createdAt)
Sets the date that the comment that the comment was created atvoid
setId(java.lang.Long id)
Sets the id of the comment
-
-
-
Method Detail
-
getUrl
public java.lang.String getUrl()
Gets the API URL of the comment- Returns:
- the API url of the comment
-
getId
public java.lang.Long getId()
Gets the ID of the comment- Returns:
- the ID of the comment
-
setId
public void setId(java.lang.Long id)
Sets the id of the comment- Parameters:
id
- the id to set
-
getRequestId
public java.lang.String getRequestId()
Gets the ID of the request that this comment belongs to- Returns:
- the ID of the request that this comment belongs to
-
getBody
public java.lang.String getBody()
Gets the body of the comment in plain text- Returns:
- the body of the comment in plain text
-
setBody
public void setBody(java.lang.String body)
Sets the body of the comment in plain text- Parameters:
body
- the body of the comment in plain text
-
getHtmlBody
public java.lang.String getHtmlBody()
Gets the HTML body of the comment- Returns:
- the HTML body of the comment
-
isPublic
public boolean isPublic()
Checks if this comment is public or not- Returns:
- true if the comment is public, false otherwise
-
getAuthorId
public java.lang.Long getAuthorId()
Gets the ID of the author who created the comment.- Returns:
- the ID of the author who created the comment.
-
setAuthorId
public void setAuthorId(java.lang.Long authorId)
Sets the ID of the author who created the comment- Parameters:
authorId
- the ID of the author to set
-
getAttachments
public java.util.List<Attachment> getAttachments()
Gets the attachments of the comment- Returns:
- the attachments of the comment
-
setAttachments
public void setAttachments(java.util.List<Attachment> attachments)
Sets the attachments of the comment- Parameters:
attachments
- the attachments to set
-
getCreatedAt
public java.util.Date getCreatedAt()
Gets the date that the comment was created at- Returns:
- the date that the comment was created at
-
setCreatedAt
public void setCreatedAt(java.util.Date createdAt)
Sets the date that the comment that the comment was created at- Parameters:
createdAt
- the date to set
-
-