{"action":"created","issue":{"url":"https://api.github.com/repos/Swrve/swrve-ios-sdk/issues/124","repository_url":"https://api.github.com/repos/Swrve/swrve-ios-sdk","labels_url":"https://api.github.com/repos/Swrve/swrve-ios-sdk/issues/124/labels{/name}","comments_url":"https://api.github.com/repos/Swrve/swrve-ios-sdk/issues/124/comments","events_url":"https://api.github.com/repos/Swrve/swrve-ios-sdk/issues/124/events","html_url":"https://github.com/Swrve/swrve-ios-sdk/pull/124","id":149508614,"number":124,"title":"[ios] 12243 conditional payloads","user":{"login":"adam-govan","id":2587626,"avatar_url":"https://avatars.githubusercontent.com/u/2587626?v=3","gravatar_id":"","url":"https://api.github.com/users/adam-govan","html_url":"https://github.com/adam-govan","followers_url":"https://api.github.com/users/adam-govan/followers","following_url":"https://api.github.com/users/adam-govan/following{/other_user}","gists_url":"https://api.github.com/users/adam-govan/gists{/gist_id}","starred_url":"https://api.github.com/users/adam-govan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adam-govan/subscriptions","organizations_url":"https://api.github.com/users/adam-govan/orgs","repos_url":"https://api.github.com/users/adam-govan/repos","events_url":"https://api.github.com/users/adam-govan/events{/privacy}","received_events_url":"https://api.github.com/users/adam-govan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-04-19T16:10:56Z","updated_at":"2016-05-10T16:20:49Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/Swrve/swrve-ios-sdk/pulls/124","html_url":"https://github.com/Swrve/swrve-ios-sdk/pull/124","diff_url":"https://github.com/Swrve/swrve-ios-sdk/pull/124.diff","patch_url":"https://github.com/Swrve/swrve-ios-sdk/pull/124.patch"},"body":"This is both the conditional payload parsing and the logic behind it when an event occurs. Tests are in the private repo\r\n\r\n@Sergio-Mira / @dominicmarmionswrve / @seaders \r\n\r\nSome refactoring occurred, I kept the Argument \"parameters\" in place where event payload is suggested in order not to edit too many headers. I might've missed some of the header comments and such so please let me know if something needs updating. Thanks! \r\n "},"comment":{"url":"https://api.github.com/repos/Swrve/swrve-ios-sdk/issues/comments/218211365","html_url":"https://github.com/Swrve/swrve-ios-sdk/pull/124#issuecomment-218211365","issue_url":"https://api.github.com/repos/Swrve/swrve-ios-sdk/issues/124","id":218211365,"user":{"login":"Sergio-Mira","id":2519238,"avatar_url":"https://avatars.githubusercontent.com/u/2519238?v=3","gravatar_id":"","url":"https://api.github.com/users/Sergio-Mira","html_url":"https://github.com/Sergio-Mira","followers_url":"https://api.github.com/users/Sergio-Mira/followers","following_url":"https://api.github.com/users/Sergio-Mira/following{/other_user}","gists_url":"https://api.github.com/users/Sergio-Mira/gists{/gist_id}","starred_url":"https://api.github.com/users/Sergio-Mira/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sergio-Mira/subscriptions","organizations_url":"https://api.github.com/users/Sergio-Mira/orgs","repos_url":"https://api.github.com/users/Sergio-Mira/repos","events_url":"https://api.github.com/users/Sergio-Mira/events{/privacy}","received_events_url":"https://api.github.com/users/Sergio-Mira/received_events","type":"User","site_admin":false},"created_at":"2016-05-10T16:20:49Z","updated_at":"2016-05-10T16:20:49Z","body":"Looks good (are conditions a tree? if so this code does not process the whole tree) 🚀 "}}