/** * * @since 2.0.0 * * @param object $data */ protected function record_successful_outbound_message_batch($data) { if (empty($data->id)) { Prompt_Logging::add_error(Prompt_Enum_Error_Codes::OUTBOUND, __('Got an unrecognized outbound message batch response.', 'Postmatic'), array('result' => $data, 'post_id' => $this->batch->get_context()->get_post()->id())); return; } $this->batch->get_context()->get_post()->add_outbound_message_batch_ids($data->id); }
/** * * @since 2.0.0 * */ protected function schedule_next_chunk() { $this->client->post_instant_callback(array('metadata' => array('prompt/post_mailing/send_notifications', array($this->batch->get_context()->get_post()->id())))); }