{"action":"created","comment":{"url":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/comments/30571588","id":30571588,"diff_hunk":"@@ -0,0 +1,143 @@\n+/* global EPGController */\n+\n+'use strict';\n+\n+(function(exports) {\n+\n+  function EPG() {\n+    this.timelineUnit = 30 * 60000;\n+    this.timeOffset = Math.floor(Date.now() / this.timelineUnit);\n+    this.timeWidth = 4;","path":"tv_apps/tv-epg/js/epg.js","position":10,"original_position":10,"commit_id":"463f4c594c5da7c4994326a2485d30eb7dcb2dda","original_commit_id":"463f4c594c5da7c4994326a2485d30eb7dcb2dda","user":{"login":"huchengtw-moz","id":4318454,"avatar_url":"https://avatars.githubusercontent.com/u/4318454?v=3","gravatar_id":"","url":"https://api.github.com/users/huchengtw-moz","html_url":"https://github.com/huchengtw-moz","followers_url":"https://api.github.com/users/huchengtw-moz/followers","following_url":"https://api.github.com/users/huchengtw-moz/following{/other_user}","gists_url":"https://api.github.com/users/huchengtw-moz/gists{/gist_id}","starred_url":"https://api.github.com/users/huchengtw-moz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/huchengtw-moz/subscriptions","organizations_url":"https://api.github.com/users/huchengtw-moz/orgs","repos_url":"https://api.github.com/users/huchengtw-moz/repos","events_url":"https://api.github.com/users/huchengtw-moz/events{/privacy}","received_events_url":"https://api.github.com/users/huchengtw-moz/received_events","type":"User","site_admin":false},"body":"What's timeWidth?","created_at":"2015-05-19T06:14:27Z","updated_at":"2015-05-19T06:14:27Z","html_url":"https://github.com/mozilla-b2g/gaia/pull/30105#discussion_r30571588","pull_request_url":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/30105","_links":{"self":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/comments/30571588"},"html":{"href":"https://github.com/mozilla-b2g/gaia/pull/30105#discussion_r30571588"},"pull_request":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/30105"}}},"pull_request":{"url":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/30105","id":35618026,"html_url":"https://github.com/mozilla-b2g/gaia/pull/30105","diff_url":"https://github.com/mozilla-b2g/gaia/pull/30105.diff","patch_url":"https://github.com/mozilla-b2g/gaia/pull/30105.patch","issue_url":"https://api.github.com/repos/mozilla-b2g/gaia/issues/30105","number":30105,"state":"open","locked":false,"title":"Bug 1160982 - [Stingray][EPG] Fetch program information from TV API a…","user":{"login":"sean2449","id":6240413,"avatar_url":"https://avatars.githubusercontent.com/u/6240413?v=3","gravatar_id":"","url":"https://api.github.com/users/sean2449","html_url":"https://github.com/sean2449","followers_url":"https://api.github.com/users/sean2449/followers","following_url":"https://api.github.com/users/sean2449/following{/other_user}","gists_url":"https://api.github.com/users/sean2449/gists{/gist_id}","starred_url":"https://api.github.com/users/sean2449/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sean2449/subscriptions","organizations_url":"https://api.github.com/users/sean2449/orgs","repos_url":"https://api.github.com/users/sean2449/repos","events_url":"https://api.github.com/users/sean2449/events{/privacy}","received_events_url":"https://api.github.com/users/sean2449/received_events","type":"User","site_admin":false},"body":"…nd connect with view\r\n\r\n  * Add channel manager to connect TV API\r\n  * Add program mocks\r\n  * Display channels\r\n  * Display programs and timeline\r\n  * Update clock time","created_at":"2015-05-18T09:56:58Z","updated_at":"2015-05-19T06:14:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4bea00de609b0e97fae3774d9d5a476b29281836","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/30105/commits","review_comments_url":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/30105/comments","review_comment_url":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mozilla-b2g/gaia/issues/30105/comments","statuses_url":"https://api.github.com/repos/mozilla-b2g/gaia/statuses/463f4c594c5da7c4994326a2485d30eb7dcb2dda","head":{"label":"sean2449:Bug-1160982-EPG-controller","ref":"Bug-1160982-EPG-controller","sha":"463f4c594c5da7c4994326a2485d30eb7dcb2dda","user":{"login":"sean2449","id":6240413,"avatar_url":"https://avatars.githubusercontent.com/u/6240413?v=3","gravatar_id":"","url":"https://api.github.com/users/sean2449","html_url":"https://github.com/sean2449","followers_url":"https://api.github.com/users/sean2449/followers","following_url":"https://api.github.com/users/sean2449/following{/other_user}","gists_url":"https://api.github.com/users/sean2449/gists{/gist_id}","starred_url":"https://api.github.com/users/sean2449/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sean2449/subscriptions","organizations_url":"https://api.github.com/users/sean2449/orgs","repos_url":"https://api.github.com/users/sean2449/repos","events_url":"https://api.github.com/users/sean2449/events{/privacy}","received_events_url":"https://api.github.com/users/sean2449/received_events","type":"User","site_admin":false},"repo":{"id":29124255,"name":"gaia","full_name":"sean2449/gaia","owner":{"login":"sean2449","id":6240413,"avatar_url":"https://avatars.githubusercontent.com/u/6240413?v=3","gravatar_id":"","url":"https://api.github.com/users/sean2449","html_url":"https://github.com/sean2449","followers_url":"https://api.github.com/users/sean2449/followers","following_url":"https://api.github.com/users/sean2449/following{/other_user}","gists_url":"https://api.github.com/users/sean2449/gists{/gist_id}","starred_url":"https://api.github.com/users/sean2449/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sean2449/subscriptions","organizations_url":"https://api.github.com/users/sean2449/orgs","repos_url":"https://api.github.com/users/sean2449/repos","events_url":"https://api.github.com/users/sean2449/events{/privacy}","received_events_url":"https://api.github.com/users/sean2449/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sean2449/gaia","description":"Gaia is a HTML5-based Phone UI for the Boot 2 Gecko Project. NOTE: For details of what branches are used for what releases, see","fork":true,"url":"https://api.github.com/repos/sean2449/gaia","forks_url":"https://api.github.com/repos/sean2449/gaia/forks","keys_url":"https://api.github.com/repos/sean2449/gaia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sean2449/gaia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sean2449/gaia/teams","hooks_url":"https://api.github.com/repos/sean2449/gaia/hooks","issue_events_url":"https://api.github.com/repos/sean2449/gaia/issues/events{/number}","events_url":"https://api.github.com/repos/sean2449/gaia/events","assignees_url":"https://api.github.com/repos/sean2449/gaia/assignees{/user}","branches_url":"https://api.github.com/repos/sean2449/gaia/branches{/branch}","tags_url":"https://api.github.com/repos/sean2449/gaia/tags","blobs_url":"https://api.github.com/repos/sean2449/gaia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sean2449/gaia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sean2449/gaia/git/refs{/sha}","trees_url":"https://api.github.com/repos/sean2449/gaia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sean2449/gaia/statuses/{sha}","languages_url":"https://api.github.com/repos/sean2449/gaia/languages","stargazers_url":"https://api.github.com/repos/sean2449/gaia/stargazers","contributors_url":"https://api.github.com/repos/sean2449/gaia/contributors","subscribers_url":"https://api.github.com/repos/sean2449/gaia/subscribers","subscription_url":"https://api.github.com/repos/sean2449/gaia/subscription","commits_url":"https://api.github.com/repos/sean2449/gaia/commits{/sha}","git_commits_url":"https://api.github.com/repos/sean2449/gaia/git/commits{/sha}","comments_url":"https://api.github.com/repos/sean2449/gaia/comments{/number}","issue_comment_url":"https://api.github.com/repos/sean2449/gaia/issues/comments{/number}","contents_url":"https://api.github.com/repos/sean2449/gaia/contents/{+path}","compare_url":"https://api.github.com/repos/sean2449/gaia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sean2449/gaia/merges","archive_url":"https://api.github.com/repos/sean2449/gaia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sean2449/gaia/downloads","issues_url":"https://api.github.com/repos/sean2449/gaia/issues{/number}","pulls_url":"https://api.github.com/repos/sean2449/gaia/pulls{/number}","milestones_url":"https://api.github.com/repos/sean2449/gaia/milestones{/number}","notifications_url":"https://api.github.com/repos/sean2449/gaia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sean2449/gaia/labels{/name}","releases_url":"https://api.github.com/repos/sean2449/gaia/releases{/id}","created_at":"2015-01-12T07:39:26Z","updated_at":"2015-04-30T02:55:19Z","pushed_at":"2015-05-19T04:21:57Z","git_url":"git://github.com/sean2449/gaia.git","ssh_url":"git@github.com:sean2449/gaia.git","clone_url":"https://github.com/sean2449/gaia.git","svn_url":"https://github.com/sean2449/gaia","homepage":"https://wiki.mozilla.org/B2G","size":921463,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"mozilla-b2g:master","ref":"master","sha":"1d533e6f1acc4008c000e50750f8dedf1d39027e","user":{"login":"mozilla-b2g","id":1261292,"avatar_url":"https://avatars.githubusercontent.com/u/1261292?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla-b2g","html_url":"https://github.com/mozilla-b2g","followers_url":"https://api.github.com/users/mozilla-b2g/followers","following_url":"https://api.github.com/users/mozilla-b2g/following{/other_user}","gists_url":"https://api.github.com/users/mozilla-b2g/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla-b2g/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla-b2g/subscriptions","organizations_url":"https://api.github.com/users/mozilla-b2g/orgs","repos_url":"https://api.github.com/users/mozilla-b2g/repos","events_url":"https://api.github.com/users/mozilla-b2g/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla-b2g/received_events","type":"Organization","site_admin":false},"repo":{"id":2317369,"name":"gaia","full_name":"mozilla-b2g/gaia","owner":{"login":"mozilla-b2g","id":1261292,"avatar_url":"https://avatars.githubusercontent.com/u/1261292?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla-b2g","html_url":"https://github.com/mozilla-b2g","followers_url":"https://api.github.com/users/mozilla-b2g/followers","following_url":"https://api.github.com/users/mozilla-b2g/following{/other_user}","gists_url":"https://api.github.com/users/mozilla-b2g/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla-b2g/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla-b2g/subscriptions","organizations_url":"https://api.github.com/users/mozilla-b2g/orgs","repos_url":"https://api.github.com/users/mozilla-b2g/repos","events_url":"https://api.github.com/users/mozilla-b2g/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla-b2g/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mozilla-b2g/gaia","description":"Gaia is a HTML5-based Phone UI for the Boot 2 Gecko Project. NOTE: For details of what branches are used for what releases, see","fork":false,"url":"https://api.github.com/repos/mozilla-b2g/gaia","forks_url":"https://api.github.com/repos/mozilla-b2g/gaia/forks","keys_url":"https://api.github.com/repos/mozilla-b2g/gaia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mozilla-b2g/gaia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mozilla-b2g/gaia/teams","hooks_url":"https://api.github.com/repos/mozilla-b2g/gaia/hooks","issue_events_url":"https://api.github.com/repos/mozilla-b2g/gaia/issues/events{/number}","events_url":"https://api.github.com/repos/mozilla-b2g/gaia/events","assignees_url":"https://api.github.com/repos/mozilla-b2g/gaia/assignees{/user}","branches_url":"https://api.github.com/repos/mozilla-b2g/gaia/branches{/branch}","tags_url":"https://api.github.com/repos/mozilla-b2g/gaia/tags","blobs_url":"https://api.github.com/repos/mozilla-b2g/gaia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mozilla-b2g/gaia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mozilla-b2g/gaia/git/refs{/sha}","trees_url":"https://api.github.com/repos/mozilla-b2g/gaia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mozilla-b2g/gaia/statuses/{sha}","languages_url":"https://api.github.com/repos/mozilla-b2g/gaia/languages","stargazers_url":"https://api.github.com/repos/mozilla-b2g/gaia/stargazers","contributors_url":"https://api.github.com/repos/mozilla-b2g/gaia/contributors","subscribers_url":"https://api.github.com/repos/mozilla-b2g/gaia/subscribers","subscription_url":"https://api.github.com/repos/mozilla-b2g/gaia/subscription","commits_url":"https://api.github.com/repos/mozilla-b2g/gaia/commits{/sha}","git_commits_url":"https://api.github.com/repos/mozilla-b2g/gaia/git/commits{/sha}","comments_url":"https://api.github.com/repos/mozilla-b2g/gaia/comments{/number}","issue_comment_url":"https://api.github.com/repos/mozilla-b2g/gaia/issues/comments{/number}","contents_url":"https://api.github.com/repos/mozilla-b2g/gaia/contents/{+path}","compare_url":"https://api.github.com/repos/mozilla-b2g/gaia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mozilla-b2g/gaia/merges","archive_url":"https://api.github.com/repos/mozilla-b2g/gaia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mozilla-b2g/gaia/downloads","issues_url":"https://api.github.com/repos/mozilla-b2g/gaia/issues{/number}","pulls_url":"https://api.github.com/repos/mozilla-b2g/gaia/pulls{/number}","milestones_url":"https://api.github.com/repos/mozilla-b2g/gaia/milestones{/number}","notifications_url":"https://api.github.com/repos/mozilla-b2g/gaia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mozilla-b2g/gaia/labels{/name}","releases_url":"https://api.github.com/repos/mozilla-b2g/gaia/releases{/id}","created_at":"2011-09-03T01:38:46Z","updated_at":"2015-05-19T04:43:59Z","pushed_at":"2015-05-19T05:52:00Z","git_url":"git://github.com/mozilla-b2g/gaia.git","ssh_url":"git@github.com:mozilla-b2g/gaia.git","clone_url":"https://github.com/mozilla-b2g/gaia.git","svn_url":"https://github.com/mozilla-b2g/gaia","homepage":"https://wiki.mozilla.org/B2G","size":1558503,"stargazers_count":1925,"watchers_count":1925,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2304,"mirror_url":null,"open_issues_count":976,"forks":2304,"open_issues":976,"watchers":1925,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/30105"},"html":{"href":"https://github.com/mozilla-b2g/gaia/pull/30105"},"issue":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/issues/30105"},"comments":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/issues/30105/comments"},"review_comments":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/30105/comments"},"review_comment":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/30105/commits"},"statuses":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/statuses/463f4c594c5da7c4994326a2485d30eb7dcb2dda"}}}}