Skip to content

Instantly share code, notes, and snippets.

@avisser
Created December 20, 2012 19:02
Show Gist options
  • Save avisser/4347766 to your computer and use it in GitHub Desktop.
Save avisser/4347766 to your computer and use it in GitHub Desktop.
sample stream provider
{"sv_autoDisplayGracePeriodSeconds": 5, "sv_moreData": false, "sv_streamEntries": [
{
"se_id": "bb-announcement1350573068000",
"se_context": "<span class = 'announcementType'>System Announcement<\/span><span class = 'announcementTitle'>login announcement test\r\n<span class=\"contextMenuContainer\" style=\"display: inline;\" bb:menuGeneratorURL=\"\" bb:navItem=\"\" bb:contextParameters=\"\" bb:menuOrder=\"_f13bb54dc81f438f8d328b53668f72a7,act_1350573068000_0_f13bb54dc81f438f8d328b53668f72a7,\" bb:overwriteNavItems=\"\" bb:beforeShowFunc=\"\">\r\n <a id=\"cmlink_f13bb54dc81f438f8d328b53668f72a7\" onfocus=\"page.ContextMenu.LI(event, 'cmdiv_f13bb54dc81f438f8d328b53668f72a7',false);\" onmouseover=\"page.ContextMenu.LI(event, 'cmdiv_f13bb54dc81f438f8d328b53668f72a7',false);\" class=\"cmimg editmode jsInit\" href=\"#contextMenu\" title=\"menu\"><img src=\"/images/ci/icons/cmlink_generic.gif\" alt=\"menu\"><\/a> \r\n <div id=\"cmdiv_f13bb54dc81f438f8d328b53668f72a7\" class=\"cmdiv\" style=\"display: none;\">\r\n <ul id=\"cmul0_f13bb54dc81f438f8d328b53668f72a7\"> \r\n <li class=\"contextmenubar_top\"><a title=\"Close Menu\" href=\"#close\" class=\"close-menu\"><img alt=\"Close Menu\" src=\"/images/ci/ng/close_mini.gif\"><\/a><\/li> \r\n <li id=\"act_1350573068000_0_f13bb54dc81f438f8d328b53668f72a7\"><a href=\"#\" id=\"act_1350573068000_0_f13bb54dc81f438f8d328b53668f72a7\" onclick=\"javascript:stream.loadContentFrame('/webapps/blackboard/execute/announcement?method=search&context=mybb&searchSelect=1&viewChoice=1'); return false;\" title=\"View\" >View<\/a><\/li>\r\n <\/ul> \r\n <\/div>\r\n<\/span>\r\n<\/span><span class = 'announcementBody'><div class=\"vtbegenerated\"><p>Message<\/p><\/div><\/span>",
"se_details": "",
"se_bottomContext": "",
"se_timestamp": 1350574114000,
"se_participated": false,
"se_filterName": "",
"ann_type": "system",
"event_type": "AN_AVAIL"
},
{
"se_id": "bb-nautilus161",
"se_context": "Course <span class='eventTitle'>40au Course<\/span> Available\r\n<span class=\"contextMenuContainer\" style=\"display: inline;\" bb:menuGeneratorURL=\"\" bb:navItem=\"\" bb:contextParameters=\"\" bb:menuOrder=\"_166d0cb59dd84fb0a381927116117587,act_161_0dismiss_161__166d0cb59dd84fb0a381927116117587,\" bb:overwriteNavItems=\"\" bb:beforeShowFunc=\"\">\r\n <a id=\"cmlink_166d0cb59dd84fb0a381927116117587\" onfocus=\"page.ContextMenu.LI(event, 'cmdiv_166d0cb59dd84fb0a381927116117587',false);\" onmouseover=\"page.ContextMenu.LI(event, 'cmdiv_166d0cb59dd84fb0a381927116117587',false);\" class=\"cmimg editmode jsInit\" href=\"#contextMenu\" title=\"menu\"><img src=\"/images/ci/icons/cmlink_generic.gif\" alt=\"menu\"><\/a> \r\n <div id=\"cmdiv_166d0cb59dd84fb0a381927116117587\" class=\"cmdiv\" style=\"display: none;\">\r\n <ul id=\"cmul0_166d0cb59dd84fb0a381927116117587\"> \r\n <li class=\"contextmenubar_top\"><a title=\"Close Menu\" href=\"#close\" class=\"close-menu\"><img alt=\"Close Menu\" src=\"/images/ci/ng/close_mini.gif\"><\/a><\/li> \r\n <li id=\"act_161_0_166d0cb59dd84fb0a381927116117587\"><a href=\"#\" id=\"act_161_0_166d0cb59dd84fb0a381927116117587\" onclick=\"javascript:stream.loadContentFrame('/webapps/portal/frameset.jsp?tab_tab_group_id=_2_1&url=%2Fwebapps%2Fblackboard%2Fexecute%2Flauncher%3Ftype%3DCourse%26id%3D_182_1%26url%3D'); return false;\" title=\"Open\" >Open<\/a><\/li>\r\n <li id=\"dismiss_161__166d0cb59dd84fb0a381927116117587\"><a href=\"#\" id=\"dismiss_161__166d0cb59dd84fb0a381927116117587\" onclick=\"javascript: onDismissEvent(event,'221','bb-nautilus','161' );\" title=\"Dismiss\" >Dismiss<\/a><\/li>\r\n <\/ul> \r\n <\/div>\r\n<\/span>\r\n",
"se_details": "",
"se_bottomContext": "In @@X@@AREA@@X@@",
"se_timestamp": 1350569464000,
"se_courseId": "_182_1",
"se_participated": false,
"se_filterName": "se_courseId",
"event_type": "CR:CR_AVAIL"
}
], "sv_providers": [
{
"sp_provider": "bb-announcement",
"sp_refreshDate": 1350574114000,
"sp_newest": 1350573068000,
"sp_oldest": 1350573068000
},
{
"sp_provider": "bb_deployment",
"sp_refreshDate": 1355962024618,
"sp_newest": 0,
"sp_oldest": 9223372036854775807
},
{
"sp_provider": "bb-nautilus",
"sp_refreshDate": 1350569464000,
"sp_newest": 161,
"sp_oldest": 161,
"sp_settings": "SNIPPED" }
], "sv_deletedIds": [], "sv_extras": {
"sx_users": [],
"sx_filters": [
{
"attribute": "se_courseId",
"choices": {
"_182_1": "40au Course"
},
"exclusive": true,
"name": "Courses with Updates",
"type": {
"default": false,
"fieldName": "filter_type_dynamic_"
}
},
{
"attribute": "ann_type",
"choices": {
"system": "System Announcement"
},
"exclusive": true,
"name": "Announcements",
"type": {
"default": false,
"fieldName": "filter_type_dynamic_"
}
}
],
"sx_filter_links": null
}, "sv_now": 1355962025091}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment