Package com.courier.models.send
Interface SendMessageParams.Message.To.Visitor
-
- All Implemented Interfaces:
public interface SendMessageParams.Message.To.Visitor<T extends Object>
-
-
Method Summary
Modifier and Type Method Description abstract TvisitUserRecipient(UserRecipient userRecipient)Send to a specific user by user_id, email, phone_number, or list_id abstract TvisitAudienceRecipient(AudienceRecipient audienceRecipient)Send to all users in an audience abstract TvisitListRecipient(ListRecipient listRecipient)Send to all users in a specific list abstract TvisitListPatternRecipient(ListPatternRecipient listPatternRecipient)Send to users in lists matching a pattern abstract TvisitSlackRecipient(SlackRecipient slackRecipient)Send via Slack (channel, email, or user_id) abstract TvisitMsTeamsRecipient(MsTeamsRecipient msTeamsRecipient)Send via Microsoft Teams abstract TvisitPagerdutyRecipient(PagerdutyRecipient pagerdutyRecipient)Send via PagerDuty abstract TvisitWebhookRecipient(WebhookRecipient webhookRecipient)Send via webhook Tunknown(JsonValue json)Maps an unknown variant of To to a value of type T. -
-
Method Detail
-
visitUserRecipient
abstract T visitUserRecipient(UserRecipient userRecipient)
Send to a specific user by user_id, email, phone_number, or list_id
-
visitAudienceRecipient
abstract T visitAudienceRecipient(AudienceRecipient audienceRecipient)
Send to all users in an audience
-
visitListRecipient
abstract T visitListRecipient(ListRecipient listRecipient)
Send to all users in a specific list
-
visitListPatternRecipient
abstract T visitListPatternRecipient(ListPatternRecipient listPatternRecipient)
Send to users in lists matching a pattern
-
visitSlackRecipient
abstract T visitSlackRecipient(SlackRecipient slackRecipient)
Send via Slack (channel, email, or user_id)
-
visitMsTeamsRecipient
abstract T visitMsTeamsRecipient(MsTeamsRecipient msTeamsRecipient)
Send via Microsoft Teams
-
visitPagerdutyRecipient
abstract T visitPagerdutyRecipient(PagerdutyRecipient pagerdutyRecipient)
Send via PagerDuty
-
visitWebhookRecipient
abstract T visitWebhookRecipient(WebhookRecipient webhookRecipient)
Send via webhook
-
unknown
T unknown(JsonValue json)
Maps an unknown variant of To to a value of type T.
An instance of To can contain an unknown variant if it was deserialized from data that doesn't match any known variant. For example, if the SDK is on an older version than the API, then the API may respond with new variants that the SDK is unaware of.
-
-
-
-