You are here

interface PushNotificationsBroadcasterInterface in Push Notifications 8

Hierarchy

Expanded class hierarchy of PushNotificationsBroadcasterInterface

All classes that implement PushNotificationsBroadcasterInterface

File

src/PushNotificationsBroadcasterInterface.php, line 10
Contains \Drupal\push_notifications\PushNotificationsBroadcasterInterface.

Namespace

Drupal\push_notifications
View source
interface PushNotificationsBroadcasterInterface {

  /**
   * Set tokens.
   *
   * @param array $tokens Token list.
   */
  function setTokens($tokens);

  /**
   * Set payload.
   *
   * @param array $payload Payload.
   */
  function setMessage($payload);

  /**
   * Send the broadcast.
   */
  function sendBroadcast();

  /**
   * Retrieve results after broadcast was sent.
   *
   * @return array Array of data.
   */
  function getResults();

}

Members