raphael
60888fd63c
- senders, which now have a firebase token are added as their own table in the database - firebase token api call added, which allows a user to connect a sender id to a firebase token - firebase library not yet connected to the saved firebase tokens
28 lines
423 B
Elixir
28 lines
423 B
Elixir
defmodule Bump.Messages do
|
|
alias Bump.Database
|
|
alias Bump.Firebase
|
|
|
|
def pop(sender) do
|
|
Database.pop(sender)
|
|
end
|
|
|
|
def peek(sender) do
|
|
Database.peek(sender)
|
|
end
|
|
|
|
def list(sender, minutes) do
|
|
Database.list(sender, minutes)
|
|
end
|
|
|
|
def clear(sender) do
|
|
Database.clear(sender)
|
|
end
|
|
|
|
def push(sender, message) do
|
|
Database.push(sender, message)
|
|
Firebase.push(sender, message)
|
|
end
|
|
|
|
|
|
end
|