{"action":"closed","number":1182,"pull_request":{"url":"https://api.github.com/repos/tgalal/yowsup/pulls/1182","id":53159122,"html_url":"https://github.com/tgalal/yowsup/pull/1182","diff_url":"https://github.com/tgalal/yowsup/pull/1182.diff","patch_url":"https://github.com/tgalal/yowsup/pull/1182.patch","issue_url":"https://api.github.com/repos/tgalal/yowsup/issues/1182","number":1182,"state":"closed","locked":false,"title":"#1181: Event callback feature implementation. YowInterfaceLayer","user":{"login":"jlmadurga","id":4689706,"avatar_url":"https://avatars.githubusercontent.com/u/4689706?v=3","gravatar_id":"","url":"https://api.github.com/users/jlmadurga","html_url":"https://github.com/jlmadurga","followers_url":"https://api.github.com/users/jlmadurga/followers","following_url":"https://api.github.com/users/jlmadurga/following{/other_user}","gists_url":"https://api.github.com/users/jlmadurga/gists{/gist_id}","starred_url":"https://api.github.com/users/jlmadurga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jlmadurga/subscriptions","organizations_url":"https://api.github.com/users/jlmadurga/orgs","repos_url":"https://api.github.com/users/jlmadurga/repos","events_url":"https://api.github.com/users/jlmadurga/events{/privacy}","received_events_url":"https://api.github.com/users/jlmadurga/received_events","type":"User","site_admin":false},"body":"As described in #1181 decorator for event callbacks is implemented. Nothing reinvented just following the ProtocolEntity callback scheme for this implementation.\r\nEvent callback added to yowsup-cli.\r\n\r\nMoreover, I found `YowLayerTest` not enough for testing events. I have added some functionality for `emitEvent` and `broadcastEvent` testing. \r\n\r\n","created_at":"2015-12-09T18:33:25Z","updated_at":"2016-03-31T11:58:09Z","closed_at":"2016-03-31T11:58:09Z","merged_at":"2016-03-31T11:58:09Z","merge_commit_sha":"432a5cfb706818dc29847547b1589258605ba851","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/tgalal/yowsup/pulls/1182/commits","review_comments_url":"https://api.github.com/repos/tgalal/yowsup/pulls/1182/comments","review_comment_url":"https://api.github.com/repos/tgalal/yowsup/pulls/comments{/number}","comments_url":"https://api.github.com/repos/tgalal/yowsup/issues/1182/comments","statuses_url":"https://api.github.com/repos/tgalal/yowsup/statuses/432a5cfb706818dc29847547b1589258605ba851","head":{"label":"jlmadurga:issue_1181","ref":"issue_1181","sha":"432a5cfb706818dc29847547b1589258605ba851","user":{"login":"jlmadurga","id":4689706,"avatar_url":"https://avatars.githubusercontent.com/u/4689706?v=3","gravatar_id":"","url":"https://api.github.com/users/jlmadurga","html_url":"https://github.com/jlmadurga","followers_url":"https://api.github.com/users/jlmadurga/followers","following_url":"https://api.github.com/users/jlmadurga/following{/other_user}","gists_url":"https://api.github.com/users/jlmadurga/gists{/gist_id}","starred_url":"https://api.github.com/users/jlmadurga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jlmadurga/subscriptions","organizations_url":"https://api.github.com/users/jlmadurga/orgs","repos_url":"https://api.github.com/users/jlmadurga/repos","events_url":"https://api.github.com/users/jlmadurga/events{/privacy}","received_events_url":"https://api.github.com/users/jlmadurga/received_events","type":"User","site_admin":false},"repo":{"id":47706558,"name":"yowsup","full_name":"jlmadurga/yowsup","owner":{"login":"jlmadurga","id":4689706,"avatar_url":"https://avatars.githubusercontent.com/u/4689706?v=3","gravatar_id":"","url":"https://api.github.com/users/jlmadurga","html_url":"https://github.com/jlmadurga","followers_url":"https://api.github.com/users/jlmadurga/followers","following_url":"https://api.github.com/users/jlmadurga/following{/other_user}","gists_url":"https://api.github.com/users/jlmadurga/gists{/gist_id}","starred_url":"https://api.github.com/users/jlmadurga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jlmadurga/subscriptions","organizations_url":"https://api.github.com/users/jlmadurga/orgs","repos_url":"https://api.github.com/users/jlmadurga/repos","events_url":"https://api.github.com/users/jlmadurga/events{/privacy}","received_events_url":"https://api.github.com/users/jlmadurga/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jlmadurga/yowsup","description":"The python WhatsApp library","fork":true,"url":"https://api.github.com/repos/jlmadurga/yowsup","forks_url":"https://api.github.com/repos/jlmadurga/yowsup/forks","keys_url":"https://api.github.com/repos/jlmadurga/yowsup/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jlmadurga/yowsup/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jlmadurga/yowsup/teams","hooks_url":"https://api.github.com/repos/jlmadurga/yowsup/hooks","issue_events_url":"https://api.github.com/repos/jlmadurga/yowsup/issues/events{/number}","events_url":"https://api.github.com/repos/jlmadurga/yowsup/events","assignees_url":"https://api.github.com/repos/jlmadurga/yowsup/assignees{/user}","branches_url":"https://api.github.com/repos/jlmadurga/yowsup/branches{/branch}","tags_url":"https://api.github.com/repos/jlmadurga/yowsup/tags","blobs_url":"https://api.github.com/repos/jlmadurga/yowsup/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jlmadurga/yowsup/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jlmadurga/yowsup/git/refs{/sha}","trees_url":"https://api.github.com/repos/jlmadurga/yowsup/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jlmadurga/yowsup/statuses/{sha}","languages_url":"https://api.github.com/repos/jlmadurga/yowsup/languages","stargazers_url":"https://api.github.com/repos/jlmadurga/yowsup/stargazers","contributors_url":"https://api.github.com/repos/jlmadurga/yowsup/contributors","subscribers_url":"https://api.github.com/repos/jlmadurga/yowsup/subscribers","subscription_url":"https://api.github.com/repos/jlmadurga/yowsup/subscription","commits_url":"https://api.github.com/repos/jlmadurga/yowsup/commits{/sha}","git_commits_url":"https://api.github.com/repos/jlmadurga/yowsup/git/commits{/sha}","comments_url":"https://api.github.com/repos/jlmadurga/yowsup/comments{/number}","issue_comment_url":"https://api.github.com/repos/jlmadurga/yowsup/issues/comments{/number}","contents_url":"https://api.github.com/repos/jlmadurga/yowsup/contents/{+path}","compare_url":"https://api.github.com/repos/jlmadurga/yowsup/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jlmadurga/yowsup/merges","archive_url":"https://api.github.com/repos/jlmadurga/yowsup/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jlmadurga/yowsup/downloads","issues_url":"https://api.github.com/repos/jlmadurga/yowsup/issues{/number}","pulls_url":"https://api.github.com/repos/jlmadurga/yowsup/pulls{/number}","milestones_url":"https://api.github.com/repos/jlmadurga/yowsup/milestones{/number}","notifications_url":"https://api.github.com/repos/jlmadurga/yowsup/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jlmadurga/yowsup/labels{/name}","releases_url":"https://api.github.com/repos/jlmadurga/yowsup/releases{/id}","deployments_url":"https://api.github.com/repos/jlmadurga/yowsup/deployments","created_at":"2015-12-09T17:12:16Z","updated_at":"2015-12-09T17:12:17Z","pushed_at":"2016-01-02T18:12:39Z","git_url":"git://github.com/jlmadurga/yowsup.git","ssh_url":"git@github.com:jlmadurga/yowsup.git","clone_url":"https://github.com/jlmadurga/yowsup.git","svn_url":"https://github.com/jlmadurga/yowsup","homepage":"","size":1539,"stargazers_count":0,"watchers_count":0,"language":"Python","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":"master"}},"base":{"label":"tgalal:master","ref":"master","sha":"a59ac410c057e8042c528e9f73e9f3eaada6e79e","user":{"login":"tgalal","id":895331,"avatar_url":"https://avatars.githubusercontent.com/u/895331?v=3","gravatar_id":"","url":"https://api.github.com/users/tgalal","html_url":"https://github.com/tgalal","followers_url":"https://api.github.com/users/tgalal/followers","following_url":"https://api.github.com/users/tgalal/following{/other_user}","gists_url":"https://api.github.com/users/tgalal/gists{/gist_id}","starred_url":"https://api.github.com/users/tgalal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tgalal/subscriptions","organizations_url":"https://api.github.com/users/tgalal/orgs","repos_url":"https://api.github.com/users/tgalal/repos","events_url":"https://api.github.com/users/tgalal/events{/privacy}","received_events_url":"https://api.github.com/users/tgalal/received_events","type":"User","site_admin":false},"repo":{"id":6523023,"name":"yowsup","full_name":"tgalal/yowsup","owner":{"login":"tgalal","id":895331,"avatar_url":"https://avatars.githubusercontent.com/u/895331?v=3","gravatar_id":"","url":"https://api.github.com/users/tgalal","html_url":"https://github.com/tgalal","followers_url":"https://api.github.com/users/tgalal/followers","following_url":"https://api.github.com/users/tgalal/following{/other_user}","gists_url":"https://api.github.com/users/tgalal/gists{/gist_id}","starred_url":"https://api.github.com/users/tgalal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tgalal/subscriptions","organizations_url":"https://api.github.com/users/tgalal/orgs","repos_url":"https://api.github.com/users/tgalal/repos","events_url":"https://api.github.com/users/tgalal/events{/privacy}","received_events_url":"https://api.github.com/users/tgalal/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tgalal/yowsup","description":"The python WhatsApp library","fork":false,"url":"https://api.github.com/repos/tgalal/yowsup","forks_url":"https://api.github.com/repos/tgalal/yowsup/forks","keys_url":"https://api.github.com/repos/tgalal/yowsup/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tgalal/yowsup/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tgalal/yowsup/teams","hooks_url":"https://api.github.com/repos/tgalal/yowsup/hooks","issue_events_url":"https://api.github.com/repos/tgalal/yowsup/issues/events{/number}","events_url":"https://api.github.com/repos/tgalal/yowsup/events","assignees_url":"https://api.github.com/repos/tgalal/yowsup/assignees{/user}","branches_url":"https://api.github.com/repos/tgalal/yowsup/branches{/branch}","tags_url":"https://api.github.com/repos/tgalal/yowsup/tags","blobs_url":"https://api.github.com/repos/tgalal/yowsup/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tgalal/yowsup/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tgalal/yowsup/git/refs{/sha}","trees_url":"https://api.github.com/repos/tgalal/yowsup/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tgalal/yowsup/statuses/{sha}","languages_url":"https://api.github.com/repos/tgalal/yowsup/languages","stargazers_url":"https://api.github.com/repos/tgalal/yowsup/stargazers","contributors_url":"https://api.github.com/repos/tgalal/yowsup/contributors","subscribers_url":"https://api.github.com/repos/tgalal/yowsup/subscribers","subscription_url":"https://api.github.com/repos/tgalal/yowsup/subscription","commits_url":"https://api.github.com/repos/tgalal/yowsup/commits{/sha}","git_commits_url":"https://api.github.com/repos/tgalal/yowsup/git/commits{/sha}","comments_url":"https://api.github.com/repos/tgalal/yowsup/comments{/number}","issue_comment_url":"https://api.github.com/repos/tgalal/yowsup/issues/comments{/number}","contents_url":"https://api.github.com/repos/tgalal/yowsup/contents/{+path}","compare_url":"https://api.github.com/repos/tgalal/yowsup/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tgalal/yowsup/merges","archive_url":"https://api.github.com/repos/tgalal/yowsup/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tgalal/yowsup/downloads","issues_url":"https://api.github.com/repos/tgalal/yowsup/issues{/number}","pulls_url":"https://api.github.com/repos/tgalal/yowsup/pulls{/number}","milestones_url":"https://api.github.com/repos/tgalal/yowsup/milestones{/number}","notifications_url":"https://api.github.com/repos/tgalal/yowsup/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tgalal/yowsup/labels{/name}","releases_url":"https://api.github.com/repos/tgalal/yowsup/releases{/id}","deployments_url":"https://api.github.com/repos/tgalal/yowsup/deployments","created_at":"2012-11-03T19:00:14Z","updated_at":"2016-03-30T19:13:48Z","pushed_at":"2016-03-31T11:58:09Z","git_url":"git://github.com/tgalal/yowsup.git","ssh_url":"git@github.com:tgalal/yowsup.git","clone_url":"https://github.com/tgalal/yowsup.git","svn_url":"https://github.com/tgalal/yowsup","homepage":"","size":2576,"stargazers_count":3163,"watchers_count":3163,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1135,"mirror_url":null,"open_issues_count":487,"forks":1135,"open_issues":487,"watchers":3163,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/tgalal/yowsup/pulls/1182"},"html":{"href":"https://github.com/tgalal/yowsup/pull/1182"},"issue":{"href":"https://api.github.com/repos/tgalal/yowsup/issues/1182"},"comments":{"href":"https://api.github.com/repos/tgalal/yowsup/issues/1182/comments"},"review_comments":{"href":"https://api.github.com/repos/tgalal/yowsup/pulls/1182/comments"},"review_comment":{"href":"https://api.github.com/repos/tgalal/yowsup/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/tgalal/yowsup/pulls/1182/commits"},"statuses":{"href":"https://api.github.com/repos/tgalal/yowsup/statuses/432a5cfb706818dc29847547b1589258605ba851"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"tgalal","id":895331,"avatar_url":"https://avatars.githubusercontent.com/u/895331?v=3","gravatar_id":"","url":"https://api.github.com/users/tgalal","html_url":"https://github.com/tgalal","followers_url":"https://api.github.com/users/tgalal/followers","following_url":"https://api.github.com/users/tgalal/following{/other_user}","gists_url":"https://api.github.com/users/tgalal/gists{/gist_id}","starred_url":"https://api.github.com/users/tgalal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tgalal/subscriptions","organizations_url":"https://api.github.com/users/tgalal/orgs","repos_url":"https://api.github.com/users/tgalal/repos","events_url":"https://api.github.com/users/tgalal/events{/privacy}","received_events_url":"https://api.github.com/users/tgalal/received_events","type":"User","site_admin":false},"comments":4,"review_comments":0,"commits":4,"additions":179,"deletions":111,"changed_files":10}}