Class LanguageListResponse
java.lang.Object
com.gentics.contentnode.rest.model.response.GenericResponse
com.gentics.contentnode.rest.model.response.LanguageListResponse
- All Implemented Interfaces:
Serializable
Response for a language list request
- Author:
- norbert
- See Also:
-
Constructor Summary
ConstructorDescriptionEmpty constructorLanguageListResponse
(Message message, ResponseInfo responseInfo) Create an instance with given message and response info -
Method Summary
Modifier and TypeMethodDescriptionList of languagesTotal number of items presentboolean
True if more items are presentvoid
setHasMoreItems
(boolean hasMoreItems) Set true when more items are availablevoid
setLanguages
(List<ContentLanguage> languages) Set the list of languagesvoid
setNumItems
(Integer numItems) Set the total number of items presentMethods inherited from class com.gentics.contentnode.rest.model.response.GenericResponse
addMessage, getMessages, getResponseInfo, setMessages, setResponseInfo
-
Constructor Details
-
LanguageListResponse
public LanguageListResponse()Empty constructor -
LanguageListResponse
Create an instance with given message and response info- Parameters:
message
- messageresponseInfo
- response info
-
-
Method Details
-
getLanguages
List of languages- Returns:
- list of languages
-
isHasMoreItems
public boolean isHasMoreItems()True if more items are present- Returns:
- true if more items are present
-
getNumItems
Total number of items present- Returns:
- total number of items present
-
setLanguages
Set the list of languages- Parameters:
languages
- list of languages
-
setHasMoreItems
public void setHasMoreItems(boolean hasMoreItems) Set true when more items are available- Parameters:
hasMoreItems
- true if more items are available
-
setNumItems
Set the total number of items present- Parameters:
numItems
- total number of items present
-