{"action":"created","comment":{"url":"https://api.github.com/repos/Impyy/SharpTox/pulls/comments/48135341","id":48135341,"diff_hunk":"@@ -12,15 +12,39 @@ public class ToxTransfer\n         public string Name { get; private set; }\n         public long Size { get; private set; }\n         public ToxFileKind Kind { get; private set; }\n-        public ToxTransferState State { get; protected set; } //initial state is 'paused' for the receiving end, 'in progress' for the sending end\n+        public ToxTransferState State { get; protected set; }\n+\n+        private int _transferredBytes;\n+\n+        protected int TransferredBytes\n+        {\n+            get { return _transferredBytes; }\n+            set\n+            {\n+                if (value == _transferredBytes)\n+                    return;\n+                _transferredBytes = value;\n+                if (ProgressChanged != null)\n+                    ProgressChanged(this, new ToxTransferEventArgs.ProgressEventArgs(Progress));","path":"SharpTox/HL/Transfers/ToxTransfer.cs","position":18,"original_position":18,"commit_id":"8205a226cbf05c2b8fa21530b4dfcbc485c19558","original_commit_id":"8205a226cbf05c2b8fa21530b4dfcbc485c19558","user":{"login":"Impyy","id":2387841,"avatar_url":"https://avatars.githubusercontent.com/u/2387841?v=3","gravatar_id":"","url":"https://api.github.com/users/Impyy","html_url":"https://github.com/Impyy","followers_url":"https://api.github.com/users/Impyy/followers","following_url":"https://api.github.com/users/Impyy/following{/other_user}","gists_url":"https://api.github.com/users/Impyy/gists{/gist_id}","starred_url":"https://api.github.com/users/Impyy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Impyy/subscriptions","organizations_url":"https://api.github.com/users/Impyy/orgs","repos_url":"https://api.github.com/users/Impyy/repos","events_url":"https://api.github.com/users/Impyy/events{/privacy}","received_events_url":"https://api.github.com/users/Impyy/received_events","type":"User","site_admin":false},"body":"This event is going to be fired **a lot**. Perhaps we should make it so that it only fires every time the percentage goes up by a full percent. So for 4% and 5%, but not for 4%, 4.2%, 4.4%...5% and so on.","created_at":"2015-12-21T10:58:24Z","updated_at":"2015-12-21T10:58:24Z","html_url":"https://github.com/Impyy/SharpTox/pull/19#discussion_r48135341","pull_request_url":"https://api.github.com/repos/Impyy/SharpTox/pulls/19","_links":{"self":{"href":"https://api.github.com/repos/Impyy/SharpTox/pulls/comments/48135341"},"html":{"href":"https://github.com/Impyy/SharpTox/pull/19#discussion_r48135341"},"pull_request":{"href":"https://api.github.com/repos/Impyy/SharpTox/pulls/19"}}},"pull_request":{"url":"https://api.github.com/repos/Impyy/SharpTox/pulls/19","id":54231005,"html_url":"https://github.com/Impyy/SharpTox/pull/19","diff_url":"https://github.com/Impyy/SharpTox/pull/19.diff","patch_url":"https://github.com/Impyy/SharpTox/pull/19.patch","issue_url":"https://api.github.com/repos/Impyy/SharpTox/issues/19","number":19,"state":"open","locked":false,"title":"Some improvements on HL file transfers.","user":{"login":"uruk","id":3806723,"avatar_url":"https://avatars.githubusercontent.com/u/3806723?v=3","gravatar_id":"","url":"https://api.github.com/users/uruk","html_url":"https://github.com/uruk","followers_url":"https://api.github.com/users/uruk/followers","following_url":"https://api.github.com/users/uruk/following{/other_user}","gists_url":"https://api.github.com/users/uruk/gists{/gist_id}","starred_url":"https://api.github.com/users/uruk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uruk/subscriptions","organizations_url":"https://api.github.com/users/uruk/orgs","repos_url":"https://api.github.com/users/uruk/repos","events_url":"https://api.github.com/users/uruk/events{/privacy}","received_events_url":"https://api.github.com/users/uruk/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-12-21T08:25:23Z","updated_at":"2015-12-21T10:58:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9a4c4ec88cf660918e1db5a05c9ec53dd8a2bfb2","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Impyy/SharpTox/pulls/19/commits","review_comments_url":"https://api.github.com/repos/Impyy/SharpTox/pulls/19/comments","review_comment_url":"https://api.github.com/repos/Impyy/SharpTox/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Impyy/SharpTox/issues/19/comments","statuses_url":"https://api.github.com/repos/Impyy/SharpTox/statuses/8205a226cbf05c2b8fa21530b4dfcbc485c19558","head":{"label":"uruk:hl-api","ref":"hl-api","sha":"8205a226cbf05c2b8fa21530b4dfcbc485c19558","user":{"login":"uruk","id":3806723,"avatar_url":"https://avatars.githubusercontent.com/u/3806723?v=3","gravatar_id":"","url":"https://api.github.com/users/uruk","html_url":"https://github.com/uruk","followers_url":"https://api.github.com/users/uruk/followers","following_url":"https://api.github.com/users/uruk/following{/other_user}","gists_url":"https://api.github.com/users/uruk/gists{/gist_id}","starred_url":"https://api.github.com/users/uruk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uruk/subscriptions","organizations_url":"https://api.github.com/users/uruk/orgs","repos_url":"https://api.github.com/users/uruk/repos","events_url":"https://api.github.com/users/uruk/events{/privacy}","received_events_url":"https://api.github.com/users/uruk/received_events","type":"User","site_admin":false},"repo":{"id":32094598,"name":"SharpTox","full_name":"uruk/SharpTox","owner":{"login":"uruk","id":3806723,"avatar_url":"https://avatars.githubusercontent.com/u/3806723?v=3","gravatar_id":"","url":"https://api.github.com/users/uruk","html_url":"https://github.com/uruk","followers_url":"https://api.github.com/users/uruk/followers","following_url":"https://api.github.com/users/uruk/following{/other_user}","gists_url":"https://api.github.com/users/uruk/gists{/gist_id}","starred_url":"https://api.github.com/users/uruk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uruk/subscriptions","organizations_url":"https://api.github.com/users/uruk/orgs","repos_url":"https://api.github.com/users/uruk/repos","events_url":"https://api.github.com/users/uruk/events{/privacy}","received_events_url":"https://api.github.com/users/uruk/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/uruk/SharpTox","description":"Wrapper library for Tox core, av and dns functions","fork":true,"url":"https://api.github.com/repos/uruk/SharpTox","forks_url":"https://api.github.com/repos/uruk/SharpTox/forks","keys_url":"https://api.github.com/repos/uruk/SharpTox/keys{/key_id}","collaborators_url":"https://api.github.com/repos/uruk/SharpTox/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/uruk/SharpTox/teams","hooks_url":"https://api.github.com/repos/uruk/SharpTox/hooks","issue_events_url":"https://api.github.com/repos/uruk/SharpTox/issues/events{/number}","events_url":"https://api.github.com/repos/uruk/SharpTox/events","assignees_url":"https://api.github.com/repos/uruk/SharpTox/assignees{/user}","branches_url":"https://api.github.com/repos/uruk/SharpTox/branches{/branch}","tags_url":"https://api.github.com/repos/uruk/SharpTox/tags","blobs_url":"https://api.github.com/repos/uruk/SharpTox/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/uruk/SharpTox/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/uruk/SharpTox/git/refs{/sha}","trees_url":"https://api.github.com/repos/uruk/SharpTox/git/trees{/sha}","statuses_url":"https://api.github.com/repos/uruk/SharpTox/statuses/{sha}","languages_url":"https://api.github.com/repos/uruk/SharpTox/languages","stargazers_url":"https://api.github.com/repos/uruk/SharpTox/stargazers","contributors_url":"https://api.github.com/repos/uruk/SharpTox/contributors","subscribers_url":"https://api.github.com/repos/uruk/SharpTox/subscribers","subscription_url":"https://api.github.com/repos/uruk/SharpTox/subscription","commits_url":"https://api.github.com/repos/uruk/SharpTox/commits{/sha}","git_commits_url":"https://api.github.com/repos/uruk/SharpTox/git/commits{/sha}","comments_url":"https://api.github.com/repos/uruk/SharpTox/comments{/number}","issue_comment_url":"https://api.github.com/repos/uruk/SharpTox/issues/comments{/number}","contents_url":"https://api.github.com/repos/uruk/SharpTox/contents/{+path}","compare_url":"https://api.github.com/repos/uruk/SharpTox/compare/{base}...{head}","merges_url":"https://api.github.com/repos/uruk/SharpTox/merges","archive_url":"https://api.github.com/repos/uruk/SharpTox/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/uruk/SharpTox/downloads","issues_url":"https://api.github.com/repos/uruk/SharpTox/issues{/number}","pulls_url":"https://api.github.com/repos/uruk/SharpTox/pulls{/number}","milestones_url":"https://api.github.com/repos/uruk/SharpTox/milestones{/number}","notifications_url":"https://api.github.com/repos/uruk/SharpTox/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/uruk/SharpTox/labels{/name}","releases_url":"https://api.github.com/repos/uruk/SharpTox/releases{/id}","created_at":"2015-03-12T18:31:44Z","updated_at":"2015-05-05T14:28:43Z","pushed_at":"2015-12-21T08:23:07Z","git_url":"git://github.com/uruk/SharpTox.git","ssh_url":"git@github.com:uruk/SharpTox.git","clone_url":"https://github.com/uruk/SharpTox.git","svn_url":"https://github.com/uruk/SharpTox","homepage":"","size":912,"stargazers_count":1,"watchers_count":1,"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":1,"default_branch":"master"}},"base":{"label":"Impyy:hl-api","ref":"hl-api","sha":"9950d65b161ff49397d92c09531c5d38d9b59438","user":{"login":"Impyy","id":2387841,"avatar_url":"https://avatars.githubusercontent.com/u/2387841?v=3","gravatar_id":"","url":"https://api.github.com/users/Impyy","html_url":"https://github.com/Impyy","followers_url":"https://api.github.com/users/Impyy/followers","following_url":"https://api.github.com/users/Impyy/following{/other_user}","gists_url":"https://api.github.com/users/Impyy/gists{/gist_id}","starred_url":"https://api.github.com/users/Impyy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Impyy/subscriptions","organizations_url":"https://api.github.com/users/Impyy/orgs","repos_url":"https://api.github.com/users/Impyy/repos","events_url":"https://api.github.com/users/Impyy/events{/privacy}","received_events_url":"https://api.github.com/users/Impyy/received_events","type":"User","site_admin":false},"repo":{"id":19086778,"name":"SharpTox","full_name":"Impyy/SharpTox","owner":{"login":"Impyy","id":2387841,"avatar_url":"https://avatars.githubusercontent.com/u/2387841?v=3","gravatar_id":"","url":"https://api.github.com/users/Impyy","html_url":"https://github.com/Impyy","followers_url":"https://api.github.com/users/Impyy/followers","following_url":"https://api.github.com/users/Impyy/following{/other_user}","gists_url":"https://api.github.com/users/Impyy/gists{/gist_id}","starred_url":"https://api.github.com/users/Impyy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Impyy/subscriptions","organizations_url":"https://api.github.com/users/Impyy/orgs","repos_url":"https://api.github.com/users/Impyy/repos","events_url":"https://api.github.com/users/Impyy/events{/privacy}","received_events_url":"https://api.github.com/users/Impyy/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Impyy/SharpTox","description":"Wrapper library for Tox core, av and dns functions","fork":false,"url":"https://api.github.com/repos/Impyy/SharpTox","forks_url":"https://api.github.com/repos/Impyy/SharpTox/forks","keys_url":"https://api.github.com/repos/Impyy/SharpTox/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Impyy/SharpTox/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Impyy/SharpTox/teams","hooks_url":"https://api.github.com/repos/Impyy/SharpTox/hooks","issue_events_url":"https://api.github.com/repos/Impyy/SharpTox/issues/events{/number}","events_url":"https://api.github.com/repos/Impyy/SharpTox/events","assignees_url":"https://api.github.com/repos/Impyy/SharpTox/assignees{/user}","branches_url":"https://api.github.com/repos/Impyy/SharpTox/branches{/branch}","tags_url":"https://api.github.com/repos/Impyy/SharpTox/tags","blobs_url":"https://api.github.com/repos/Impyy/SharpTox/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Impyy/SharpTox/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Impyy/SharpTox/git/refs{/sha}","trees_url":"https://api.github.com/repos/Impyy/SharpTox/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Impyy/SharpTox/statuses/{sha}","languages_url":"https://api.github.com/repos/Impyy/SharpTox/languages","stargazers_url":"https://api.github.com/repos/Impyy/SharpTox/stargazers","contributors_url":"https://api.github.com/repos/Impyy/SharpTox/contributors","subscribers_url":"https://api.github.com/repos/Impyy/SharpTox/subscribers","subscription_url":"https://api.github.com/repos/Impyy/SharpTox/subscription","commits_url":"https://api.github.com/repos/Impyy/SharpTox/commits{/sha}","git_commits_url":"https://api.github.com/repos/Impyy/SharpTox/git/commits{/sha}","comments_url":"https://api.github.com/repos/Impyy/SharpTox/comments{/number}","issue_comment_url":"https://api.github.com/repos/Impyy/SharpTox/issues/comments{/number}","contents_url":"https://api.github.com/repos/Impyy/SharpTox/contents/{+path}","compare_url":"https://api.github.com/repos/Impyy/SharpTox/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Impyy/SharpTox/merges","archive_url":"https://api.github.com/repos/Impyy/SharpTox/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Impyy/SharpTox/downloads","issues_url":"https://api.github.com/repos/Impyy/SharpTox/issues{/number}","pulls_url":"https://api.github.com/repos/Impyy/SharpTox/pulls{/number}","milestones_url":"https://api.github.com/repos/Impyy/SharpTox/milestones{/number}","notifications_url":"https://api.github.com/repos/Impyy/SharpTox/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Impyy/SharpTox/labels{/name}","releases_url":"https://api.github.com/repos/Impyy/SharpTox/releases{/id}","created_at":"2014-04-23T21:47:33Z","updated_at":"2015-12-14T10:09:07Z","pushed_at":"2015-12-21T08:25:23Z","git_url":"git://github.com/Impyy/SharpTox.git","ssh_url":"git@github.com:Impyy/SharpTox.git","clone_url":"https://github.com/Impyy/SharpTox.git","svn_url":"https://github.com/Impyy/SharpTox","homepage":"","size":1129,"stargazers_count":43,"watchers_count":43,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":21,"mirror_url":null,"open_issues_count":2,"forks":21,"open_issues":2,"watchers":43,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Impyy/SharpTox/pulls/19"},"html":{"href":"https://github.com/Impyy/SharpTox/pull/19"},"issue":{"href":"https://api.github.com/repos/Impyy/SharpTox/issues/19"},"comments":{"href":"https://api.github.com/repos/Impyy/SharpTox/issues/19/comments"},"review_comments":{"href":"https://api.github.com/repos/Impyy/SharpTox/pulls/19/comments"},"review_comment":{"href":"https://api.github.com/repos/Impyy/SharpTox/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Impyy/SharpTox/pulls/19/commits"},"statuses":{"href":"https://api.github.com/repos/Impyy/SharpTox/statuses/8205a226cbf05c2b8fa21530b4dfcbc485c19558"}}}}