{"action":"created","comment":{"url":"https://api.github.com/repos/brave-intl/bat-native-ledger/pulls/comments/214491586","pull_request_review_id":151568367,"id":214491586,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxNDQ5MTU4Ng==","diff_hunk":"@@ -220,7 +253,27 @@ void LedgerImpl::SetPublisherInfo(std::unique_ptr<ledger::PublisherInfo> info,\n                                   ledger::PublisherInfoCallback callback) {\n   ledger_client_->SavePublisherInfo(std::move(info),\n       std::bind(&LedgerImpl::OnSetPublisherInfo, this, callback, _1, _2));\n+}\n+\n+void LedgerImpl::SetMediaPublisherInfo(const uint64_t& duration, \n+                                std::unique_ptr<ledger::MediaPublisherInfo> media_publisher_info,\n+                                const ledger::VisitData& visit_data,\n+                                ledger::MediaPublisherInfoCallback callback) {\n+  ledger_client_->SaveMediaPublisherInfo(std::move(media_publisher_info),\n+      std::bind(&LedgerImpl::OnSetMediaPublisherInfo, this, duration, visit_data, callback, _1, _2));\n+}\n+\n+void LedgerImpl::OnSetMediaPublisherInfo(const uint64_t& duration,\n+                          const ledger::VisitData& visit_data,\n+                          ledger::MediaPublisherInfoCallback callback,\n+                          ledger::Result result,\n+                          std::unique_ptr<ledger::MediaPublisherInfo> info) {\n+  SaveMediaVisit(visit_data, duration);\n+  callback(result, std::move(info));","path":"src/ledger_impl.cc","position":65,"original_position":65,"commit_id":"f08c7b09a2d927fe50860923e523960f702ea492","original_commit_id":"f08c7b09a2d927fe50860923e523960f702ea492","user":{"login":"SergeyZhukovsky","id":12011303,"node_id":"MDQ6VXNlcjEyMDExMzAz","avatar_url":"https://avatars2.githubusercontent.com/u/12011303?v=4","gravatar_id":"","url":"https://api.github.com/users/SergeyZhukovsky","html_url":"https://github.com/SergeyZhukovsky","followers_url":"https://api.github.com/users/SergeyZhukovsky/followers","following_url":"https://api.github.com/users/SergeyZhukovsky/following{/other_user}","gists_url":"https://api.github.com/users/SergeyZhukovsky/gists{/gist_id}","starred_url":"https://api.github.com/users/SergeyZhukovsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SergeyZhukovsky/subscriptions","organizations_url":"https://api.github.com/users/SergeyZhukovsky/orgs","repos_url":"https://api.github.com/users/SergeyZhukovsky/repos","events_url":"https://api.github.com/users/SergeyZhukovsky/events{/privacy}","received_events_url":"https://api.github.com/users/SergeyZhukovsky/received_events","type":"User","site_admin":false},"body":"the callback is a callback above that we want to remove `onVisitSavedDummy`","created_at":"2018-08-31T22:55:26Z","updated_at":"2018-08-31T22:55:27Z","html_url":"https://github.com/brave-intl/bat-native-ledger/pull/64#discussion_r214491586","pull_request_url":"https://api.github.com/repos/brave-intl/bat-native-ledger/pulls/64","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/brave-intl/bat-native-ledger/pulls/comments/214491586"},"html":{"href":"https://github.com/brave-intl/bat-native-ledger/pull/64#discussion_r214491586"},"pull_request":{"href":"https://api.github.com/repos/brave-intl/bat-native-ledger/pulls/64"}},"in_reply_to_id":214477297},"pull_request":{"url":"https://api.github.com/repos/brave-intl/bat-native-ledger/pulls/64","id":212453863,"node_id":"MDExOlB1bGxSZXF1ZXN0MjEyNDUzODYz","html_url":"https://github.com/brave-intl/bat-native-ledger/pull/64","diff_url":"https://github.com/brave-intl/bat-native-ledger/pull/64.diff","patch_url":"https://github.com/brave-intl/bat-native-ledger/pull/64.patch","issue_url":"https://api.github.com/repos/brave-intl/bat-native-ledger/issues/64","number":64,"state":"open","locked":false,"title":"Yt twitch integration fixes","user":{"login":"SergeyZhukovsky","id":12011303,"node_id":"MDQ6VXNlcjEyMDExMzAz","avatar_url":"https://avatars2.githubusercontent.com/u/12011303?v=4","gravatar_id":"","url":"https://api.github.com/users/SergeyZhukovsky","html_url":"https://github.com/SergeyZhukovsky","followers_url":"https://api.github.com/users/SergeyZhukovsky/followers","following_url":"https://api.github.com/users/SergeyZhukovsky/following{/other_user}","gists_url":"https://api.github.com/users/SergeyZhukovsky/gists{/gist_id}","starred_url":"https://api.github.com/users/SergeyZhukovsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SergeyZhukovsky/subscriptions","organizations_url":"https://api.github.com/users/SergeyZhukovsky/orgs","repos_url":"https://api.github.com/users/SergeyZhukovsky/repos","events_url":"https://api.github.com/users/SergeyZhukovsky/events{/privacy}","received_events_url":"https://api.github.com/users/SergeyZhukovsky/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-08-31T17:53:18Z","updated_at":"2018-08-31T22:55:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ffdf1647ebdbb4acc173efdcf91bbb7180ee75bb","assignee":null,"assignees":[],"requested_reviewers":[{"login":"NejcZdovc","id":9574457,"node_id":"MDQ6VXNlcjk1NzQ0NTc=","avatar_url":"https://avatars1.githubusercontent.com/u/9574457?v=4","gravatar_id":"","url":"https://api.github.com/users/NejcZdovc","html_url":"https://github.com/NejcZdovc","followers_url":"https://api.github.com/users/NejcZdovc/followers","following_url":"https://api.github.com/users/NejcZdovc/following{/other_user}","gists_url":"https://api.github.com/users/NejcZdovc/gists{/gist_id}","starred_url":"https://api.github.com/users/NejcZdovc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NejcZdovc/subscriptions","organizations_url":"https://api.github.com/users/NejcZdovc/orgs","repos_url":"https://api.github.com/users/NejcZdovc/repos","events_url":"https://api.github.com/users/NejcZdovc/events{/privacy}","received_events_url":"https://api.github.com/users/NejcZdovc/received_events","type":"User","site_admin":false},{"login":"gdregalo","id":37560650,"node_id":"MDQ6VXNlcjM3NTYwNjUw","avatar_url":"https://avatars0.githubusercontent.com/u/37560650?v=4","gravatar_id":"","url":"https://api.github.com/users/gdregalo","html_url":"https://github.com/gdregalo","followers_url":"https://api.github.com/users/gdregalo/followers","following_url":"https://api.github.com/users/gdregalo/following{/other_user}","gists_url":"https://api.github.com/users/gdregalo/gists{/gist_id}","starred_url":"https://api.github.com/users/gdregalo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gdregalo/subscriptions","organizations_url":"https://api.github.com/users/gdregalo/orgs","repos_url":"https://api.github.com/users/gdregalo/repos","events_url":"https://api.github.com/users/gdregalo/events{/privacy}","received_events_url":"https://api.github.com/users/gdregalo/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/brave-intl/bat-native-ledger/pulls/64/commits","review_comments_url":"https://api.github.com/repos/brave-intl/bat-native-ledger/pulls/64/comments","review_comment_url":"https://api.github.com/repos/brave-intl/bat-native-ledger/pulls/comments{/number}","comments_url":"https://api.github.com/repos/brave-intl/bat-native-ledger/issues/64/comments","statuses_url":"https://api.github.com/repos/brave-intl/bat-native-ledger/statuses/f08c7b09a2d927fe50860923e523960f702ea492","head":{"label":"brave-intl:yt_twitch","ref":"yt_twitch","sha":"f08c7b09a2d927fe50860923e523960f702ea492","user":{"login":"brave-intl","id":28767864,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI4NzY3ODY0","avatar_url":"https://avatars2.githubusercontent.com/u/28767864?v=4","gravatar_id":"","url":"https://api.github.com/users/brave-intl","html_url":"https://github.com/brave-intl","followers_url":"https://api.github.com/users/brave-intl/followers","following_url":"https://api.github.com/users/brave-intl/following{/other_user}","gists_url":"https://api.github.com/users/brave-intl/gists{/gist_id}","starred_url":"https://api.github.com/users/brave-intl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brave-intl/subscriptions","organizations_url":"https://api.github.com/users/brave-intl/orgs","repos_url":"https://api.github.com/users/brave-intl/repos","events_url":"https://api.github.com/users/brave-intl/events{/privacy}","received_events_url":"https://api.github.com/users/brave-intl/received_events","type":"Organization","site_admin":false},"repo":{"id":130815390,"node_id":"MDEwOlJlcG9zaXRvcnkxMzA4MTUzOTA=","name":"bat-native-ledger","full_name":"brave-intl/bat-native-ledger","owner":{"login":"brave-intl","id":28767864,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI4NzY3ODY0","avatar_url":"https://avatars2.githubusercontent.com/u/28767864?v=4","gravatar_id":"","url":"https://api.github.com/users/brave-intl","html_url":"https://github.com/brave-intl","followers_url":"https://api.github.com/users/brave-intl/followers","following_url":"https://api.github.com/users/brave-intl/following{/other_user}","gists_url":"https://api.github.com/users/brave-intl/gists{/gist_id}","starred_url":"https://api.github.com/users/brave-intl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brave-intl/subscriptions","organizations_url":"https://api.github.com/users/brave-intl/orgs","repos_url":"https://api.github.com/users/brave-intl/repos","events_url":"https://api.github.com/users/brave-intl/events{/privacy}","received_events_url":"https://api.github.com/users/brave-intl/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/brave-intl/bat-native-ledger","description":null,"fork":false,"url":"https://api.github.com/repos/brave-intl/bat-native-ledger","forks_url":"https://api.github.com/repos/brave-intl/bat-native-ledger/forks","keys_url":"https://api.github.com/repos/brave-intl/bat-native-ledger/keys{/key_id}","collaborators_url":"https://api.github.com/repos/brave-intl/bat-native-ledger/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/brave-intl/bat-native-ledger/teams","hooks_url":"https://api.github.com/repos/brave-intl/bat-native-ledger/hooks","issue_events_url":"https://api.github.com/repos/brave-intl/bat-native-ledger/issues/events{/number}","events_url":"https://api.github.com/repos/brave-intl/bat-native-ledger/events","assignees_url":"https://api.github.com/repos/brave-intl/bat-native-ledger/assignees{/user}","branches_url":"https://api.github.com/repos/brave-intl/bat-native-ledger/branches{/branch}","tags_url":"https://api.github.com/repos/brave-intl/bat-native-ledger/tags","blobs_url":"https://api.github.com/repos/brave-intl/bat-native-ledger/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/brave-intl/bat-native-ledger/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/brave-intl/bat-native-ledger/git/refs{/sha}","trees_url":"https://api.github.com/repos/brave-intl/bat-native-ledger/git/trees{/sha}","statuses_url":"https://api.github.com/repos/brave-intl/bat-native-ledger/statuses/{sha}","languages_url":"https://api.github.com/repos/brave-intl/bat-native-ledger/languages","stargazers_url":"https://api.github.com/repos/brave-intl/bat-native-ledger/stargazers","contributors_url":"https://api.github.com/repos/brave-intl/bat-native-ledger/contributors","subscribers_url":"https://api.github.com/repos/brave-intl/bat-native-ledger/subscribers","subscription_url":"https://api.github.com/repos/brave-intl/bat-native-ledger/subscription","commits_url":"https://api.github.com/repos/brave-intl/bat-native-ledger/commits{/sha}","git_commits_url":"https://api.github.com/repos/brave-intl/bat-native-ledger/git/commits{/sha}","comments_url":"https://api.github.com/repos/brave-intl/bat-native-ledger/comments{/number}","issue_comment_url":"https://api.github.com/repos/brave-intl/bat-native-ledger/issues/comments{/number}","contents_url":"https://api.github.com/repos/brave-intl/bat-native-ledger/contents/{+path}","compare_url":"https://api.github.com/repos/brave-intl/bat-native-ledger/compare/{base}...{head}","merges_url":"https://api.github.com/repos/brave-intl/bat-native-ledger/merges","archive_url":"https://api.github.com/repos/brave-intl/bat-native-ledger/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/brave-intl/bat-native-ledger/downloads","issues_url":"https://api.github.com/repos/brave-intl/bat-native-ledger/issues{/number}","pulls_url":"https://api.github.com/repos/brave-intl/bat-native-ledger/pulls{/number}","milestones_url":"https://api.github.com/repos/brave-intl/bat-native-ledger/milestones{/number}","notifications_url":"https://api.github.com/repos/brave-intl/bat-native-ledger/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/brave-intl/bat-native-ledger/labels{/name}","releases_url":"https://api.github.com/repos/brave-intl/bat-native-ledger/releases{/id}","deployments_url":"https://api.github.com/repos/brave-intl/bat-native-ledger/deployments","created_at":"2018-04-24T07:38:23Z","updated_at":"2018-08-31T13:32:53Z","pushed_at":"2018-08-31T17:53:19Z","git_url":"git://github.com/brave-intl/bat-native-ledger.git","ssh_url":"git@github.com:brave-intl/bat-native-ledger.git","clone_url":"https://github.com/brave-intl/bat-native-ledger.git","svn_url":"https://github.com/brave-intl/bat-native-ledger","homepage":null,"size":560,"stargazers_count":1,"watchers_count":1,"language":"C++","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"archived":false,"open_issues_count":11,"license":null,"forks":3,"open_issues":11,"watchers":1,"default_branch":"master"}},"base":{"label":"brave-intl:master","ref":"master","sha":"48737b8843a713e6ae9e8d97256ffda59bb5bc67","user":{"login":"brave-intl","id":28767864,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI4NzY3ODY0","avatar_url":"https://avatars2.githubusercontent.com/u/28767864?v=4","gravatar_id":"","url":"https://api.github.com/users/brave-intl","html_url":"https://github.com/brave-intl","followers_url":"https://api.github.com/users/brave-intl/followers","following_url":"https://api.github.com/users/brave-intl/following{/other_user}","gists_url":"https://api.github.com/users/brave-intl/gists{/gist_id}","starred_url":"https://api.github.com/users/brave-intl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brave-intl/subscriptions","organizations_url":"https://api.github.com/users/brave-intl/orgs","repos_url":"https://api.github.com/users/brave-intl/repos","events_url":"https://api.github.com/users/brave-intl/events{/privacy}","received_events_url":"https://api.github.com/users/brave-intl/received_events","type":"Organization","site_admin":false},"repo":{"id":130815390,"node_id":"MDEwOlJlcG9zaXRvcnkxMzA4MTUzOTA=","name":"bat-native-ledger","full_name":"brave-intl/bat-native-ledger","owner":{"login":"brave-intl","id":28767864,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI4NzY3ODY0","avatar_url":"https://avatars2.githubusercontent.com/u/28767864?v=4","gravatar_id":"","url":"https://api.github.com/users/brave-intl","html_url":"https://github.com/brave-intl","followers_url":"https://api.github.com/users/brave-intl/followers","following_url":"https://api.github.com/users/brave-intl/following{/other_user}","gists_url":"https://api.github.com/users/brave-intl/gists{/gist_id}","starred_url":"https://api.github.com/users/brave-intl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brave-intl/subscriptions","organizations_url":"https://api.github.com/users/brave-intl/orgs","repos_url":"https://api.github.com/users/brave-intl/repos","events_url":"https://api.github.com/users/brave-intl/events{/privacy}","received_events_url":"https://api.github.com/users/brave-intl/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/brave-intl/bat-native-ledger","description":null,"fork":false,"url":"https://api.github.com/repos/brave-intl/bat-native-ledger","forks_url":"https://api.github.com/repos/brave-intl/bat-native-ledger/forks","keys_url":"https://api.github.com/repos/brave-intl/bat-native-ledger/keys{/key_id}","collaborators_url":"https://api.github.com/repos/brave-intl/bat-native-ledger/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/brave-intl/bat-native-ledger/teams","hooks_url":"https://api.github.com/repos/brave-intl/bat-native-ledger/hooks","issue_events_url":"https://api.github.com/repos/brave-intl/bat-native-ledger/issues/events{/number}","events_url":"https://api.github.com/repos/brave-intl/bat-native-ledger/events","assignees_url":"https://api.github.com/repos/brave-intl/bat-native-ledger/assignees{/user}","branches_url":"https://api.github.com/repos/brave-intl/bat-native-ledger/branches{/branch}","tags_url":"https://api.github.com/repos/brave-intl/bat-native-ledger/tags","blobs_url":"https://api.github.com/repos/brave-intl/bat-native-ledger/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/brave-intl/bat-native-ledger/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/brave-intl/bat-native-ledger/git/refs{/sha}","trees_url":"https://api.github.com/repos/brave-intl/bat-native-ledger/git/trees{/sha}","statuses_url":"https://api.github.com/repos/brave-intl/bat-native-ledger/statuses/{sha}","languages_url":"https://api.github.com/repos/brave-intl/bat-native-ledger/languages","stargazers_url":"https://api.github.com/repos/brave-intl/bat-native-ledger/stargazers","contributors_url":"https://api.github.com/repos/brave-intl/bat-native-ledger/contributors","subscribers_url":"https://api.github.com/repos/brave-intl/bat-native-ledger/subscribers","subscription_url":"https://api.github.com/repos/brave-intl/bat-native-ledger/subscription","commits_url":"https://api.github.com/repos/brave-intl/bat-native-ledger/commits{/sha}","git_commits_url":"https://api.github.com/repos/brave-intl/bat-native-ledger/git/commits{/sha}","comments_url":"https://api.github.com/repos/brave-intl/bat-native-ledger/comments{/number}","issue_comment_url":"https://api.github.com/repos/brave-intl/bat-native-ledger/issues/comments{/number}","contents_url":"https://api.github.com/repos/brave-intl/bat-native-ledger/contents/{+path}","compare_url":"https://api.github.com/repos/brave-intl/bat-native-ledger/compare/{base}...{head}","merges_url":"https://api.github.com/repos/brave-intl/bat-native-ledger/merges","archive_url":"https://api.github.com/repos/brave-intl/bat-native-ledger/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/brave-intl/bat-native-ledger/downloads","issues_url":"https://api.github.com/repos/brave-intl/bat-native-ledger/issues{/number}","pulls_url":"https://api.github.com/repos/brave-intl/bat-native-ledger/pulls{/number}","milestones_url":"https://api.github.com/repos/brave-intl/bat-native-ledger/milestones{/number}","notifications_url":"https://api.github.com/repos/brave-intl/bat-native-ledger/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/brave-intl/bat-native-ledger/labels{/name}","releases_url":"https://api.github.com/repos/brave-intl/bat-native-ledger/releases{/id}","deployments_url":"https://api.github.com/repos/brave-intl/bat-native-ledger/deployments","created_at":"2018-04-24T07:38:23Z","updated_at":"2018-08-31T13:32:53Z","pushed_at":"2018-08-31T17:53:19Z","git_url":"git://github.com/brave-intl/bat-native-ledger.git","ssh_url":"git@github.com:brave-intl/bat-native-ledger.git","clone_url":"https://github.com/brave-intl/bat-native-ledger.git","svn_url":"https://github.com/brave-intl/bat-native-ledger","homepage":null,"size":560,"stargazers_count":1,"watchers_count":1,"language":"C++","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"archived":false,"open_issues_count":11,"license":null,"forks":3,"open_issues":11,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/brave-intl/bat-native-ledger/pulls/64"},"html":{"href":"https://github.com/brave-intl/bat-native-ledger/pull/64"},"issue":{"href":"https://api.github.com/repos/brave-intl/bat-native-ledger/issues/64"},"comments":{"href":"https://api.github.com/repos/brave-intl/bat-native-ledger/issues/64/comments"},"review_comments":{"href":"https://api.github.com/repos/brave-intl/bat-native-ledger/pulls/64/comments"},"review_comment":{"href":"https://api.github.com/repos/brave-intl/bat-native-ledger/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/brave-intl/bat-native-ledger/pulls/64/commits"},"statuses":{"href":"https://api.github.com/repos/brave-intl/bat-native-ledger/statuses/f08c7b09a2d927fe50860923e523960f702ea492"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"SergeyZhukovsky"}}