pushover v0.0.2 Pushover.Model.Message

A message.

Attributes

  • data (type: String.t, default: nil) - Your message.
  • device (type: String.t, default: nil) - Your user's device name(s) to send the message directly (multiple devices may be separated by a comma).
  • title (type: String.t, default: nil) - Your message's title, otherwise your app name is used.
  • url (type: String.t, default: nil) - A supplementary URL to show with your message.
  • url_title (type: String.t, default: nil) - A title for your supplementary URL, otherwise just the URL is given.
  • priority (type: integer(), default: nil) - Send as -2 to generate no notification/alert, -1 to always send as a quiet notification, 0 (default), 1 to display as high-priority and bypass the user's quiet hours, or 2 to also require confirmation from the user. Retry and expire are required if sending emergency-priority (2) notifications.
  • 'retry' (type: integer(), default: nil) - How often (in seconds) the Pushover servvers will send the same notification to the user.
  • 'expire' (type: integer(), default: nil) - How many seconds your notification will continue to be retried.
  • sound (*type:*String.t, *default:*nil) - The name of the sound to override the user's default sound choice. *timestamp` - a Unix timestamp of your message's date and time to display to the user, rather than the time your message is received by Pushover's servers'.

Link to this section Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Link to this section Types

Link to this type

t()

t() :: %Pushover.Model.Message{
  data: String.t(),
  device: String.t(),
  expire: integer(),
  priority: integer(),
  retry: integer(),
  sound: String.t(),
  timestamp: integer(),
  title: String.t(),
  url: String.t(),
  url_title: String.t()
}

Link to this section Functions

Link to this function

decode(value, options)

decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.