You are here

public function SmsGatewayPluginInterface::parseDeliveryReports in SMS Framework 2.1.x

Same name and namespace in other branches
  1. 8 src/Plugin/SmsGatewayPluginInterface.php \Drupal\sms\Plugin\SmsGatewayPluginInterface::parseDeliveryReports()
  2. 2.x src/Plugin/SmsGatewayPluginInterface.php \Drupal\sms\Plugin\SmsGatewayPluginInterface::parseDeliveryReports()

Parses incoming delivery reports and returns the created delivery reports.

The request contains delivery reports pushed to the site in a format supplied by the gateway API. This method transforms the raw request into delivery report objects usable by SMS Framework.

Parameters

\Symfony\Component\HttpFoundation\Request $request: Request object containing the unprocessed delivery reports.

\Symfony\Component\HttpFoundation\Response $response: HTTP response to return to the server pushing the raw delivery reports.

Return value

\Drupal\sms\Message\SmsDeliveryReportInterface[] An array of delivery reports created from the request.

1 method overrides SmsGatewayPluginInterface::parseDeliveryReports()
SmsGatewayPluginBase::parseDeliveryReports in src/Plugin/SmsGatewayPluginBase.php
Parses incoming delivery reports and returns the created delivery reports.

File

src/Plugin/SmsGatewayPluginInterface.php, line 57

Class

SmsGatewayPluginInterface
Default implementation of SMS gateway plugin.

Namespace

Drupal\sms\Plugin

Code

public function parseDeliveryReports(Request $request, Response $response);