Skip to content
BMillman19 edited this page Jul 15, 2012 · 3 revisions
Prompt = {
  "id": "uid",
  "authorId": "authorId",
  "groupId": "groupId",
  "target": ["target1", "target2", "..."],
  "header": "Header",
  "body": "Body texts. No longer than 160 characters",
  "channel": "push", //or "sms" or "email"
  "priority": "2", //0 = emergency, 1 = important, 2 = normal, 3 = trivial
  "tags": ["tag1", "tag2", "..."],
  "attachments": "link or notes",
  "sendtime": 0000-00-00 00:00, //Timestamp
  "duetime": 0000-00-00 00:00, //Timestamp
  "viewed": false,
  "dismissed": false
}

Reminder extends Notif = {
  "repetition": {
    method: Repetition[type], // shown below
    "time": "HH:MM", // default to midnight or other setting
    "number": 5, // repeat 5 times
  }
}

Repetition = {
  "absolute": {
    "day": "YYYY/MM/DD",
  },
  "relative": {
    "diff": "number in minutes" // ex: in 5 min, 6 hrs, 1 week
  },
  "weekly": {
    "M": true,
    "T": true,
    "W": true,
    "Th": true,
    "F": true,
    "Sat": true,
    "Sun": true
  },
  "monthly": {
    "day": "1 - 31" // accounting for leap years and all that shit
  }
}
Clone this wiki locally