public class SendNotificationTarget
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
SendNotificationTarget |
addPlaceholder(java.lang.String placeholder)
Add a placeholder.
|
SendNotificationTarget |
addPlaceholders(java.util.List<java.lang.String> placeholders)
Add placeholders to the target.
|
static SendNotificationTarget |
create()
Create a new notification target.
|
java.util.List<java.lang.String> |
getPlaceholders() |
UserIdList |
getUserIds() |
static SendNotificationTarget |
placeholders(java.lang.String... placeholders)
Create a new notification target with placeholders.
|
java.lang.String |
toString() |
static SendNotificationTarget |
users(UserIdList userIdList)
Create a new notification target with list of users.
|
public static SendNotificationTarget create()
public static SendNotificationTarget placeholders(java.lang.String... placeholders)
SendNotificationPlaceholders.Receivers
.placeholders
- list of placeholders. Invalid placeholders are going to be ignored.public static SendNotificationTarget users(UserIdList userIdList)
userIdList
- list of user to receive notification.public SendNotificationTarget addPlaceholder(java.lang.String placeholder)
SendNotificationPlaceholders.Receivers
.placeholder
- one of SendNotificationPlaceholders.Receivers
.public SendNotificationTarget addPlaceholders(java.util.List<java.lang.String> placeholders)
SendNotificationPlaceholders.Receivers
.placeholders
- one of SendNotificationPlaceholders.Receivers
.public UserIdList getUserIds()
public java.util.List<java.lang.String> getPlaceholders()
public java.lang.String toString()
toString
in class java.lang.Object
(c) Copyright GetSocial BV, 2022. All Rights Reserved.