{"action":"opened","number":6,"pull_request":{"url":"https://api.github.com/repos/nemomobile/policy-settings-common/pulls/6","id":36195266,"html_url":"https://github.com/nemomobile/policy-settings-common/pull/6","diff_url":"https://github.com/nemomobile/policy-settings-common/pull/6.diff","patch_url":"https://github.com/nemomobile/policy-settings-common/pull/6.patch","issue_url":"https://api.github.com/repos/nemomobile/policy-settings-common/issues/6","number":6,"state":"open","locked":false,"title":"Add mechanism to determine media state.","user":{"login":"jusa","id":184568,"avatar_url":"https://avatars.githubusercontent.com/u/184568?v=3","gravatar_id":"","url":"https://api.github.com/users/jusa","html_url":"https://github.com/jusa","followers_url":"https://api.github.com/users/jusa/followers","following_url":"https://api.github.com/users/jusa/following{/other_user}","gists_url":"https://api.github.com/users/jusa/gists{/gist_id}","starred_url":"https://api.github.com/users/jusa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jusa/subscriptions","organizations_url":"https://api.github.com/users/jusa/orgs","repos_url":"https://api.github.com/users/jusa/repos","events_url":"https://api.github.com/users/jusa/events{/privacy}","received_events_url":"https://api.github.com/users/jusa/received_events","type":"User","site_admin":false},"body":"Add new dres target topmost_pid. This target can be used to tell OHM\r\nabout the topmost application. OHM then maps this information against\r\ncurrently registered resource policy clients with audio_playback\r\nresource.\r\n\r\nsystem state                            | media state\r\n----------------------------------------|-----------------------\r\ncall in any state                       | inactive\r\n                                        |\r\nno resource clients with audio_playback | inactive\r\n                                        |\r\nresources are granted and               | active\r\ntopmpost PID == resource client PID     |\r\n                                        |\r\nresources are granted and               | background\r\ntopmost PID != resource client PID      |\r\n                                        |\r\nresources are not granted and           | foreground\r\ntopmost PID == resource client PID      |\r\n\r\nMedia state information is passed as context value \"media_state\".","created_at":"2015-05-26T12:03:26Z","updated_at":"2015-05-26T12:03:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/nemomobile/policy-settings-common/pulls/6/commits","review_comments_url":"https://api.github.com/repos/nemomobile/policy-settings-common/pulls/6/comments","review_comment_url":"https://api.github.com/repos/nemomobile/policy-settings-common/pulls/comments{/number}","comments_url":"https://api.github.com/repos/nemomobile/policy-settings-common/issues/6/comments","statuses_url":"https://api.github.com/repos/nemomobile/policy-settings-common/statuses/db7b91d9fff8f98584cea5470b82e999d5129b65","head":{"label":"jusa:mer1030","ref":"mer1030","sha":"db7b91d9fff8f98584cea5470b82e999d5129b65","user":{"login":"jusa","id":184568,"avatar_url":"https://avatars.githubusercontent.com/u/184568?v=3","gravatar_id":"","url":"https://api.github.com/users/jusa","html_url":"https://github.com/jusa","followers_url":"https://api.github.com/users/jusa/followers","following_url":"https://api.github.com/users/jusa/following{/other_user}","gists_url":"https://api.github.com/users/jusa/gists{/gist_id}","starred_url":"https://api.github.com/users/jusa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jusa/subscriptions","organizations_url":"https://api.github.com/users/jusa/orgs","repos_url":"https://api.github.com/users/jusa/repos","events_url":"https://api.github.com/users/jusa/events{/privacy}","received_events_url":"https://api.github.com/users/jusa/received_events","type":"User","site_admin":false},"repo":{"id":17586996,"name":"policy-settings-common","full_name":"jusa/policy-settings-common","owner":{"login":"jusa","id":184568,"avatar_url":"https://avatars.githubusercontent.com/u/184568?v=3","gravatar_id":"","url":"https://api.github.com/users/jusa","html_url":"https://github.com/jusa","followers_url":"https://api.github.com/users/jusa/followers","following_url":"https://api.github.com/users/jusa/following{/other_user}","gists_url":"https://api.github.com/users/jusa/gists{/gist_id}","starred_url":"https://api.github.com/users/jusa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jusa/subscriptions","organizations_url":"https://api.github.com/users/jusa/orgs","repos_url":"https://api.github.com/users/jusa/repos","events_url":"https://api.github.com/users/jusa/events{/privacy}","received_events_url":"https://api.github.com/users/jusa/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jusa/policy-settings-common","description":"","fork":true,"url":"https://api.github.com/repos/jusa/policy-settings-common","forks_url":"https://api.github.com/repos/jusa/policy-settings-common/forks","keys_url":"https://api.github.com/repos/jusa/policy-settings-common/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jusa/policy-settings-common/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jusa/policy-settings-common/teams","hooks_url":"https://api.github.com/repos/jusa/policy-settings-common/hooks","issue_events_url":"https://api.github.com/repos/jusa/policy-settings-common/issues/events{/number}","events_url":"https://api.github.com/repos/jusa/policy-settings-common/events","assignees_url":"https://api.github.com/repos/jusa/policy-settings-common/assignees{/user}","branches_url":"https://api.github.com/repos/jusa/policy-settings-common/branches{/branch}","tags_url":"https://api.github.com/repos/jusa/policy-settings-common/tags","blobs_url":"https://api.github.com/repos/jusa/policy-settings-common/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jusa/policy-settings-common/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jusa/policy-settings-common/git/refs{/sha}","trees_url":"https://api.github.com/repos/jusa/policy-settings-common/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jusa/policy-settings-common/statuses/{sha}","languages_url":"https://api.github.com/repos/jusa/policy-settings-common/languages","stargazers_url":"https://api.github.com/repos/jusa/policy-settings-common/stargazers","contributors_url":"https://api.github.com/repos/jusa/policy-settings-common/contributors","subscribers_url":"https://api.github.com/repos/jusa/policy-settings-common/subscribers","subscription_url":"https://api.github.com/repos/jusa/policy-settings-common/subscription","commits_url":"https://api.github.com/repos/jusa/policy-settings-common/commits{/sha}","git_commits_url":"https://api.github.com/repos/jusa/policy-settings-common/git/commits{/sha}","comments_url":"https://api.github.com/repos/jusa/policy-settings-common/comments{/number}","issue_comment_url":"https://api.github.com/repos/jusa/policy-settings-common/issues/comments{/number}","contents_url":"https://api.github.com/repos/jusa/policy-settings-common/contents/{+path}","compare_url":"https://api.github.com/repos/jusa/policy-settings-common/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jusa/policy-settings-common/merges","archive_url":"https://api.github.com/repos/jusa/policy-settings-common/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jusa/policy-settings-common/downloads","issues_url":"https://api.github.com/repos/jusa/policy-settings-common/issues{/number}","pulls_url":"https://api.github.com/repos/jusa/policy-settings-common/pulls{/number}","milestones_url":"https://api.github.com/repos/jusa/policy-settings-common/milestones{/number}","notifications_url":"https://api.github.com/repos/jusa/policy-settings-common/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jusa/policy-settings-common/labels{/name}","releases_url":"https://api.github.com/repos/jusa/policy-settings-common/releases{/id}","created_at":"2014-03-10T09:05:46Z","updated_at":"2014-09-09T16:53:07Z","pushed_at":"2015-05-26T12:01:35Z","git_url":"git://github.com/jusa/policy-settings-common.git","ssh_url":"git@github.com:jusa/policy-settings-common.git","clone_url":"https://github.com/jusa/policy-settings-common.git","svn_url":"https://github.com/jusa/policy-settings-common","homepage":null,"size":206,"stargazers_count":0,"watchers_count":0,"language":"Prolog","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"common"}},"base":{"label":"nemomobile:common","ref":"common","sha":"c237c7910818e3af62f5833efc9b6f9c4b252900","user":{"login":"nemomobile","id":1088947,"avatar_url":"https://avatars.githubusercontent.com/u/1088947?v=3","gravatar_id":"","url":"https://api.github.com/users/nemomobile","html_url":"https://github.com/nemomobile","followers_url":"https://api.github.com/users/nemomobile/followers","following_url":"https://api.github.com/users/nemomobile/following{/other_user}","gists_url":"https://api.github.com/users/nemomobile/gists{/gist_id}","starred_url":"https://api.github.com/users/nemomobile/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nemomobile/subscriptions","organizations_url":"https://api.github.com/users/nemomobile/orgs","repos_url":"https://api.github.com/users/nemomobile/repos","events_url":"https://api.github.com/users/nemomobile/events{/privacy}","received_events_url":"https://api.github.com/users/nemomobile/received_events","type":"Organization","site_admin":false},"repo":{"id":16762567,"name":"policy-settings-common","full_name":"nemomobile/policy-settings-common","owner":{"login":"nemomobile","id":1088947,"avatar_url":"https://avatars.githubusercontent.com/u/1088947?v=3","gravatar_id":"","url":"https://api.github.com/users/nemomobile","html_url":"https://github.com/nemomobile","followers_url":"https://api.github.com/users/nemomobile/followers","following_url":"https://api.github.com/users/nemomobile/following{/other_user}","gists_url":"https://api.github.com/users/nemomobile/gists{/gist_id}","starred_url":"https://api.github.com/users/nemomobile/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nemomobile/subscriptions","organizations_url":"https://api.github.com/users/nemomobile/orgs","repos_url":"https://api.github.com/users/nemomobile/repos","events_url":"https://api.github.com/users/nemomobile/events{/privacy}","received_events_url":"https://api.github.com/users/nemomobile/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/nemomobile/policy-settings-common","description":"","fork":false,"url":"https://api.github.com/repos/nemomobile/policy-settings-common","forks_url":"https://api.github.com/repos/nemomobile/policy-settings-common/forks","keys_url":"https://api.github.com/repos/nemomobile/policy-settings-common/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nemomobile/policy-settings-common/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nemomobile/policy-settings-common/teams","hooks_url":"https://api.github.com/repos/nemomobile/policy-settings-common/hooks","issue_events_url":"https://api.github.com/repos/nemomobile/policy-settings-common/issues/events{/number}","events_url":"https://api.github.com/repos/nemomobile/policy-settings-common/events","assignees_url":"https://api.github.com/repos/nemomobile/policy-settings-common/assignees{/user}","branches_url":"https://api.github.com/repos/nemomobile/policy-settings-common/branches{/branch}","tags_url":"https://api.github.com/repos/nemomobile/policy-settings-common/tags","blobs_url":"https://api.github.com/repos/nemomobile/policy-settings-common/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nemomobile/policy-settings-common/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nemomobile/policy-settings-common/git/refs{/sha}","trees_url":"https://api.github.com/repos/nemomobile/policy-settings-common/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nemomobile/policy-settings-common/statuses/{sha}","languages_url":"https://api.github.com/repos/nemomobile/policy-settings-common/languages","stargazers_url":"https://api.github.com/repos/nemomobile/policy-settings-common/stargazers","contributors_url":"https://api.github.com/repos/nemomobile/policy-settings-common/contributors","subscribers_url":"https://api.github.com/repos/nemomobile/policy-settings-common/subscribers","subscription_url":"https://api.github.com/repos/nemomobile/policy-settings-common/subscription","commits_url":"https://api.github.com/repos/nemomobile/policy-settings-common/commits{/sha}","git_commits_url":"https://api.github.com/repos/nemomobile/policy-settings-common/git/commits{/sha}","comments_url":"https://api.github.com/repos/nemomobile/policy-settings-common/comments{/number}","issue_comment_url":"https://api.github.com/repos/nemomobile/policy-settings-common/issues/comments{/number}","contents_url":"https://api.github.com/repos/nemomobile/policy-settings-common/contents/{+path}","compare_url":"https://api.github.com/repos/nemomobile/policy-settings-common/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nemomobile/policy-settings-common/merges","archive_url":"https://api.github.com/repos/nemomobile/policy-settings-common/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nemomobile/policy-settings-common/downloads","issues_url":"https://api.github.com/repos/nemomobile/policy-settings-common/issues{/number}","pulls_url":"https://api.github.com/repos/nemomobile/policy-settings-common/pulls{/number}","milestones_url":"https://api.github.com/repos/nemomobile/policy-settings-common/milestones{/number}","notifications_url":"https://api.github.com/repos/nemomobile/policy-settings-common/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nemomobile/policy-settings-common/labels{/name}","releases_url":"https://api.github.com/repos/nemomobile/policy-settings-common/releases{/id}","created_at":"2014-02-12T09:44:18Z","updated_at":"2014-09-08T19:10:54Z","pushed_at":"2014-10-22T11:22:52Z","git_url":"git://github.com/nemomobile/policy-settings-common.git","ssh_url":"git@github.com:nemomobile/policy-settings-common.git","clone_url":"https://github.com/nemomobile/policy-settings-common.git","svn_url":"https://github.com/nemomobile/policy-settings-common","homepage":null,"size":277,"stargazers_count":0,"watchers_count":0,"language":"Prolog","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"common"}},"_links":{"self":{"href":"https://api.github.com/repos/nemomobile/policy-settings-common/pulls/6"},"html":{"href":"https://github.com/nemomobile/policy-settings-common/pull/6"},"issue":{"href":"https://api.github.com/repos/nemomobile/policy-settings-common/issues/6"},"comments":{"href":"https://api.github.com/repos/nemomobile/policy-settings-common/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/nemomobile/policy-settings-common/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/nemomobile/policy-settings-common/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/nemomobile/policy-settings-common/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/nemomobile/policy-settings-common/statuses/db7b91d9fff8f98584cea5470b82e999d5129b65"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":45,"deletions":2,"changed_files":3}}