Class MessageSendRequest
- java.lang.Object
-
- com.gentics.contentnode.rest.model.request.MessageSendRequest
-
- All Implemented Interfaces:
Serializable
public class MessageSendRequest extends Object implements Serializable
Request to send messages to users/groups- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MessageSendRequest()
Create an empty instance
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getInstantTimeMinutes()
Gets the value of the instantTimeMinutes field.String
getMessage()
Message to be sent.List<String>
getParameters()
Optional list of parameters, that are filled into the message (if the message is an i18n key)List<Integer>
getToGroupId()
List of group IDs to send the messageList<Integer>
getToUserId()
List of user IDs to send the messageMap<String,String>
getTranslations()
Optional 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)
-
-
-
Method Detail
-
getMessage
public String getMessage()
Message to be sent. This may be an i18n key.
-
getTranslations
public Map<String,String> 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
public List<String> getParameters()
Optional list of parameters, that are filled into the message (if the message is an i18n key)- Returns:
- list of parameters
-
getToGroupId
public List<Integer> getToGroupId()
List of group IDs to send the message- Returns:
- list of group IDs
-
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
public void setMessage(String message)
-
-