Skip to content

Server models

Akseli Palén edited this page Jan 31, 2017 · 6 revisions

Events

Parameters:

  • db, to store events
  • io, to broadcast events

Locations

Emits changes:

  • location created
  • location removed

Markers

Payments

Get:

  • all payments

Emits changes

  • payment successful

Accounts

Methods:

  • getUser(String name)
  • getAccount(String email)

Emits changes:

  • user created
  • user banned

Account

Methods:

  • validatePassword(String password)
Clone this wiki locally