Package com.zendesk.sdk.model.request
Class RequestUpdates
- java.lang.Object
-
- com.zendesk.sdk.model.request.RequestUpdates
-
public class RequestUpdates extends java.lang.Object
Represents updates (new comments) to Requests that exist in Zendesk
-
-
Constructor Summary
Constructors Constructor and Description RequestUpdates(java.util.Map<java.lang.String,java.lang.Integer> requestsWithUpdates)
Creates an instance with the request updates
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description boolean
equals(java.lang.Object o)
java.util.Map<java.lang.String,java.lang.Integer>
getRequestsWithUpdates()
Gets the map of request IDs to their count of updates.int
getUpdateCount()
Gets the number of updates to requestsint
hashCode()
boolean
hasUpdates()
Checks if there are any request with updates
-
-
-
Method Detail
-
hasUpdates
public boolean hasUpdates()
Checks if there are any request with updates- Returns:
- true if any requests have updates
-
getUpdateCount
public int getUpdateCount()
Gets the number of updates to requests- Returns:
- the number of updates to requests
-
getRequestsWithUpdates
public java.util.Map<java.lang.String,java.lang.Integer> getRequestsWithUpdates()
Gets the map of request IDs to their count of updates. If a request ID has no updates (ie, no new comments), it will not appear in the map.- Returns:
- the map of request IDs to their count of updates
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-