Package zendesk.support
Class Request
- java.lang.Object
-
- zendesk.support.Request
-
public class Request extends java.lang.Object
This is a model class for a Request object that will be created by theRequestProvider
.- See Also:
- Requests
-
-
Constructor Summary
Constructors Constructor and Description Request()
Empty constructor for gson
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.util.List<java.lang.Long>
getCollaboratorIds()
Gets the IDs of all of the users who are collaborators on the Requestjava.lang.Integer
getCommentCount()
Gets the number of comments on the Requestjava.util.Date
getCreatedAt()
Gets the date that the Request was created atjava.lang.String
getDescription()
Gets the description of the Requestjava.util.Date
getDueAt()
Gets the date that the Request is due atComment
getFirstComment()
Gets the first comment from the Request.java.lang.String
getId()
Gets the ID of the RequestComment
getLastComment()
Gets the last comment from the Request.java.util.List<User>
getLastCommentingAgents()
Gets the last 5 commenting agents.java.lang.Long
getOrganizationId()
Gets the ID of the Organization that the Request is associated withjava.lang.String
getPriority()
Gets the priority of the Requestjava.util.Date
getPublicUpdatedAt()
Gets the date that the Request was publicly updated atjava.lang.Long
getRequesterId()
Gets the ID of the user who requested the RequestRequestStatus
getStatus()
Gets the status of the Requestjava.lang.String
getSubject()
Gets the subject of the Requestjava.lang.String
getType()
Gets the type of the Requestjava.util.Date
getUpdatedAt()
Gets the date that the Request was updated atjava.lang.String
getUrl()
Gets the API URL of the Requestvoid
setComment(EndUserComment comment)
Sets the comment for the Request.
-
-
-
Method Detail
-
getId
public java.lang.String getId()
Gets the ID of the Request- Returns:
- the ID of the Request
-
getUrl
public java.lang.String getUrl()
Gets the API URL of the Request- Returns:
- the API url of the Request
-
getSubject
public java.lang.String getSubject()
Gets the subject of the Request- Returns:
- the subject of the Request
-
getDescription
public java.lang.String getDescription()
Gets the description of the Request- Returns:
- the description of the Request
-
getStatus
public RequestStatus getStatus()
Gets the status of the Request- Returns:
- the status of the Request
-
getPriority
public java.lang.String getPriority()
Gets the priority of the Request- Returns:
- the priority of the Request
-
getType
public java.lang.String getType()
Gets the type of the Request- Returns:
- the type of the Request
-
getOrganizationId
public java.lang.Long getOrganizationId()
Gets the ID of the Organization that the Request is associated with- Returns:
- the ID of the Organization that the Request is associated with
-
getRequesterId
public java.lang.Long getRequesterId()
Gets the ID of the user who requested the Request- Returns:
- the ID of the user who requested the Request
-
getCollaboratorIds
public java.util.List<java.lang.Long> getCollaboratorIds()
Gets the IDs of all of the users who are collaborators on the Request- Returns:
- the IDs of all of the users who are collaborators on the Request
-
getDueAt
public java.util.Date getDueAt()
Gets the date that the Request is due at- Returns:
- the date that the Request was created at
-
getCreatedAt
public java.util.Date getCreatedAt()
Gets the date that the Request was created at- Returns:
- the date that the Request was created at
-
getUpdatedAt
public java.util.Date getUpdatedAt()
Gets the date that the Request was updated at- Returns:
- the date that the Request was updated at
-
getPublicUpdatedAt
public java.util.Date getPublicUpdatedAt()
Gets the date that the Request was publicly updated at- Returns:
- the date that the Request was publicly updated at
-
setComment
public void setComment(EndUserComment comment)
Sets the comment for the Request. Used when updating the request.- Parameters:
comment
- the comment to set
-
getCommentCount
public java.lang.Integer getCommentCount()
Gets the number of comments on the Request- Returns:
- the number of comments on the Request
-
getLastComment
public Comment getLastComment()
Gets the last comment from the Request.- Returns:
- the last comment from the Request
-
getFirstComment
public Comment getFirstComment()
Gets the first comment from the Request.- Returns:
- the first comment from the Request
-
getLastCommentingAgents
public java.util.List<User> getLastCommentingAgents()
Gets the last 5 commenting agents.- Returns:
- the list of the last 5 commenting agents.
-
-