Interface RecipientRequest.Visitor
-
- All Implemented Interfaces:
public interface RecipientRequest.Visitor<T extends Object>An interface that defines how to map each variant of RecipientRequest to a value of type T.
-
-
Method Summary
Modifier and Type Method Description abstract TvisitUserRecipient(String userRecipient)The ID of the user which is used as the reference for the recipient. abstract TvisitInlineIdentifyUser(InlineIdentifyUserRequest inlineIdentifyUser)A set of parameters to inline-identify a user with. abstract TvisitInlineObject(InlineObjectRequest inlineObject)A custom /concepts/objects entity which belongs to a collection. Tunknown(JsonValue json)Maps an unknown variant of RecipientRequest to a value of type T. -
-
Method Detail
-
visitUserRecipient
abstract T visitUserRecipient(String userRecipient)
The ID of the user which is used as the reference for the recipient.
-
visitInlineIdentifyUser
abstract T visitInlineIdentifyUser(InlineIdentifyUserRequest inlineIdentifyUser)
A set of parameters to inline-identify a user with. Inline identifying the user will ensure that the user is available before the request is executed in Knock. It will perform an upsert for the user you're supplying, replacing any properties specified.
-
visitInlineObject
abstract T visitInlineObject(InlineObjectRequest inlineObject)
A custom /concepts/objects entity which belongs to a collection.
-
unknown
T unknown(JsonValue json)
Maps an unknown variant of RecipientRequest to a value of type T.
An instance of RecipientRequest 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.
-
-
-
-