Class MessageSendRequest
java.lang.Object
com.gentics.contentnode.rest.model.request.MessageSendRequest
- All Implemented Interfaces:
Serializable
Request to send messages to users/groups
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Gets the value of the instantTimeMinutes field.Message to be sent.Optional list of parameters, that are filled into the message (if the message is an i18n key)List of group IDs to send the messageList of user IDs to send the messageOptional map of translations per language code.void
setInstantTimeMinutes
(int instantTimeMinutes) Sets the value of the instantTimeMinutes field.void
setMessage
(String message) void
setParameters
(List<String> parameters) void
setToGroupId
(List<Integer> toGroupId) void
setToUserId
(List<Integer> toUserId) void
setTranslations
(Map<String, String> translations)
-
Constructor Details
-
MessageSendRequest
public MessageSendRequest()Create an empty instance
-
-
Method Details
-
getMessage
Message to be sent. This may be an i18n key. -
getTranslations
Optional map of translations per language code. If a translation for the adressees language is found here, it will be used.- Returns:
- translations per language code
-
getParameters
Optional list of parameters, that are filled into the message (if the message is an i18n key)- Returns:
- list of parameters
-
getToGroupId
List of group IDs to send the message- Returns:
- list of group IDs
-
getToUserId
List of user IDs to send the message- Returns:
-
getInstantTimeMinutes
public int getInstantTimeMinutes()Gets the value of the instantTimeMinutes field.- Returns:
- The value of the instantTimeMinutes field.
-
setInstantTimeMinutes
public void setInstantTimeMinutes(int instantTimeMinutes) Sets the value of the instantTimeMinutes field.- Parameters:
instantTimeMinutes
- The value to set the instantTimeMinutes field to.
-
setMessage
-
setTranslations
-
setParameters
-
setToGroupId
-
setToUserId
-