{"action":"created","comment":{"url":"https://api.github.com/repos/breez/breezmobile/pulls/comments/341876708","pull_request_review_id":310844239,"id":341876708,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDM0MTg3NjcwOA==","diff_hunk":"@@ -231,6 +238,68 @@ class AccountBloc {\n     action.resolve(await _breezLib.sendWalletCoins(action.destAddress, Int64(action.feeRate)));     \n   }\n \n+  Future _exportPaymentsAction(ExportPayments action) async {\n+    action.resolve(await _exportPayments());\n+  }\n+\n+  Future _exportPayments() async {\n+    // convert payment list to csv format and save to disk\n+    return await _saveCsvFile(const ListToCsvConverter().convert(_generatePaymentList()));\n+  }\n+\n+  _generatePaymentList(){\n+    List<List<dynamic>> paymentList = new List.generate(_filterPayments(_paymentsController.value.paymentsList).length, (index) {\n+      List paymentItem = new List();\n+      paymentItem.add(DateUtils.formatYearMonthDayHourMinute(DateTime.fromMillisecondsSinceEpoch(\n+          _filterPayments(_paymentsController.value.paymentsList).elementAt(index).creationTimestamp.toInt() * 1000)));","path":"lib/bloc/account/account_bloc.dart","position":70,"original_position":70,"commit_id":"a2468aafc1fbf00934697a8db221ac524026d135","original_commit_id":"a2468aafc1fbf00934697a8db221ac524026d135","user":{"login":"roeierez","id":5394889,"node_id":"MDQ6VXNlcjUzOTQ4ODk=","avatar_url":"https://avatars0.githubusercontent.com/u/5394889?v=4","gravatar_id":"","url":"https://api.github.com/users/roeierez","html_url":"https://github.com/roeierez","followers_url":"https://api.github.com/users/roeierez/followers","following_url":"https://api.github.com/users/roeierez/following{/other_user}","gists_url":"https://api.github.com/users/roeierez/gists{/gist_id}","starred_url":"https://api.github.com/users/roeierez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roeierez/subscriptions","organizations_url":"https://api.github.com/users/roeierez/orgs","repos_url":"https://api.github.com/users/roeierez/repos","events_url":"https://api.github.com/users/roeierez/events{/privacy}","received_events_url":"https://api.github.com/users/roeierez/received_events","type":"User","site_admin":false},"body":"No reason for calling `_filterPayments` for every item in the list...","created_at":"2019-11-03T22:30:24Z","updated_at":"2019-11-03T22:39:13Z","html_url":"https://github.com/breez/breezmobile/pull/203#discussion_r341876708","pull_request_url":"https://api.github.com/repos/breez/breezmobile/pulls/203","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/breez/breezmobile/pulls/comments/341876708"},"html":{"href":"https://github.com/breez/breezmobile/pull/203#discussion_r341876708"},"pull_request":{"href":"https://api.github.com/repos/breez/breezmobile/pulls/203"}}},"pull_request":{"url":"https://api.github.com/repos/breez/breezmobile/pulls/203","id":334779423,"node_id":"MDExOlB1bGxSZXF1ZXN0MzM0Nzc5NDIz","html_url":"https://github.com/breez/breezmobile/pull/203","diff_url":"https://github.com/breez/breezmobile/pull/203.diff","patch_url":"https://github.com/breez/breezmobile/pull/203.patch","issue_url":"https://api.github.com/repos/breez/breezmobile/issues/203","number":203,"state":"open","locked":false,"title":"Export payments list","user":{"login":"erdemyerebasmaz","id":4012752,"node_id":"MDQ6VXNlcjQwMTI3NTI=","avatar_url":"https://avatars2.githubusercontent.com/u/4012752?v=4","gravatar_id":"","url":"https://api.github.com/users/erdemyerebasmaz","html_url":"https://github.com/erdemyerebasmaz","followers_url":"https://api.github.com/users/erdemyerebasmaz/followers","following_url":"https://api.github.com/users/erdemyerebasmaz/following{/other_user}","gists_url":"https://api.github.com/users/erdemyerebasmaz/gists{/gist_id}","starred_url":"https://api.github.com/users/erdemyerebasmaz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erdemyerebasmaz/subscriptions","organizations_url":"https://api.github.com/users/erdemyerebasmaz/orgs","repos_url":"https://api.github.com/users/erdemyerebasmaz/repos","events_url":"https://api.github.com/users/erdemyerebasmaz/events{/privacy}","received_events_url":"https://api.github.com/users/erdemyerebasmaz/received_events","type":"User","site_admin":false},"body":"This PR addresses [BU-196](https://breeztech.atlassian.net/secure/RapidBoard.jspa?rapidView=3&modal=detail&selectedIssue=BU-196)\r\n\r\nA share button is added to payment filter sliver that creates a csv of the current payment list (if that list is not empty) with Date & Time, Title, Description, Node ID, Amount, Preimage, TX Hash headers.\r\n\r\nTODO:\r\nTest on iOS with revoked permissions\r\nApply to POS, this will be on a separate PR after applying theme changes to POS.","created_at":"2019-10-31T09:49:16Z","updated_at":"2019-11-03T22:39:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c49abfe6bf99039aa9523aa3ae0bed54ac13d2d4","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/breez/breezmobile/pulls/203/commits","review_comments_url":"https://api.github.com/repos/breez/breezmobile/pulls/203/comments","review_comment_url":"https://api.github.com/repos/breez/breezmobile/pulls/comments{/number}","comments_url":"https://api.github.com/repos/breez/breezmobile/issues/203/comments","statuses_url":"https://api.github.com/repos/breez/breezmobile/statuses/a2468aafc1fbf00934697a8db221ac524026d135","head":{"label":"breez:export_payments_list","ref":"export_payments_list","sha":"a2468aafc1fbf00934697a8db221ac524026d135","user":{"login":"breez","id":40179345,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQwMTc5MzQ1","avatar_url":"https://avatars0.githubusercontent.com/u/40179345?v=4","gravatar_id":"","url":"https://api.github.com/users/breez","html_url":"https://github.com/breez","followers_url":"https://api.github.com/users/breez/followers","following_url":"https://api.github.com/users/breez/following{/other_user}","gists_url":"https://api.github.com/users/breez/gists{/gist_id}","starred_url":"https://api.github.com/users/breez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/breez/subscriptions","organizations_url":"https://api.github.com/users/breez/orgs","repos_url":"https://api.github.com/users/breez/repos","events_url":"https://api.github.com/users/breez/events{/privacy}","received_events_url":"https://api.github.com/users/breez/received_events","type":"Organization","site_admin":false},"repo":{"id":152418816,"node_id":"MDEwOlJlcG9zaXRvcnkxNTI0MTg4MTY=","name":"breezmobile","full_name":"breez/breezmobile","private":false,"owner":{"login":"breez","id":40179345,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQwMTc5MzQ1","avatar_url":"https://avatars0.githubusercontent.com/u/40179345?v=4","gravatar_id":"","url":"https://api.github.com/users/breez","html_url":"https://github.com/breez","followers_url":"https://api.github.com/users/breez/followers","following_url":"https://api.github.com/users/breez/following{/other_user}","gists_url":"https://api.github.com/users/breez/gists{/gist_id}","starred_url":"https://api.github.com/users/breez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/breez/subscriptions","organizations_url":"https://api.github.com/users/breez/orgs","repos_url":"https://api.github.com/users/breez/repos","events_url":"https://api.github.com/users/breez/events{/privacy}","received_events_url":"https://api.github.com/users/breez/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/breez/breezmobile","description":"Lightning Network mobile client","fork":false,"url":"https://api.github.com/repos/breez/breezmobile","forks_url":"https://api.github.com/repos/breez/breezmobile/forks","keys_url":"https://api.github.com/repos/breez/breezmobile/keys{/key_id}","collaborators_url":"https://api.github.com/repos/breez/breezmobile/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/breez/breezmobile/teams","hooks_url":"https://api.github.com/repos/breez/breezmobile/hooks","issue_events_url":"https://api.github.com/repos/breez/breezmobile/issues/events{/number}","events_url":"https://api.github.com/repos/breez/breezmobile/events","assignees_url":"https://api.github.com/repos/breez/breezmobile/assignees{/user}","branches_url":"https://api.github.com/repos/breez/breezmobile/branches{/branch}","tags_url":"https://api.github.com/repos/breez/breezmobile/tags","blobs_url":"https://api.github.com/repos/breez/breezmobile/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/breez/breezmobile/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/breez/breezmobile/git/refs{/sha}","trees_url":"https://api.github.com/repos/breez/breezmobile/git/trees{/sha}","statuses_url":"https://api.github.com/repos/breez/breezmobile/statuses/{sha}","languages_url":"https://api.github.com/repos/breez/breezmobile/languages","stargazers_url":"https://api.github.com/repos/breez/breezmobile/stargazers","contributors_url":"https://api.github.com/repos/breez/breezmobile/contributors","subscribers_url":"https://api.github.com/repos/breez/breezmobile/subscribers","subscription_url":"https://api.github.com/repos/breez/breezmobile/subscription","commits_url":"https://api.github.com/repos/breez/breezmobile/commits{/sha}","git_commits_url":"https://api.github.com/repos/breez/breezmobile/git/commits{/sha}","comments_url":"https://api.github.com/repos/breez/breezmobile/comments{/number}","issue_comment_url":"https://api.github.com/repos/breez/breezmobile/issues/comments{/number}","contents_url":"https://api.github.com/repos/breez/breezmobile/contents/{+path}","compare_url":"https://api.github.com/repos/breez/breezmobile/compare/{base}...{head}","merges_url":"https://api.github.com/repos/breez/breezmobile/merges","archive_url":"https://api.github.com/repos/breez/breezmobile/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/breez/breezmobile/downloads","issues_url":"https://api.github.com/repos/breez/breezmobile/issues{/number}","pulls_url":"https://api.github.com/repos/breez/breezmobile/pulls{/number}","milestones_url":"https://api.github.com/repos/breez/breezmobile/milestones{/number}","notifications_url":"https://api.github.com/repos/breez/breezmobile/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/breez/breezmobile/labels{/name}","releases_url":"https://api.github.com/repos/breez/breezmobile/releases{/id}","deployments_url":"https://api.github.com/repos/breez/breezmobile/deployments","created_at":"2018-10-10T12:19:28Z","updated_at":"2019-10-29T09:07:25Z","pushed_at":"2019-11-03T19:57:56Z","git_url":"git://github.com/breez/breezmobile.git","ssh_url":"git@github.com:breez/breezmobile.git","clone_url":"https://github.com/breez/breezmobile.git","svn_url":"https://github.com/breez/breezmobile","homepage":"https://breez.technology","size":9665,"stargazers_count":111,"watchers_count":111,"language":"Dart","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":13,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":31,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0","node_id":"MDc6TGljZW5zZTk="},"forks":13,"open_issues":31,"watchers":111,"default_branch":"master"}},"base":{"label":"breez:master","ref":"master","sha":"583193eea9df48d909e79d7125f895286b6dfd46","user":{"login":"breez","id":40179345,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQwMTc5MzQ1","avatar_url":"https://avatars0.githubusercontent.com/u/40179345?v=4","gravatar_id":"","url":"https://api.github.com/users/breez","html_url":"https://github.com/breez","followers_url":"https://api.github.com/users/breez/followers","following_url":"https://api.github.com/users/breez/following{/other_user}","gists_url":"https://api.github.com/users/breez/gists{/gist_id}","starred_url":"https://api.github.com/users/breez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/breez/subscriptions","organizations_url":"https://api.github.com/users/breez/orgs","repos_url":"https://api.github.com/users/breez/repos","events_url":"https://api.github.com/users/breez/events{/privacy}","received_events_url":"https://api.github.com/users/breez/received_events","type":"Organization","site_admin":false},"repo":{"id":152418816,"node_id":"MDEwOlJlcG9zaXRvcnkxNTI0MTg4MTY=","name":"breezmobile","full_name":"breez/breezmobile","private":false,"owner":{"login":"breez","id":40179345,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQwMTc5MzQ1","avatar_url":"https://avatars0.githubusercontent.com/u/40179345?v=4","gravatar_id":"","url":"https://api.github.com/users/breez","html_url":"https://github.com/breez","followers_url":"https://api.github.com/users/breez/followers","following_url":"https://api.github.com/users/breez/following{/other_user}","gists_url":"https://api.github.com/users/breez/gists{/gist_id}","starred_url":"https://api.github.com/users/breez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/breez/subscriptions","organizations_url":"https://api.github.com/users/breez/orgs","repos_url":"https://api.github.com/users/breez/repos","events_url":"https://api.github.com/users/breez/events{/privacy}","received_events_url":"https://api.github.com/users/breez/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/breez/breezmobile","description":"Lightning Network mobile client","fork":false,"url":"https://api.github.com/repos/breez/breezmobile","forks_url":"https://api.github.com/repos/breez/breezmobile/forks","keys_url":"https://api.github.com/repos/breez/breezmobile/keys{/key_id}","collaborators_url":"https://api.github.com/repos/breez/breezmobile/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/breez/breezmobile/teams","hooks_url":"https://api.github.com/repos/breez/breezmobile/hooks","issue_events_url":"https://api.github.com/repos/breez/breezmobile/issues/events{/number}","events_url":"https://api.github.com/repos/breez/breezmobile/events","assignees_url":"https://api.github.com/repos/breez/breezmobile/assignees{/user}","branches_url":"https://api.github.com/repos/breez/breezmobile/branches{/branch}","tags_url":"https://api.github.com/repos/breez/breezmobile/tags","blobs_url":"https://api.github.com/repos/breez/breezmobile/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/breez/breezmobile/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/breez/breezmobile/git/refs{/sha}","trees_url":"https://api.github.com/repos/breez/breezmobile/git/trees{/sha}","statuses_url":"https://api.github.com/repos/breez/breezmobile/statuses/{sha}","languages_url":"https://api.github.com/repos/breez/breezmobile/languages","stargazers_url":"https://api.github.com/repos/breez/breezmobile/stargazers","contributors_url":"https://api.github.com/repos/breez/breezmobile/contributors","subscribers_url":"https://api.github.com/repos/breez/breezmobile/subscribers","subscription_url":"https://api.github.com/repos/breez/breezmobile/subscription","commits_url":"https://api.github.com/repos/breez/breezmobile/commits{/sha}","git_commits_url":"https://api.github.com/repos/breez/breezmobile/git/commits{/sha}","comments_url":"https://api.github.com/repos/breez/breezmobile/comments{/number}","issue_comment_url":"https://api.github.com/repos/breez/breezmobile/issues/comments{/number}","contents_url":"https://api.github.com/repos/breez/breezmobile/contents/{+path}","compare_url":"https://api.github.com/repos/breez/breezmobile/compare/{base}...{head}","merges_url":"https://api.github.com/repos/breez/breezmobile/merges","archive_url":"https://api.github.com/repos/breez/breezmobile/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/breez/breezmobile/downloads","issues_url":"https://api.github.com/repos/breez/breezmobile/issues{/number}","pulls_url":"https://api.github.com/repos/breez/breezmobile/pulls{/number}","milestones_url":"https://api.github.com/repos/breez/breezmobile/milestones{/number}","notifications_url":"https://api.github.com/repos/breez/breezmobile/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/breez/breezmobile/labels{/name}","releases_url":"https://api.github.com/repos/breez/breezmobile/releases{/id}","deployments_url":"https://api.github.com/repos/breez/breezmobile/deployments","created_at":"2018-10-10T12:19:28Z","updated_at":"2019-10-29T09:07:25Z","pushed_at":"2019-11-03T19:57:56Z","git_url":"git://github.com/breez/breezmobile.git","ssh_url":"git@github.com:breez/breezmobile.git","clone_url":"https://github.com/breez/breezmobile.git","svn_url":"https://github.com/breez/breezmobile","homepage":"https://breez.technology","size":9665,"stargazers_count":111,"watchers_count":111,"language":"Dart","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":13,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":31,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0","node_id":"MDc6TGljZW5zZTk="},"forks":13,"open_issues":31,"watchers":111,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/breez/breezmobile/pulls/203"},"html":{"href":"https://github.com/breez/breezmobile/pull/203"},"issue":{"href":"https://api.github.com/repos/breez/breezmobile/issues/203"},"comments":{"href":"https://api.github.com/repos/breez/breezmobile/issues/203/comments"},"review_comments":{"href":"https://api.github.com/repos/breez/breezmobile/pulls/203/comments"},"review_comment":{"href":"https://api.github.com/repos/breez/breezmobile/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/breez/breezmobile/pulls/203/commits"},"statuses":{"href":"https://api.github.com/repos/breez/breezmobile/statuses/a2468aafc1fbf00934697a8db221ac524026d135"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"roeierez"}}