pushito v0.1.0 Pushito.Notification View Source

This module represents the notification to be pushed. It contains all the information needed.

Link to this section Summary

Functions

Adds the apns_collapse_id to the notification

Adds the device_id to the notification

Adds the apns_expiration to the notification

Adds the apns_id to the notification

Adds the message to the notification

Adds the apns_priority to the notification

Adds the timeout to the notification

Adds the token to the notification

Adds the apns_topic to the notification

Returns an empty notification

Link to this section Types

Link to this type t() View Source
t() :: %Pushito.Notification{apns_collapse_id: String.t | nil, apns_expiration: integer, apns_id: String.t | nil, apns_priority: 5 | 10, apns_topic: String.t | nil, device_id: String.t | nil, message: map, timeout: integer, token: String.t | nil}

Link to this section Functions

Link to this function add_collapse_id(notification, collapse_id) View Source
add_collapse_id(t, integer) :: t

Adds the apns_collapse_id to the notification

Link to this function add_device_id(notification, device_id) View Source
add_device_id(t, String.t) :: t

Adds the device_id to the notification

Link to this function add_expiration(notification, expiration) View Source
add_expiration(t, integer) :: t

Adds the apns_expiration to the notification

Link to this function add_id(notification, id) View Source
add_id(t, integer) :: t

Adds the apns_id to the notification

Link to this function add_message(notification, message) View Source
add_message(t, map) :: t

Adds the message to the notification

Link to this function add_priority(notification, priority) View Source
add_priority(t, integer) :: t

Adds the apns_priority to the notification

Link to this function add_timeout(notification, timeout) View Source
add_timeout(t, integer) :: t

Adds the timeout to the notification

Link to this function add_token(notification, token) View Source
add_token(t, String.t) :: t

Adds the token to the notification

Link to this function add_topic(notification, topic) View Source
add_topic(t, integer) :: t

Adds the apns_topic to the notification

Returns an empty notification