Package zendesk.support
Class Comment
- java.lang.Object
-
- zendesk.support.Comment
-
public class Comment extends java.lang.ObjectThis is a model class for a Comment object that will be created by theRequestProvideras 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.LonggetAuthorId()Gets the ID of the author who created the comment.java.lang.StringgetBody()Gets the body of the comment in plain textjava.util.DategetCreatedAt()Gets the date that the comment was created atjava.lang.StringgetHtmlBody()Gets the HTML body of the commentjava.lang.LonggetId()Gets the ID of the commentjava.lang.StringgetRequestId()Gets the ID of the request that this comment belongs tojava.lang.StringgetUrl()Gets the API URL of the commentbooleanisPublic()Checks if this comment is public or notvoidsetAttachments(java.util.List<java.lang.String> attachments)Sets the attachments of the commentvoidsetAuthorId(java.lang.Long authorId)Sets the ID of the author who created the commentvoidsetBody(java.lang.String body)Sets the body of the comment in plain textvoidsetCreatedAt(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
-
-