kibio / kibio.github.io

The kibio website.
http://kib.io
0 stars 2 forks source link

Sortable Event Output #4

Closed bakercp closed 11 years ago

bakercp commented 11 years ago

Need JSON event output in in the form:

{
    "message-id": INCREMENTAL_MESSAGE_ID, // generated by the client
    "command": "playlist-move",
    "data": {
        "playlist-uuid":UNIQUE_PLAYLIST_ID,
        "playlist-item-uuid":UNIQUE_PLAYLIST_ITEM_ID,  // associated in memory ¬
        "playlist-asset-uuid": UNIQUE_PLAYLIST_ASSET_ITEM_ID, // associated in memory ^
        "from-index":START_INDEX,
        "to-index":NEW_INDEX,
     }
}
{
    "message-id": INCREMENTAL_MESSAGE_ID, // generated by the client
    "command": "playlist-add",
    "data": {
        "playlist-uuid":UNIQUE_PLAYLIST_ID,
        "playlist-item-uuid":UNIQUE_PLAYLIST_ITEM_ID, // generated by client
        "index":INSER_INDEX
     }
}
{
    "message-id": INCREMENTAL_MESSAGE_ID, // generated by the client
    "command": "playlist-remove",
    "data": {
        "playlist-uuid":UNIQUE_PLAYLIST_ID,
        "playlist-item-uuid":UNIQUE_PLAYLIST_ITEM_ID
     }
}