Skip to content

Commit

Permalink
put some thought into design.org
Browse files Browse the repository at this point in the history
  • Loading branch information
rntz committed Apr 3, 2013
1 parent 59906e6 commit ae18f4f
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion design.org
@@ -1,3 +1,25 @@
* Event schema

TODO
All events are at toplevel objects/dicts.

| KEY | USAGE |
|---------+---------------------------------------------------------------------------|
| app | human-readable string naming the app generating the notification |
| | eg. "twitsend.pl" |
|---------+---------------------------------------------------------------------------|
| source | human-readable string naming the source generating the notification |
| | eg. "twitter", "irc", "gmail" |
|---------+---------------------------------------------------------------------------|
| title | very short description of what notification is about (roughly <=40 chars) |
| | eg. "tweet from @arntzenius", "message in #cslounge from rntz" |
|---------+---------------------------------------------------------------------------|
| summary | short description of content of notification (roughly <=140 chars) |
| | if not present, use first 140 chars of `message` |
| | eg. "@arntzenius: woo I'm tweeting" |
|---------+---------------------------------------------------------------------------|
| message | full description of content of notification |
| | if not present, use `summary` |
|---------+---------------------------------------------------------------------------|
| urgent | true if notification needs urgent attention |
| | default: false |
|---------+---------------------------------------------------------------------------|

0 comments on commit ae18f4f

Please sign in to comment.