Class Request



  • public class Request
    extends java.lang.Object
    This is a model class for a Request object that will be created by the RequestProvider.
    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 Request
      java.lang.Integer getCommentCount()
      Gets the number of comments on the Request
      java.util.Date getCreatedAt()
      Gets the date that the Request was created at
      java.util.List<CustomField> getCustomFields()
      Gets the custom fields on the Request
      java.lang.String getDescription()
      Gets the description of the Request
      java.util.Date getDueAt()
      Gets the date that the Request is due at
      Comment getFirstComment()
      Gets the first comment from the Request.
      java.lang.String getId()
      Gets the ID of the Request
      Comment 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 with
      java.lang.String getPriority()
      Gets the priority of the Request
      java.util.Date getPublicUpdatedAt()
      Gets the date that the Request was publicly updated at
      java.lang.Long getRequesterId()
      Gets the ID of the user who requested the Request
      RequestStatus getStatus()
      Gets the status of the Request
      java.lang.String getSubject()
      Gets the subject of the Request
      java.lang.String getType()
      Gets the type of the Request
      java.util.Date getUpdatedAt()
      Gets the date that the Request was updated at
      java.lang.String getUrl()
      Gets the API URL of the Request
      void setComment(EndUserComment comment)
      Sets the comment for the Request.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Request

        public Request()
        Empty constructor for gson
    • 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.
      • getCustomFields

        public java.util.List<CustomField> getCustomFields()
        Gets the custom fields on the Request
        Returns:
        the custom fields on the Request