bump_server/lib/bump/messages.ex
raphael 745b0dc4f2 adds Firebase communication stump
- Firebase connection via Pigeon library
- sends bump to a single token at the moment
- encrypted test is sent as notification message
2021-12-30 13:06:26 +01:00

28 lines
426 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