{"action":"closed","issue":{"url":"https://api.github.com/repos/FDC3/API/issues/39","repository_url":"https://api.github.com/repos/FDC3/API","labels_url":"https://api.github.com/repos/FDC3/API/issues/39/labels{/name}","comments_url":"https://api.github.com/repos/FDC3/API/issues/39/comments","events_url":"https://api.github.com/repos/FDC3/API/issues/39/events","html_url":"https://github.com/FDC3/API/issues/39","id":370444749,"node_id":"MDU6SXNzdWUzNzA0NDQ3NDk=","number":39,"title":"Rename listener methods","user":{"login":"ColinEberhardt","id":1098110,"node_id":"MDQ6VXNlcjEwOTgxMTA=","avatar_url":"https://avatars0.githubusercontent.com/u/1098110?v=4","gravatar_id":"","url":"https://api.github.com/users/ColinEberhardt","html_url":"https://github.com/ColinEberhardt","followers_url":"https://api.github.com/users/ColinEberhardt/followers","following_url":"https://api.github.com/users/ColinEberhardt/following{/other_user}","gists_url":"https://api.github.com/users/ColinEberhardt/gists{/gist_id}","starred_url":"https://api.github.com/users/ColinEberhardt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ColinEberhardt/subscriptions","organizations_url":"https://api.github.com/users/ColinEberhardt/orgs","repos_url":"https://api.github.com/users/ColinEberhardt/repos","events_url":"https://api.github.com/users/ColinEberhardt/events{/privacy}","received_events_url":"https://api.github.com/users/ColinEberhardt/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-10-16T05:27:14Z","updated_at":"2018-10-25T02:28:50Z","closed_at":"2018-10-25T02:28:50Z","author_association":"CONTRIBUTOR","body":"Currently we have the following:\r\n\r\n```\r\nintentListener(intent: String, handler: (context: Context) => void): Listener;\r\ncontextListener(handler: (context: Context) => void): Listener;\r\n```\r\n\r\nIn keeping with web conventions (e.g. the DOM [addEventListener](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener) method), and the standard approach of using 'verb phrases' for method names, I'd propose adding an `add` prefix to each:\r\n\r\n```\r\naddIntentListener(intent: String, handler: (context: Context) => void): Listener;\r\naddContextListener(handler: (context: Context) => void): Listener;\r\n```"}}
{"actor":{"display_login":"nkolba"}}