Class CreateMessageReminderApiRequest
java.lang.Object
com.github.jamesnetherton.zulip.client.api.core.ZulipApiRequest
com.github.jamesnetherton.zulip.client.api.message.request.CreateMessageReminderApiRequest
- All Implemented Interfaces:
ExecutableApiRequest<Integer>
public class CreateMessageReminderApiRequest
extends ZulipApiRequest
implements ExecutableApiRequest<Integer>
Zulip API request builder for creating a message reminder.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreateMessageReminderApiRequest(ZulipHttpClient client, long messageId, Instant scheduledDeliveryTimestamp) Constructs aCreateMessageReminderApiRequest. -
Method Summary
Modifier and TypeMethodDescriptionexecute()Executes the Zulip API request for creating a message reminder.Sets the note associated with the reminder shown in the Notification Bot message.Methods inherited from class com.github.jamesnetherton.zulip.client.api.core.ZulipApiRequest
client, getParam, getParam, getParams, putParam, putParamAsJsonString, putParamAsWrappedObject
-
Field Details
-
MESSAGE_ID
- See Also:
-
NOTE
- See Also:
-
SCHEDULED_DELIVERY_TIMESTAMP
- See Also:
-
-
Constructor Details
-
CreateMessageReminderApiRequest
public CreateMessageReminderApiRequest(ZulipHttpClient client, long messageId, Instant scheduledDeliveryTimestamp) Constructs aCreateMessageReminderApiRequest.- Parameters:
client- The Zulip HTTP clientmessageId- The id of the previously sent message to reference in the message reminderscheduledDeliveryTimestamp- The timestamp for when the message reminder will be sent
-
-
Method Details
-
withNote
Sets the note associated with the reminder shown in the Notification Bot message.- Parameters:
note- The reminder note- Returns:
- This
CreateMessageReminderApiRequestinstance - See Also:
-
execute
Executes the Zulip API request for creating a message reminder.- Specified by:
executein interfaceExecutableApiRequest<Integer>- Returns:
- The id of the created message reminder
- Throws:
ZulipClientException- if the request was not successful
-