{"action":"created","comment":{"url":"https://api.github.com/repos/laravel-notification-channels/onesignal/pulls/comments/174372687","pull_request_review_id":103711577,"id":174372687,"diff_hunk":"@@ -0,0 +1,110 @@\n+<?php\n+\n+namespace NotificationChannels\\OneSignal\\Traits\\Categories;\n+\n+trait AppearanceHelpers\n+{\n+    /**\n+     * Set the iOS badge increment count.\n+     *\n+     * @param int $count\n+     *\n+     * @return $this\n+     */\n+    public function incrementIosBadgeCount(int $count = 1)\n+    {\n+        return $this->setParameter('ios_badgeType', 'Increase')\n+            ->setParameter('ios_badgeCount', $count);\n+    }\n+\n+    /**\n+     * Set the iOS badge decrement count.\n+     *\n+     * @param int $count\n+     *\n+     * @return $this\n+     */\n+    public function decrementIosBadgeCount(int $count = 1)\n+    {\n+        return $this->setParameter('ios_badgeType', 'Increase')\n+            ->setParameter('ios_badgeCount', -1 * $count);\n+    }\n+\n+    /**\n+     * Set the iOS badge count.\n+     *\n+     * @param int $count\n+     *\n+     * @return $this\n+     */\n+    public function setIosBadgeCount(int $count)\n+    {\n+        return $this->setParameter('ios_badgeType', 'SetTo')\n+            ->setParameter('ios_badgeCount', $count);\n+    }\n+\n+    /**\n+     * Set the iOS Sound.\n+     *\n+     * @param string $soundUrl\n+     *\n+     * @return $this\n+     */\n+    public function setIosSound(string $soundUrl)","path":"src/Traits/Categories/AppearanceHelpers.php","position":53,"original_position":53,"commit_id":"b926b131ff70c5fe39346cae0b393ae3cdc9d551","original_commit_id":"b926b131ff70c5fe39346cae0b393ae3cdc9d551","user":{"login":"timacdonald","id":24803032,"avatar_url":"https://avatars0.githubusercontent.com/u/24803032?v=4","gravatar_id":"","url":"https://api.github.com/users/timacdonald","html_url":"https://github.com/timacdonald","followers_url":"https://api.github.com/users/timacdonald/followers","following_url":"https://api.github.com/users/timacdonald/following{/other_user}","gists_url":"https://api.github.com/users/timacdonald/gists{/gist_id}","starred_url":"https://api.github.com/users/timacdonald/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timacdonald/subscriptions","organizations_url":"https://api.github.com/users/timacdonald/orgs","repos_url":"https://api.github.com/users/timacdonald/repos","events_url":"https://api.github.com/users/timacdonald/events{/privacy}","received_events_url":"https://api.github.com/users/timacdonald/received_events","type":"User","site_admin":false},"body":"I kinda feel like \"sound\"  is not \"appearance\" ...maybe","created_at":"2018-03-14T07:39:57Z","updated_at":"2018-03-14T07:55:30Z","html_url":"https://github.com/laravel-notification-channels/onesignal/pull/58#discussion_r174372687","pull_request_url":"https://api.github.com/repos/laravel-notification-channels/onesignal/pulls/58","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/laravel-notification-channels/onesignal/pulls/comments/174372687"},"html":{"href":"https://github.com/laravel-notification-channels/onesignal/pull/58#discussion_r174372687"},"pull_request":{"href":"https://api.github.com/repos/laravel-notification-channels/onesignal/pulls/58"}}},"pull_request":{"url":"https://api.github.com/repos/laravel-notification-channels/onesignal/pulls/58","id":174862529,"html_url":"https://github.com/laravel-notification-channels/onesignal/pull/58","diff_url":"https://github.com/laravel-notification-channels/onesignal/pull/58.diff","patch_url":"https://github.com/laravel-notification-channels/onesignal/pull/58.patch","issue_url":"https://api.github.com/repos/laravel-notification-channels/onesignal/issues/58","number":58,"state":"open","locked":false,"title":"[WIP]Refactor to Traits and add some little more Parameters","user":{"login":"LKDevelopment","id":4281581,"avatar_url":"https://avatars0.githubusercontent.com/u/4281581?v=4","gravatar_id":"","url":"https://api.github.com/users/LKDevelopment","html_url":"https://github.com/LKDevelopment","followers_url":"https://api.github.com/users/LKDevelopment/followers","following_url":"https://api.github.com/users/LKDevelopment/following{/other_user}","gists_url":"https://api.github.com/users/LKDevelopment/gists{/gist_id}","starred_url":"https://api.github.com/users/LKDevelopment/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LKDevelopment/subscriptions","organizations_url":"https://api.github.com/users/LKDevelopment/orgs","repos_url":"https://api.github.com/users/LKDevelopment/repos","events_url":"https://api.github.com/users/LKDevelopment/events{/privacy}","received_events_url":"https://api.github.com/users/LKDevelopment/received_events","type":"User","site_admin":false},"body":"This PR aims to provide a cleaner Codebase and make it possible to natively set more Parameters on the Notification Creation.\r\n\r\nSince this PR isn't ready yet, it should be a little bit a discussion between all users. Feel free to checkout the branch and make Changes too or just test it :)\r\n\r\nActually, i think this could be a complete rewrite known as 2.0 or what do you think?\r\nCC @timacdonald @Lloople \r\n\r\n// StyleCi will be fixed after this PR is feature complete","created_at":"2018-03-14T06:11:48Z","updated_at":"2018-03-14T07:55:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c96bf1ce75c111881b1853b035a34ebb52393a22","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/laravel-notification-channels/onesignal/pulls/58/commits","review_comments_url":"https://api.github.com/repos/laravel-notification-channels/onesignal/pulls/58/comments","review_comment_url":"https://api.github.com/repos/laravel-notification-channels/onesignal/pulls/comments{/number}","comments_url":"https://api.github.com/repos/laravel-notification-channels/onesignal/issues/58/comments","statuses_url":"https://api.github.com/repos/laravel-notification-channels/onesignal/statuses/b926b131ff70c5fe39346cae0b393ae3cdc9d551","head":{"label":"laravel-notification-channels:refactor-to-traits","ref":"refactor-to-traits","sha":"b926b131ff70c5fe39346cae0b393ae3cdc9d551","user":{"login":"laravel-notification-channels","id":20937037,"avatar_url":"https://avatars3.githubusercontent.com/u/20937037?v=4","gravatar_id":"","url":"https://api.github.com/users/laravel-notification-channels","html_url":"https://github.com/laravel-notification-channels","followers_url":"https://api.github.com/users/laravel-notification-channels/followers","following_url":"https://api.github.com/users/laravel-notification-channels/following{/other_user}","gists_url":"https://api.github.com/users/laravel-notification-channels/gists{/gist_id}","starred_url":"https://api.github.com/users/laravel-notification-channels/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laravel-notification-channels/subscriptions","organizations_url":"https://api.github.com/users/laravel-notification-channels/orgs","repos_url":"https://api.github.com/users/laravel-notification-channels/repos","events_url":"https://api.github.com/users/laravel-notification-channels/events{/privacy}","received_events_url":"https://api.github.com/users/laravel-notification-channels/received_events","type":"Organization","site_admin":false},"repo":{"id":65480774,"name":"onesignal","full_name":"laravel-notification-channels/onesignal","owner":{"login":"laravel-notification-channels","id":20937037,"avatar_url":"https://avatars3.githubusercontent.com/u/20937037?v=4","gravatar_id":"","url":"https://api.github.com/users/laravel-notification-channels","html_url":"https://github.com/laravel-notification-channels","followers_url":"https://api.github.com/users/laravel-notification-channels/followers","following_url":"https://api.github.com/users/laravel-notification-channels/following{/other_user}","gists_url":"https://api.github.com/users/laravel-notification-channels/gists{/gist_id}","starred_url":"https://api.github.com/users/laravel-notification-channels/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laravel-notification-channels/subscriptions","organizations_url":"https://api.github.com/users/laravel-notification-channels/orgs","repos_url":"https://api.github.com/users/laravel-notification-channels/repos","events_url":"https://api.github.com/users/laravel-notification-channels/events{/privacy}","received_events_url":"https://api.github.com/users/laravel-notification-channels/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/laravel-notification-channels/onesignal","description":"OneSignal notifications channel for Laravel 5.3+","fork":false,"url":"https://api.github.com/repos/laravel-notification-channels/onesignal","forks_url":"https://api.github.com/repos/laravel-notification-channels/onesignal/forks","keys_url":"https://api.github.com/repos/laravel-notification-channels/onesignal/keys{/key_id}","collaborators_url":"https://api.github.com/repos/laravel-notification-channels/onesignal/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/laravel-notification-channels/onesignal/teams","hooks_url":"https://api.github.com/repos/laravel-notification-channels/onesignal/hooks","issue_events_url":"https://api.github.com/repos/laravel-notification-channels/onesignal/issues/events{/number}","events_url":"https://api.github.com/repos/laravel-notification-channels/onesignal/events","assignees_url":"https://api.github.com/repos/laravel-notification-channels/onesignal/assignees{/user}","branches_url":"https://api.github.com/repos/laravel-notification-channels/onesignal/branches{/branch}","tags_url":"https://api.github.com/repos/laravel-notification-channels/onesignal/tags","blobs_url":"https://api.github.com/repos/laravel-notification-channels/onesignal/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/laravel-notification-channels/onesignal/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/laravel-notification-channels/onesignal/git/refs{/sha}","trees_url":"https://api.github.com/repos/laravel-notification-channels/onesignal/git/trees{/sha}","statuses_url":"https://api.github.com/repos/laravel-notification-channels/onesignal/statuses/{sha}","languages_url":"https://api.github.com/repos/laravel-notification-channels/onesignal/languages","stargazers_url":"https://api.github.com/repos/laravel-notification-channels/onesignal/stargazers","contributors_url":"https://api.github.com/repos/laravel-notification-channels/onesignal/contributors","subscribers_url":"https://api.github.com/repos/laravel-notification-channels/onesignal/subscribers","subscription_url":"https://api.github.com/repos/laravel-notification-channels/onesignal/subscription","commits_url":"https://api.github.com/repos/laravel-notification-channels/onesignal/commits{/sha}","git_commits_url":"https://api.github.com/repos/laravel-notification-channels/onesignal/git/commits{/sha}","comments_url":"https://api.github.com/repos/laravel-notification-channels/onesignal/comments{/number}","issue_comment_url":"https://api.github.com/repos/laravel-notification-channels/onesignal/issues/comments{/number}","contents_url":"https://api.github.com/repos/laravel-notification-channels/onesignal/contents/{+path}","compare_url":"https://api.github.com/repos/laravel-notification-channels/onesignal/compare/{base}...{head}","merges_url":"https://api.github.com/repos/laravel-notification-channels/onesignal/merges","archive_url":"https://api.github.com/repos/laravel-notification-channels/onesignal/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/laravel-notification-channels/onesignal/downloads","issues_url":"https://api.github.com/repos/laravel-notification-channels/onesignal/issues{/number}","pulls_url":"https://api.github.com/repos/laravel-notification-channels/onesignal/pulls{/number}","milestones_url":"https://api.github.com/repos/laravel-notification-channels/onesignal/milestones{/number}","notifications_url":"https://api.github.com/repos/laravel-notification-channels/onesignal/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/laravel-notification-channels/onesignal/labels{/name}","releases_url":"https://api.github.com/repos/laravel-notification-channels/onesignal/releases{/id}","deployments_url":"https://api.github.com/repos/laravel-notification-channels/onesignal/deployments","created_at":"2016-08-11T15:32:32Z","updated_at":"2018-03-14T05:39:38Z","pushed_at":"2018-03-14T06:48:43Z","git_url":"git://github.com/laravel-notification-channels/onesignal.git","ssh_url":"git@github.com:laravel-notification-channels/onesignal.git","clone_url":"https://github.com/laravel-notification-channels/onesignal.git","svn_url":"https://github.com/laravel-notification-channels/onesignal","homepage":"","size":82,"stargazers_count":69,"watchers_count":69,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":42,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":42,"open_issues":1,"watchers":69,"default_branch":"master"}},"base":{"label":"laravel-notification-channels:master","ref":"master","sha":"0477a89920b4ed1889adf0d3b0eee42c632ffd13","user":{"login":"laravel-notification-channels","id":20937037,"avatar_url":"https://avatars3.githubusercontent.com/u/20937037?v=4","gravatar_id":"","url":"https://api.github.com/users/laravel-notification-channels","html_url":"https://github.com/laravel-notification-channels","followers_url":"https://api.github.com/users/laravel-notification-channels/followers","following_url":"https://api.github.com/users/laravel-notification-channels/following{/other_user}","gists_url":"https://api.github.com/users/laravel-notification-channels/gists{/gist_id}","starred_url":"https://api.github.com/users/laravel-notification-channels/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laravel-notification-channels/subscriptions","organizations_url":"https://api.github.com/users/laravel-notification-channels/orgs","repos_url":"https://api.github.com/users/laravel-notification-channels/repos","events_url":"https://api.github.com/users/laravel-notification-channels/events{/privacy}","received_events_url":"https://api.github.com/users/laravel-notification-channels/received_events","type":"Organization","site_admin":false},"repo":{"id":65480774,"name":"onesignal","full_name":"laravel-notification-channels/onesignal","owner":{"login":"laravel-notification-channels","id":20937037,"avatar_url":"https://avatars3.githubusercontent.com/u/20937037?v=4","gravatar_id":"","url":"https://api.github.com/users/laravel-notification-channels","html_url":"https://github.com/laravel-notification-channels","followers_url":"https://api.github.com/users/laravel-notification-channels/followers","following_url":"https://api.github.com/users/laravel-notification-channels/following{/other_user}","gists_url":"https://api.github.com/users/laravel-notification-channels/gists{/gist_id}","starred_url":"https://api.github.com/users/laravel-notification-channels/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laravel-notification-channels/subscriptions","organizations_url":"https://api.github.com/users/laravel-notification-channels/orgs","repos_url":"https://api.github.com/users/laravel-notification-channels/repos","events_url":"https://api.github.com/users/laravel-notification-channels/events{/privacy}","received_events_url":"https://api.github.com/users/laravel-notification-channels/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/laravel-notification-channels/onesignal","description":"OneSignal notifications channel for Laravel 5.3+","fork":false,"url":"https://api.github.com/repos/laravel-notification-channels/onesignal","forks_url":"https://api.github.com/repos/laravel-notification-channels/onesignal/forks","keys_url":"https://api.github.com/repos/laravel-notification-channels/onesignal/keys{/key_id}","collaborators_url":"https://api.github.com/repos/laravel-notification-channels/onesignal/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/laravel-notification-channels/onesignal/teams","hooks_url":"https://api.github.com/repos/laravel-notification-channels/onesignal/hooks","issue_events_url":"https://api.github.com/repos/laravel-notification-channels/onesignal/issues/events{/number}","events_url":"https://api.github.com/repos/laravel-notification-channels/onesignal/events","assignees_url":"https://api.github.com/repos/laravel-notification-channels/onesignal/assignees{/user}","branches_url":"https://api.github.com/repos/laravel-notification-channels/onesignal/branches{/branch}","tags_url":"https://api.github.com/repos/laravel-notification-channels/onesignal/tags","blobs_url":"https://api.github.com/repos/laravel-notification-channels/onesignal/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/laravel-notification-channels/onesignal/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/laravel-notification-channels/onesignal/git/refs{/sha}","trees_url":"https://api.github.com/repos/laravel-notification-channels/onesignal/git/trees{/sha}","statuses_url":"https://api.github.com/repos/laravel-notification-channels/onesignal/statuses/{sha}","languages_url":"https://api.github.com/repos/laravel-notification-channels/onesignal/languages","stargazers_url":"https://api.github.com/repos/laravel-notification-channels/onesignal/stargazers","contributors_url":"https://api.github.com/repos/laravel-notification-channels/onesignal/contributors","subscribers_url":"https://api.github.com/repos/laravel-notification-channels/onesignal/subscribers","subscription_url":"https://api.github.com/repos/laravel-notification-channels/onesignal/subscription","commits_url":"https://api.github.com/repos/laravel-notification-channels/onesignal/commits{/sha}","git_commits_url":"https://api.github.com/repos/laravel-notification-channels/onesignal/git/commits{/sha}","comments_url":"https://api.github.com/repos/laravel-notification-channels/onesignal/comments{/number}","issue_comment_url":"https://api.github.com/repos/laravel-notification-channels/onesignal/issues/comments{/number}","contents_url":"https://api.github.com/repos/laravel-notification-channels/onesignal/contents/{+path}","compare_url":"https://api.github.com/repos/laravel-notification-channels/onesignal/compare/{base}...{head}","merges_url":"https://api.github.com/repos/laravel-notification-channels/onesignal/merges","archive_url":"https://api.github.com/repos/laravel-notification-channels/onesignal/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/laravel-notification-channels/onesignal/downloads","issues_url":"https://api.github.com/repos/laravel-notification-channels/onesignal/issues{/number}","pulls_url":"https://api.github.com/repos/laravel-notification-channels/onesignal/pulls{/number}","milestones_url":"https://api.github.com/repos/laravel-notification-channels/onesignal/milestones{/number}","notifications_url":"https://api.github.com/repos/laravel-notification-channels/onesignal/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/laravel-notification-channels/onesignal/labels{/name}","releases_url":"https://api.github.com/repos/laravel-notification-channels/onesignal/releases{/id}","deployments_url":"https://api.github.com/repos/laravel-notification-channels/onesignal/deployments","created_at":"2016-08-11T15:32:32Z","updated_at":"2018-03-14T05:39:38Z","pushed_at":"2018-03-14T06:48:43Z","git_url":"git://github.com/laravel-notification-channels/onesignal.git","ssh_url":"git@github.com:laravel-notification-channels/onesignal.git","clone_url":"https://github.com/laravel-notification-channels/onesignal.git","svn_url":"https://github.com/laravel-notification-channels/onesignal","homepage":"","size":82,"stargazers_count":69,"watchers_count":69,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":42,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":42,"open_issues":1,"watchers":69,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/laravel-notification-channels/onesignal/pulls/58"},"html":{"href":"https://github.com/laravel-notification-channels/onesignal/pull/58"},"issue":{"href":"https://api.github.com/repos/laravel-notification-channels/onesignal/issues/58"},"comments":{"href":"https://api.github.com/repos/laravel-notification-channels/onesignal/issues/58/comments"},"review_comments":{"href":"https://api.github.com/repos/laravel-notification-channels/onesignal/pulls/58/comments"},"review_comment":{"href":"https://api.github.com/repos/laravel-notification-channels/onesignal/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/laravel-notification-channels/onesignal/pulls/58/commits"},"statuses":{"href":"https://api.github.com/repos/laravel-notification-channels/onesignal/statuses/b926b131ff70c5fe39346cae0b393ae3cdc9d551"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"timacdonald"}}