{"action":"created","comment":{"url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/pulls/comments/176540717","pull_request_review_id":106263564,"id":176540717,"diff_hunk":"@@ -0,0 +1,141 @@\n+//\n+//  API_Firebase.swift\n+//  Etbaroon\n+//\n+//  Created by dev tl on 3/22/18.\n+//  Copyright © 2018 IAS-Systems. All rights reserved.\n+//\n+\n+import Foundation\n+import Alamofire\n+import SwiftyJSON\n+\n+class API_Firebase: NSObject {\n+    \n+    class func sendSinglePushByPlayerId(title : String ,message:String ,fldAppPlayerID:String , completion: @escaping (_ error: Error?, _ success: Bool)->Void) {\n+        \n+        let url =  URLs.URL_SEND_SINGLE_NOTIFICATION_BY_PLAYERID\n+        \n+        let parameters: [String: Any] = [\n+            \"title\": title,\n+            \"message\": message,\n+            \"fldAppPlayerID\": fldAppPlayerID\n+        ]\n+        \n+        Alamofire.request(url, method: .post, parameters:parameters, encoding: URLEncoding.default, headers: nil)\n+            //.validate(statusCode: 200..<300)\n+            .responseJSON { response in\n+                \n+                switch response.result\n+                {\n+                case .failure(let error):\n+                    completion(error,false)\n+                    print(error)\n+                    \n+                case .success( _):\n+                    completion(nil, true)\n+                }\n+        }\n+    }\n+    class func sendSinglePushByUserId(title : String ,message:String ,fldAppUserID:String , completion: @escaping (_ error: Error?, _ success: Bool)->Void) {\n+        \n+        let url =  URLs.URL_SEND_SINGLE_NOTIFICATION_BY_USERID\n+        \n+        let parameters: [String: Any] = [\n+            \"title\": title,\n+            \"message\": message,\n+            \"fldAppUserID\": fldAppUserID\n+        ]\n+        \n+        Alamofire.request(url, method: .post, parameters:parameters, encoding: URLEncoding.default, headers: nil)\n+            //.validate(statusCode: 200..<300)\n+            .responseJSON { response in\n+                \n+                switch response.result\n+                {\n+                case .failure(let error):\n+                    completion(error,false)\n+                    print(error)\n+                    \n+                case .success( _):","path":"fahad/etbaroon/v1/imob/ios/Etbaroon/Network/API/API_Firebase.swift","position":35,"original_position":60,"commit_id":"116f8378ce922687b53c3f76a959aeb3232f85ba","original_commit_id":"116f8378ce922687b53c3f76a959aeb3232f85ba","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars0.githubusercontent.com/u/6697940?v=4","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"Empty Enum Arguments Violation: Arguments can be omitted when matching enums with associated types if they are not used. (empty_enum_arguments)","created_at":"2018-03-22T19:11:45Z","updated_at":"2018-03-22T19:11:46Z","html_url":"https://github.com/IAS-SYSTEMS-CSC/spring/pull/1157#discussion_r176540717","pull_request_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/pulls/1157","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/pulls/comments/176540717"},"html":{"href":"https://github.com/IAS-SYSTEMS-CSC/spring/pull/1157#discussion_r176540717"},"pull_request":{"href":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/pulls/1157"}}},"pull_request":{"url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/pulls/1157","id":176387457,"html_url":"https://github.com/IAS-SYSTEMS-CSC/spring/pull/1157","diff_url":"https://github.com/IAS-SYSTEMS-CSC/spring/pull/1157.diff","patch_url":"https://github.com/IAS-SYSTEMS-CSC/spring/pull/1157.patch","issue_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/issues/1157","number":1157,"state":"open","locked":false,"title":"Tl1branch > tl1revbranch","user":{"login":"DevTL1","id":34707164,"avatar_url":"https://avatars3.githubusercontent.com/u/34707164?v=4","gravatar_id":"","url":"https://api.github.com/users/DevTL1","html_url":"https://github.com/DevTL1","followers_url":"https://api.github.com/users/DevTL1/followers","following_url":"https://api.github.com/users/DevTL1/following{/other_user}","gists_url":"https://api.github.com/users/DevTL1/gists{/gist_id}","starred_url":"https://api.github.com/users/DevTL1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DevTL1/subscriptions","organizations_url":"https://api.github.com/users/DevTL1/orgs","repos_url":"https://api.github.com/users/DevTL1/repos","events_url":"https://api.github.com/users/DevTL1/events{/privacy}","received_events_url":"https://api.github.com/users/DevTL1/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-03-21T05:49:53Z","updated_at":"2018-03-22T19:11:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ac8bac4fa4422664d7149cf24ef0effcda41163d","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/pulls/1157/commits","review_comments_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/pulls/1157/comments","review_comment_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/pulls/comments{/number}","comments_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/issues/1157/comments","statuses_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/statuses/116f8378ce922687b53c3f76a959aeb3232f85ba","head":{"label":"IAS-SYSTEMS-CSC:tl1branch","ref":"tl1branch","sha":"116f8378ce922687b53c3f76a959aeb3232f85ba","user":{"login":"IAS-SYSTEMS-CSC","id":34696817,"avatar_url":"https://avatars3.githubusercontent.com/u/34696817?v=4","gravatar_id":"","url":"https://api.github.com/users/IAS-SYSTEMS-CSC","html_url":"https://github.com/IAS-SYSTEMS-CSC","followers_url":"https://api.github.com/users/IAS-SYSTEMS-CSC/followers","following_url":"https://api.github.com/users/IAS-SYSTEMS-CSC/following{/other_user}","gists_url":"https://api.github.com/users/IAS-SYSTEMS-CSC/gists{/gist_id}","starred_url":"https://api.github.com/users/IAS-SYSTEMS-CSC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IAS-SYSTEMS-CSC/subscriptions","organizations_url":"https://api.github.com/users/IAS-SYSTEMS-CSC/orgs","repos_url":"https://api.github.com/users/IAS-SYSTEMS-CSC/repos","events_url":"https://api.github.com/users/IAS-SYSTEMS-CSC/events{/privacy}","received_events_url":"https://api.github.com/users/IAS-SYSTEMS-CSC/received_events","type":"Organization","site_admin":false},"repo":{"id":115261553,"name":"spring","full_name":"IAS-SYSTEMS-CSC/spring","owner":{"login":"IAS-SYSTEMS-CSC","id":34696817,"avatar_url":"https://avatars3.githubusercontent.com/u/34696817?v=4","gravatar_id":"","url":"https://api.github.com/users/IAS-SYSTEMS-CSC","html_url":"https://github.com/IAS-SYSTEMS-CSC","followers_url":"https://api.github.com/users/IAS-SYSTEMS-CSC/followers","following_url":"https://api.github.com/users/IAS-SYSTEMS-CSC/following{/other_user}","gists_url":"https://api.github.com/users/IAS-SYSTEMS-CSC/gists{/gist_id}","starred_url":"https://api.github.com/users/IAS-SYSTEMS-CSC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IAS-SYSTEMS-CSC/subscriptions","organizations_url":"https://api.github.com/users/IAS-SYSTEMS-CSC/orgs","repos_url":"https://api.github.com/users/IAS-SYSTEMS-CSC/repos","events_url":"https://api.github.com/users/IAS-SYSTEMS-CSC/events{/privacy}","received_events_url":"https://api.github.com/users/IAS-SYSTEMS-CSC/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/IAS-SYSTEMS-CSC/spring","description":"entire ias-systems work!","fork":false,"url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring","forks_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/forks","keys_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/keys{/key_id}","collaborators_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/teams","hooks_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/hooks","issue_events_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/issues/events{/number}","events_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/events","assignees_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/assignees{/user}","branches_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/branches{/branch}","tags_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/tags","blobs_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/git/refs{/sha}","trees_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/git/trees{/sha}","statuses_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/statuses/{sha}","languages_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/languages","stargazers_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/stargazers","contributors_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/contributors","subscribers_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/subscribers","subscription_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/subscription","commits_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/commits{/sha}","git_commits_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/git/commits{/sha}","comments_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/comments{/number}","issue_comment_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/issues/comments{/number}","contents_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/contents/{+path}","compare_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/compare/{base}...{head}","merges_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/merges","archive_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/downloads","issues_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/issues{/number}","pulls_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/pulls{/number}","milestones_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/milestones{/number}","notifications_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/labels{/name}","releases_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/releases{/id}","deployments_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/deployments","created_at":"2017-12-24T12:30:17Z","updated_at":"2018-03-20T04:37:52Z","pushed_at":"2018-03-22T19:11:32Z","git_url":"git://github.com/IAS-SYSTEMS-CSC/spring.git","ssh_url":"git@github.com:IAS-SYSTEMS-CSC/spring.git","clone_url":"https://github.com/IAS-SYSTEMS-CSC/spring.git","svn_url":"https://github.com/IAS-SYSTEMS-CSC/spring","homepage":null,"size":302130,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":11,"license":null,"forks":0,"open_issues":11,"watchers":0,"default_branch":"master"}},"base":{"label":"IAS-SYSTEMS-CSC:tl1revbranch","ref":"tl1revbranch","sha":"8c0e66350d2864cde4f5901b186b851f3440b78b","user":{"login":"IAS-SYSTEMS-CSC","id":34696817,"avatar_url":"https://avatars3.githubusercontent.com/u/34696817?v=4","gravatar_id":"","url":"https://api.github.com/users/IAS-SYSTEMS-CSC","html_url":"https://github.com/IAS-SYSTEMS-CSC","followers_url":"https://api.github.com/users/IAS-SYSTEMS-CSC/followers","following_url":"https://api.github.com/users/IAS-SYSTEMS-CSC/following{/other_user}","gists_url":"https://api.github.com/users/IAS-SYSTEMS-CSC/gists{/gist_id}","starred_url":"https://api.github.com/users/IAS-SYSTEMS-CSC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IAS-SYSTEMS-CSC/subscriptions","organizations_url":"https://api.github.com/users/IAS-SYSTEMS-CSC/orgs","repos_url":"https://api.github.com/users/IAS-SYSTEMS-CSC/repos","events_url":"https://api.github.com/users/IAS-SYSTEMS-CSC/events{/privacy}","received_events_url":"https://api.github.com/users/IAS-SYSTEMS-CSC/received_events","type":"Organization","site_admin":false},"repo":{"id":115261553,"name":"spring","full_name":"IAS-SYSTEMS-CSC/spring","owner":{"login":"IAS-SYSTEMS-CSC","id":34696817,"avatar_url":"https://avatars3.githubusercontent.com/u/34696817?v=4","gravatar_id":"","url":"https://api.github.com/users/IAS-SYSTEMS-CSC","html_url":"https://github.com/IAS-SYSTEMS-CSC","followers_url":"https://api.github.com/users/IAS-SYSTEMS-CSC/followers","following_url":"https://api.github.com/users/IAS-SYSTEMS-CSC/following{/other_user}","gists_url":"https://api.github.com/users/IAS-SYSTEMS-CSC/gists{/gist_id}","starred_url":"https://api.github.com/users/IAS-SYSTEMS-CSC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IAS-SYSTEMS-CSC/subscriptions","organizations_url":"https://api.github.com/users/IAS-SYSTEMS-CSC/orgs","repos_url":"https://api.github.com/users/IAS-SYSTEMS-CSC/repos","events_url":"https://api.github.com/users/IAS-SYSTEMS-CSC/events{/privacy}","received_events_url":"https://api.github.com/users/IAS-SYSTEMS-CSC/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/IAS-SYSTEMS-CSC/spring","description":"entire ias-systems work!","fork":false,"url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring","forks_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/forks","keys_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/keys{/key_id}","collaborators_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/teams","hooks_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/hooks","issue_events_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/issues/events{/number}","events_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/events","assignees_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/assignees{/user}","branches_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/branches{/branch}","tags_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/tags","blobs_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/git/refs{/sha}","trees_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/git/trees{/sha}","statuses_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/statuses/{sha}","languages_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/languages","stargazers_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/stargazers","contributors_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/contributors","subscribers_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/subscribers","subscription_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/subscription","commits_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/commits{/sha}","git_commits_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/git/commits{/sha}","comments_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/comments{/number}","issue_comment_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/issues/comments{/number}","contents_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/contents/{+path}","compare_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/compare/{base}...{head}","merges_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/merges","archive_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/downloads","issues_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/issues{/number}","pulls_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/pulls{/number}","milestones_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/milestones{/number}","notifications_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/labels{/name}","releases_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/releases{/id}","deployments_url":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/deployments","created_at":"2017-12-24T12:30:17Z","updated_at":"2018-03-20T04:37:52Z","pushed_at":"2018-03-22T19:11:32Z","git_url":"git://github.com/IAS-SYSTEMS-CSC/spring.git","ssh_url":"git@github.com:IAS-SYSTEMS-CSC/spring.git","clone_url":"https://github.com/IAS-SYSTEMS-CSC/spring.git","svn_url":"https://github.com/IAS-SYSTEMS-CSC/spring","homepage":null,"size":302130,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":11,"license":null,"forks":0,"open_issues":11,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/pulls/1157"},"html":{"href":"https://github.com/IAS-SYSTEMS-CSC/spring/pull/1157"},"issue":{"href":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/issues/1157"},"comments":{"href":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/issues/1157/comments"},"review_comments":{"href":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/pulls/1157/comments"},"review_comment":{"href":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/pulls/1157/commits"},"statuses":{"href":"https://api.github.com/repos/IAS-SYSTEMS-CSC/spring/statuses/116f8378ce922687b53c3f76a959aeb3232f85ba"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"houndci-bot"}}