{"action":"created","comment":{"url":"https://api.github.com/repos/SimonSimCity/Xamarin-CrossDownloadManager/pulls/comments/80472850","id":80472850,"diff_hunk":"@@ -92,20 +94,44 @@ public DownloadFileImplementation (ICursor cursor)\n             Url = cursor.GetString (cursor.GetColumnIndex (Android.App.DownloadManager.ColumnUri));\n         }\n \n-        public void StartDownload (Android.App.DownloadManager downloadManager, string destinationPathName)\n+        private bool _mobileNetworkAllowed = true;\n+\n+        public bool MobileNetworkAllowed\n         {\n-            using (var downloadUrl = Uri.Parse (Url))\n-            using (var request = new Android.App.DownloadManager.Request (downloadUrl)) {\n+            get\n+            {\n+                return _mobileNetworkAllowed;\n+            }\n+            set\n+            {\n+                _mobileNetworkAllowed = value;\n+                if (Request != null && value == false) {\n+                    Request.SetAllowedNetworkTypes(Android.App.DownloadNetwork.Wifi);","path":"DownloadManager/Plugin.DownloadManager.Android/DownloadFileImplementation.cs","position":null,"original_position":28,"commit_id":"6fc36987244a9a6fff1c4b157e3a637d2c6cb1b9","original_commit_id":"c9072c8dfad21283cbf8799c6e27e36eb50af114","user":{"login":"fela98","id":6069003,"avatar_url":"https://avatars.githubusercontent.com/u/6069003?v=3","gravatar_id":"","url":"https://api.github.com/users/fela98","html_url":"https://github.com/fela98","followers_url":"https://api.github.com/users/fela98/followers","following_url":"https://api.github.com/users/fela98/following{/other_user}","gists_url":"https://api.github.com/users/fela98/gists{/gist_id}","starred_url":"https://api.github.com/users/fela98/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fela98/subscriptions","organizations_url":"https://api.github.com/users/fela98/orgs","repos_url":"https://api.github.com/users/fela98/repos","events_url":"https://api.github.com/users/fela98/events{/privacy}","received_events_url":"https://api.github.com/users/fela98/received_events","type":"User","site_admin":false},"body":"Set it to use the latest possible API, which in my case is Android 7.0 (API level 24).","created_at":"2016-09-26T13:22:33Z","updated_at":"2016-09-26T13:22:33Z","html_url":"https://github.com/SimonSimCity/Xamarin-CrossDownloadManager/pull/31#discussion_r80472850","pull_request_url":"https://api.github.com/repos/SimonSimCity/Xamarin-CrossDownloadManager/pulls/31","_links":{"self":{"href":"https://api.github.com/repos/SimonSimCity/Xamarin-CrossDownloadManager/pulls/comments/80472850"},"html":{"href":"https://github.com/SimonSimCity/Xamarin-CrossDownloadManager/pull/31#discussion_r80472850"},"pull_request":{"href":"https://api.github.com/repos/SimonSimCity/Xamarin-CrossDownloadManager/pulls/31"}}},"pull_request":{"url":"https://api.github.com/repos/SimonSimCity/Xamarin-CrossDownloadManager/pulls/31","id":86147209,"html_url":"https://github.com/SimonSimCity/Xamarin-CrossDownloadManager/pull/31","diff_url":"https://github.com/SimonSimCity/Xamarin-CrossDownloadManager/pull/31.diff","patch_url":"https://github.com/SimonSimCity/Xamarin-CrossDownloadManager/pull/31.patch","issue_url":"https://api.github.com/repos/SimonSimCity/Xamarin-CrossDownloadManager/issues/31","number":31,"state":"open","locked":false,"title":"Possibility to disallow mobile network","user":{"login":"fela98","id":6069003,"avatar_url":"https://avatars.githubusercontent.com/u/6069003?v=3","gravatar_id":"","url":"https://api.github.com/users/fela98","html_url":"https://github.com/fela98","followers_url":"https://api.github.com/users/fela98/followers","following_url":"https://api.github.com/users/fela98/following{/other_user}","gists_url":"https://api.github.com/users/fela98/gists{/gist_id}","starred_url":"https://api.github.com/users/fela98/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fela98/subscriptions","organizations_url":"https://api.github.com/users/fela98/orgs","repos_url":"https://api.github.com/users/fela98/repos","events_url":"https://api.github.com/users/fela98/events{/privacy}","received_events_url":"https://api.github.com/users/fela98/received_events","type":"User","site_admin":false},"body":"Added support for choosing wether either the individual IDownloadFile or the entire IDownloadManager is allowed to download via MobileNetwork or not.\r\n\r\nThis solves #2 ","created_at":"2016-09-21T11:48:21Z","updated_at":"2016-09-26T13:22:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"068fe0872d36f682736736975588704d373a0e60","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/SimonSimCity/Xamarin-CrossDownloadManager/pulls/31/commits","review_comments_url":"https://api.github.com/repos/SimonSimCity/Xamarin-CrossDownloadManager/pulls/31/comments","review_comment_url":"https://api.github.com/repos/SimonSimCity/Xamarin-CrossDownloadManager/pulls/comments{/number}","comments_url":"https://api.github.com/repos/SimonSimCity/Xamarin-CrossDownloadManager/issues/31/comments","statuses_url":"https://api.github.com/repos/SimonSimCity/Xamarin-CrossDownloadManager/statuses/6fc36987244a9a6fff1c4b157e3a637d2c6cb1b9","head":{"label":"fela98:AllowMobileNetwork","ref":"AllowMobileNetwork","sha":"6fc36987244a9a6fff1c4b157e3a637d2c6cb1b9","user":{"login":"fela98","id":6069003,"avatar_url":"https://avatars.githubusercontent.com/u/6069003?v=3","gravatar_id":"","url":"https://api.github.com/users/fela98","html_url":"https://github.com/fela98","followers_url":"https://api.github.com/users/fela98/followers","following_url":"https://api.github.com/users/fela98/following{/other_user}","gists_url":"https://api.github.com/users/fela98/gists{/gist_id}","starred_url":"https://api.github.com/users/fela98/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fela98/subscriptions","organizations_url":"https://api.github.com/users/fela98/orgs","repos_url":"https://api.github.com/users/fela98/repos","events_url":"https://api.github.com/users/fela98/events{/privacy}","received_events_url":"https://api.github.com/users/fela98/received_events","type":"User","site_admin":false},"repo":{"id":68107744,"name":"Xamarin-CrossDownloadManager","full_name":"fela98/Xamarin-CrossDownloadManager","owner":{"login":"fela98","id":6069003,"avatar_url":"https://avatars.githubusercontent.com/u/6069003?v=3","gravatar_id":"","url":"https://api.github.com/users/fela98","html_url":"https://github.com/fela98","followers_url":"https://api.github.com/users/fela98/followers","following_url":"https://api.github.com/users/fela98/following{/other_user}","gists_url":"https://api.github.com/users/fela98/gists{/gist_id}","starred_url":"https://api.github.com/users/fela98/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fela98/subscriptions","organizations_url":"https://api.github.com/users/fela98/orgs","repos_url":"https://api.github.com/users/fela98/repos","events_url":"https://api.github.com/users/fela98/events{/privacy}","received_events_url":"https://api.github.com/users/fela98/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/fela98/Xamarin-CrossDownloadManager","description":null,"fork":true,"url":"https://api.github.com/repos/fela98/Xamarin-CrossDownloadManager","forks_url":"https://api.github.com/repos/fela98/Xamarin-CrossDownloadManager/forks","keys_url":"https://api.github.com/repos/fela98/Xamarin-CrossDownloadManager/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fela98/Xamarin-CrossDownloadManager/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fela98/Xamarin-CrossDownloadManager/teams","hooks_url":"https://api.github.com/repos/fela98/Xamarin-CrossDownloadManager/hooks","issue_events_url":"https://api.github.com/repos/fela98/Xamarin-CrossDownloadManager/issues/events{/number}","events_url":"https://api.github.com/repos/fela98/Xamarin-CrossDownloadManager/events","assignees_url":"https://api.github.com/repos/fela98/Xamarin-CrossDownloadManager/assignees{/user}","branches_url":"https://api.github.com/repos/fela98/Xamarin-CrossDownloadManager/branches{/branch}","tags_url":"https://api.github.com/repos/fela98/Xamarin-CrossDownloadManager/tags","blobs_url":"https://api.github.com/repos/fela98/Xamarin-CrossDownloadManager/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fela98/Xamarin-CrossDownloadManager/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fela98/Xamarin-CrossDownloadManager/git/refs{/sha}","trees_url":"https://api.github.com/repos/fela98/Xamarin-CrossDownloadManager/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fela98/Xamarin-CrossDownloadManager/statuses/{sha}","languages_url":"https://api.github.com/repos/fela98/Xamarin-CrossDownloadManager/languages","stargazers_url":"https://api.github.com/repos/fela98/Xamarin-CrossDownloadManager/stargazers","contributors_url":"https://api.github.com/repos/fela98/Xamarin-CrossDownloadManager/contributors","subscribers_url":"https://api.github.com/repos/fela98/Xamarin-CrossDownloadManager/subscribers","subscription_url":"https://api.github.com/repos/fela98/Xamarin-CrossDownloadManager/subscription","commits_url":"https://api.github.com/repos/fela98/Xamarin-CrossDownloadManager/commits{/sha}","git_commits_url":"https://api.github.com/repos/fela98/Xamarin-CrossDownloadManager/git/commits{/sha}","comments_url":"https://api.github.com/repos/fela98/Xamarin-CrossDownloadManager/comments{/number}","issue_comment_url":"https://api.github.com/repos/fela98/Xamarin-CrossDownloadManager/issues/comments{/number}","contents_url":"https://api.github.com/repos/fela98/Xamarin-CrossDownloadManager/contents/{+path}","compare_url":"https://api.github.com/repos/fela98/Xamarin-CrossDownloadManager/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fela98/Xamarin-CrossDownloadManager/merges","archive_url":"https://api.github.com/repos/fela98/Xamarin-CrossDownloadManager/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fela98/Xamarin-CrossDownloadManager/downloads","issues_url":"https://api.github.com/repos/fela98/Xamarin-CrossDownloadManager/issues{/number}","pulls_url":"https://api.github.com/repos/fela98/Xamarin-CrossDownloadManager/pulls{/number}","milestones_url":"https://api.github.com/repos/fela98/Xamarin-CrossDownloadManager/milestones{/number}","notifications_url":"https://api.github.com/repos/fela98/Xamarin-CrossDownloadManager/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fela98/Xamarin-CrossDownloadManager/labels{/name}","releases_url":"https://api.github.com/repos/fela98/Xamarin-CrossDownloadManager/releases{/id}","deployments_url":"https://api.github.com/repos/fela98/Xamarin-CrossDownloadManager/deployments","created_at":"2016-09-13T12:49:17Z","updated_at":"2016-09-13T12:49:18Z","pushed_at":"2016-09-26T13:02:27Z","git_url":"git://github.com/fela98/Xamarin-CrossDownloadManager.git","ssh_url":"git@github.com:fela98/Xamarin-CrossDownloadManager.git","clone_url":"https://github.com/fela98/Xamarin-CrossDownloadManager.git","svn_url":"https://github.com/fela98/Xamarin-CrossDownloadManager","homepage":null,"size":139,"stargazers_count":0,"watchers_count":0,"language":"C#","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":"SimonSimCity:master","ref":"master","sha":"ee6caf8a9d77f8f0169ec58ab3a712d56f382a03","user":{"login":"SimonSimCity","id":392589,"avatar_url":"https://avatars.githubusercontent.com/u/392589?v=3","gravatar_id":"","url":"https://api.github.com/users/SimonSimCity","html_url":"https://github.com/SimonSimCity","followers_url":"https://api.github.com/users/SimonSimCity/followers","following_url":"https://api.github.com/users/SimonSimCity/following{/other_user}","gists_url":"https://api.github.com/users/SimonSimCity/gists{/gist_id}","starred_url":"https://api.github.com/users/SimonSimCity/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SimonSimCity/subscriptions","organizations_url":"https://api.github.com/users/SimonSimCity/orgs","repos_url":"https://api.github.com/users/SimonSimCity/repos","events_url":"https://api.github.com/users/SimonSimCity/events{/privacy}","received_events_url":"https://api.github.com/users/SimonSimCity/received_events","type":"User","site_admin":false},"repo":{"id":52967773,"name":"Xamarin-CrossDownloadManager","full_name":"SimonSimCity/Xamarin-CrossDownloadManager","owner":{"login":"SimonSimCity","id":392589,"avatar_url":"https://avatars.githubusercontent.com/u/392589?v=3","gravatar_id":"","url":"https://api.github.com/users/SimonSimCity","html_url":"https://github.com/SimonSimCity","followers_url":"https://api.github.com/users/SimonSimCity/followers","following_url":"https://api.github.com/users/SimonSimCity/following{/other_user}","gists_url":"https://api.github.com/users/SimonSimCity/gists{/gist_id}","starred_url":"https://api.github.com/users/SimonSimCity/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SimonSimCity/subscriptions","organizations_url":"https://api.github.com/users/SimonSimCity/orgs","repos_url":"https://api.github.com/users/SimonSimCity/repos","events_url":"https://api.github.com/users/SimonSimCity/events{/privacy}","received_events_url":"https://api.github.com/users/SimonSimCity/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/SimonSimCity/Xamarin-CrossDownloadManager","description":"","fork":false,"url":"https://api.github.com/repos/SimonSimCity/Xamarin-CrossDownloadManager","forks_url":"https://api.github.com/repos/SimonSimCity/Xamarin-CrossDownloadManager/forks","keys_url":"https://api.github.com/repos/SimonSimCity/Xamarin-CrossDownloadManager/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SimonSimCity/Xamarin-CrossDownloadManager/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SimonSimCity/Xamarin-CrossDownloadManager/teams","hooks_url":"https://api.github.com/repos/SimonSimCity/Xamarin-CrossDownloadManager/hooks","issue_events_url":"https://api.github.com/repos/SimonSimCity/Xamarin-CrossDownloadManager/issues/events{/number}","events_url":"https://api.github.com/repos/SimonSimCity/Xamarin-CrossDownloadManager/events","assignees_url":"https://api.github.com/repos/SimonSimCity/Xamarin-CrossDownloadManager/assignees{/user}","branches_url":"https://api.github.com/repos/SimonSimCity/Xamarin-CrossDownloadManager/branches{/branch}","tags_url":"https://api.github.com/repos/SimonSimCity/Xamarin-CrossDownloadManager/tags","blobs_url":"https://api.github.com/repos/SimonSimCity/Xamarin-CrossDownloadManager/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SimonSimCity/Xamarin-CrossDownloadManager/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SimonSimCity/Xamarin-CrossDownloadManager/git/refs{/sha}","trees_url":"https://api.github.com/repos/SimonSimCity/Xamarin-CrossDownloadManager/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SimonSimCity/Xamarin-CrossDownloadManager/statuses/{sha}","languages_url":"https://api.github.com/repos/SimonSimCity/Xamarin-CrossDownloadManager/languages","stargazers_url":"https://api.github.com/repos/SimonSimCity/Xamarin-CrossDownloadManager/stargazers","contributors_url":"https://api.github.com/repos/SimonSimCity/Xamarin-CrossDownloadManager/contributors","subscribers_url":"https://api.github.com/repos/SimonSimCity/Xamarin-CrossDownloadManager/subscribers","subscription_url":"https://api.github.com/repos/SimonSimCity/Xamarin-CrossDownloadManager/subscription","commits_url":"https://api.github.com/repos/SimonSimCity/Xamarin-CrossDownloadManager/commits{/sha}","git_commits_url":"https://api.github.com/repos/SimonSimCity/Xamarin-CrossDownloadManager/git/commits{/sha}","comments_url":"https://api.github.com/repos/SimonSimCity/Xamarin-CrossDownloadManager/comments{/number}","issue_comment_url":"https://api.github.com/repos/SimonSimCity/Xamarin-CrossDownloadManager/issues/comments{/number}","contents_url":"https://api.github.com/repos/SimonSimCity/Xamarin-CrossDownloadManager/contents/{+path}","compare_url":"https://api.github.com/repos/SimonSimCity/Xamarin-CrossDownloadManager/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SimonSimCity/Xamarin-CrossDownloadManager/merges","archive_url":"https://api.github.com/repos/SimonSimCity/Xamarin-CrossDownloadManager/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SimonSimCity/Xamarin-CrossDownloadManager/downloads","issues_url":"https://api.github.com/repos/SimonSimCity/Xamarin-CrossDownloadManager/issues{/number}","pulls_url":"https://api.github.com/repos/SimonSimCity/Xamarin-CrossDownloadManager/pulls{/number}","milestones_url":"https://api.github.com/repos/SimonSimCity/Xamarin-CrossDownloadManager/milestones{/number}","notifications_url":"https://api.github.com/repos/SimonSimCity/Xamarin-CrossDownloadManager/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SimonSimCity/Xamarin-CrossDownloadManager/labels{/name}","releases_url":"https://api.github.com/repos/SimonSimCity/Xamarin-CrossDownloadManager/releases{/id}","deployments_url":"https://api.github.com/repos/SimonSimCity/Xamarin-CrossDownloadManager/deployments","created_at":"2016-03-02T14:11:44Z","updated_at":"2016-09-18T21:51:11Z","pushed_at":"2016-09-26T13:02:27Z","git_url":"git://github.com/SimonSimCity/Xamarin-CrossDownloadManager.git","ssh_url":"git@github.com:SimonSimCity/Xamarin-CrossDownloadManager.git","clone_url":"https://github.com/SimonSimCity/Xamarin-CrossDownloadManager.git","svn_url":"https://github.com/SimonSimCity/Xamarin-CrossDownloadManager","homepage":null,"size":122,"stargazers_count":15,"watchers_count":15,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":8,"forks":4,"open_issues":8,"watchers":15,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/SimonSimCity/Xamarin-CrossDownloadManager/pulls/31"},"html":{"href":"https://github.com/SimonSimCity/Xamarin-CrossDownloadManager/pull/31"},"issue":{"href":"https://api.github.com/repos/SimonSimCity/Xamarin-CrossDownloadManager/issues/31"},"comments":{"href":"https://api.github.com/repos/SimonSimCity/Xamarin-CrossDownloadManager/issues/31/comments"},"review_comments":{"href":"https://api.github.com/repos/SimonSimCity/Xamarin-CrossDownloadManager/pulls/31/comments"},"review_comment":{"href":"https://api.github.com/repos/SimonSimCity/Xamarin-CrossDownloadManager/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/SimonSimCity/Xamarin-CrossDownloadManager/pulls/31/commits"},"statuses":{"href":"https://api.github.com/repos/SimonSimCity/Xamarin-CrossDownloadManager/statuses/6fc36987244a9a6fff1c4b157e3a637d2c6cb1b9"}}}}
{"actor":{"display_login":"fela98"}}