NotificationMessagesAsyncClient Class
- java.
lang. Object - com.
azure. communication. messages. NotificationMessagesAsyncClient
- com.
public final class NotificationMessagesAsyncClient
Initializes a new instance of the asynchronous NotificationMessagesClient type.
Method Summary
Modifier and Type | Method and Description |
---|---|
Mono<Binary |
downloadMedia(String mediaId)
Download the Media payload from a User to Business message. |
Mono<Response<Binary |
downloadMediaWithResponse(String mediaId, RequestOptions requestOptions)
Download the Media payload from a User to Business message. |
Mono<Send |
send(NotificationContent notificationContent)
Sends a notification message from Business to User. |
Mono<Response<Binary |
sendWithResponse(BinaryData notificationContent, RequestOptions requestOptions)
Sends a notification message from Business to User. |
Methods inherited from java.lang.Object
Method Details
downloadMedia
public Mono
Download the Media payload from a User to Business message.
Parameters:
Returns:
downloadMediaWithResponse
public Mono
Download the Media payload from a User to Business message.
Response Body Schema
BinaryData
Parameters:
Returns:
send
public Mono
Sends a notification message from Business to User.
Parameters:
Returns:
sendWithResponse
public Mono
Sends a notification message from Business to User.
Header Parameters
| ------------------------ | ------ | -------- | -------------------------------------------- |
| Name | Type | Required | Description |
| repeatability-request-id | String | No | Repeatability request ID header |
| repeatability-first-sent | String | No | Repeatability first sent header as HTTP-date |
You can add these to a request with RequestOptions#addHeader
Request Body Schema
{
kind: String(text/image/image_v0/document/video/audio/template) (Required)
channelRegistrationId: String (Required)
to (Required): [
String (Required)
]
}
Response Body Schema
{
receipts (Required): [
(Required){
messageId: String (Required)
to: String (Required)
}
]
}
Parameters:
Returns:
Applies to
Azure SDK for Java