Package com.linecorp.bot.client
Class RetryableLineMessagingClientImpl
- java.lang.Object
-
- com.linecorp.bot.client.RetryableLineMessagingClientImpl
-
- All Implemented Interfaces:
RetryableLineMessagingClient
public class RetryableLineMessagingClientImpl extends java.lang.Object implements RetryableLineMessagingClient
Proxy implementation ofRetryableLineMessagingClient
to hind internal implementation.
-
-
Constructor Summary
Constructors Constructor Description RetryableLineMessagingClientImpl(com.linecorp.bot.client.LineMessagingService retrofitImpl)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.concurrent.CompletableFuture<com.linecorp.bot.model.response.BotApiResponse>
broadcast(java.util.UUID retryKey, com.linecorp.bot.model.Broadcast broadcast)
Sends push messages to multiple users at any time.java.util.concurrent.CompletableFuture<com.linecorp.bot.model.response.BotApiResponse>
multicast(java.util.UUID retryKey, com.linecorp.bot.model.Multicast multicast)
Send messages to multiple users at any time.java.util.concurrent.CompletableFuture<com.linecorp.bot.model.response.BotApiResponse>
narrowcast(java.util.UUID retryKey, com.linecorp.bot.model.Narrowcast narrowcast)
Sends a push message to multiple users.java.util.concurrent.CompletableFuture<com.linecorp.bot.model.response.BotApiResponse>
pushMessage(java.util.UUID retryKey, com.linecorp.bot.model.PushMessage pushMessage)
Send messages to users when you want to.
-
-
-
Method Detail
-
pushMessage
public java.util.concurrent.CompletableFuture<com.linecorp.bot.model.response.BotApiResponse> pushMessage(java.util.UUID retryKey, com.linecorp.bot.model.PushMessage pushMessage)
Description copied from interface:RetryableLineMessagingClient
Send messages to users when you want to.INFO: Use of the Push Message API is limited to certain plans.
- Specified by:
pushMessage
in interfaceRetryableLineMessagingClient
- See Also:
- //developers.line.me/en/reference/messaging-api/#send-push-message
-
multicast
public java.util.concurrent.CompletableFuture<com.linecorp.bot.model.response.BotApiResponse> multicast(java.util.UUID retryKey, com.linecorp.bot.model.Multicast multicast)
Description copied from interface:RetryableLineMessagingClient
Send messages to multiple users at any time. IDs of groups or rooms cannot be used.INFO: Only available for plans which support push messages. Messages cannot be sent to groups or rooms.
INFO: Use IDs returned via the webhook event of source users. IDs of groups or rooms cannot be used. Do not use the LINE ID found on the LINE app.
- Specified by:
multicast
in interfaceRetryableLineMessagingClient
- See Also:
- //developers.line.me/en/reference/messaging-api/#send-multicast-messages
-
broadcast
public java.util.concurrent.CompletableFuture<com.linecorp.bot.model.response.BotApiResponse> broadcast(java.util.UUID retryKey, com.linecorp.bot.model.Broadcast broadcast)
Description copied from interface:RetryableLineMessagingClient
Sends push messages to multiple users at any time. Note: LINE@ accounts cannot call this API endpoint. Please migrate it to a LINE official account. For more information, see Migration of LINE@ accounts.- Specified by:
broadcast
in interfaceRetryableLineMessagingClient
-
narrowcast
public java.util.concurrent.CompletableFuture<com.linecorp.bot.model.response.BotApiResponse> narrowcast(java.util.UUID retryKey, com.linecorp.bot.model.Narrowcast narrowcast)
Description copied from interface:RetryableLineMessagingClient
Sends a push message to multiple users. You can specify recipients using attributes (such as age, gender, OS, and region) or by retargeting (audiences). Messages cannot be sent to groups or rooms.Note: LINE-@ accounts cannot call this API endpoint. Please migrate it to a LINE official account. For more information, see Migration of LINE@ accounts.
- Specified by:
narrowcast
in interfaceRetryableLineMessagingClient
-
-