Package zendesk.support
Class Comment
- java.lang.Object
-
- zendesk.support.Comment
-
public class Comment extends java.lang.Object
This is a model class for a Comment object that will be created by theRequestProvider
as part ofCommentsResponse
.- See Also:
- Getting Comments
-
-
Constructor Summary
Constructors Constructor and Description Comment()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.util.List<java.lang.String>
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<java.lang.String> 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 at
-
-
-
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
-
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<java.lang.String> getAttachments()
Gets the attachments of the comment- Returns:
- the attachments of the comment
-
setAttachments
public void setAttachments(java.util.List<java.lang.String> 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
-
-