{"action":"created","comment":{"url":"https://api.github.com/repos/MakingSense/doppler-mobile/pulls/comments/185479317","pull_request_review_id":116875229,"id":185479317,"diff_hunk":"@@ -20,20 +19,30 @@ public CampaignService(ILocalSettings localSettings, IDopplerAPI dopplerApi)\n         }\n \n         /// <inheritdoc />\n-        public async Task<Result<Page<Campaign>, string>> FetchCampaignsAsync(int pageNumber)\n+        public async Task<Result<Page<Campaign>, string>> FetchCampaignsAsync(int pageNumber, string campaignType)\n         {\n             var accountName = GetAccountNameLoggedIn();\n             if (string.IsNullOrEmpty(accountName))\n                 return new Result<Page<Campaign>, string>(errorValue:CoreResources.NotUserLoggedIn);\n \n-            var fetchCampaigns = await _dopplerApi.GetCampaignsAsync(accountName, pageNumber);\n+            var fetchCampaigns = await _dopplerApi.GetCampaignsAsync(accountName, pageNumber, campaignType);\n             if (!fetchCampaigns.IsSuccessResult)\n                 return new Result<Page<Campaign>, string>(errorValue: fetchCampaigns.ErrorValue);\n \n             var newPage = Mapper.Mapper.ToPageCampaign(fetchCampaigns.SuccessValue);\n             return new Result<Page<Campaign>, string>(successValue: newPage);\n         }\n \n+        public Result<string, string> GetCampaignPreview(Campaign campaign)\n+        {\n+            var linkPreview = campaign.Links.FirstOrDefault(l => l.Relation.Contains(\"get-campaign-preview\"));","path":"Doppler.Mobile/Doppler.Mobile/Doppler.Mobile.Core/Services/CampaignService.cs","position":29,"original_position":29,"commit_id":"1081e87cd48a7cff90359b6b01acb5756a6bd8aa","original_commit_id":"1081e87cd48a7cff90359b6b01acb5756a6bd8aa","user":{"login":"lpelizzaMS","id":20521804,"avatar_url":"https://avatars0.githubusercontent.com/u/20521804?v=4","gravatar_id":"","url":"https://api.github.com/users/lpelizzaMS","html_url":"https://github.com/lpelizzaMS","followers_url":"https://api.github.com/users/lpelizzaMS/followers","following_url":"https://api.github.com/users/lpelizzaMS/following{/other_user}","gists_url":"https://api.github.com/users/lpelizzaMS/gists{/gist_id}","starred_url":"https://api.github.com/users/lpelizzaMS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lpelizzaMS/subscriptions","organizations_url":"https://api.github.com/users/lpelizzaMS/orgs","repos_url":"https://api.github.com/users/lpelizzaMS/repos","events_url":"https://api.github.com/users/lpelizzaMS/events{/privacy}","received_events_url":"https://api.github.com/users/lpelizzaMS/received_events","type":"User","site_admin":false},"body":"You are right but the API doesn't have any endpoint to return the HTML, the only thing that I have found It was the image. \r\nIf you know about any endpoint that could be useful in this case, I don't have any problem to change the code and use HTML.","created_at":"2018-05-02T12:32:34Z","updated_at":"2018-05-02T12:32:35Z","html_url":"https://github.com/MakingSense/doppler-mobile/pull/8#discussion_r185479317","pull_request_url":"https://api.github.com/repos/MakingSense/doppler-mobile/pulls/8","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/MakingSense/doppler-mobile/pulls/comments/185479317"},"html":{"href":"https://github.com/MakingSense/doppler-mobile/pull/8#discussion_r185479317"},"pull_request":{"href":"https://api.github.com/repos/MakingSense/doppler-mobile/pulls/8"}},"in_reply_to_id":184780756},"pull_request":{"url":"https://api.github.com/repos/MakingSense/doppler-mobile/pulls/8","id":184694821,"html_url":"https://github.com/MakingSense/doppler-mobile/pull/8","diff_url":"https://github.com/MakingSense/doppler-mobile/pull/8.diff","patch_url":"https://github.com/MakingSense/doppler-mobile/pull/8.patch","issue_url":"https://api.github.com/repos/MakingSense/doppler-mobile/issues/8","number":8,"state":"open","locked":false,"title":"Add preview logic","user":{"login":"lpelizzaMS","id":20521804,"avatar_url":"https://avatars0.githubusercontent.com/u/20521804?v=4","gravatar_id":"","url":"https://api.github.com/users/lpelizzaMS","html_url":"https://github.com/lpelizzaMS","followers_url":"https://api.github.com/users/lpelizzaMS/followers","following_url":"https://api.github.com/users/lpelizzaMS/following{/other_user}","gists_url":"https://api.github.com/users/lpelizzaMS/gists{/gist_id}","starred_url":"https://api.github.com/users/lpelizzaMS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lpelizzaMS/subscriptions","organizations_url":"https://api.github.com/users/lpelizzaMS/orgs","repos_url":"https://api.github.com/users/lpelizzaMS/repos","events_url":"https://api.github.com/users/lpelizzaMS/events{/privacy}","received_events_url":"https://api.github.com/users/lpelizzaMS/received_events","type":"User","site_admin":false},"body":"### Backlog\r\n\r\nAdd preview logic\r\n\r\n### Changes\r\nCreated campaign preview view model and view.\r\nChanged campaign model.\r\nCreated Link model.\r\nAdded new test.\r\nAdded a new method in campaign services.\r\n\r\n### Screenshot\r\n![dopplercampaignpreview](https://user-images.githubusercontent.com/20521804/39378743-a4abcacc-4a2f-11e8-9565-d683f9299689.gif)\r\n","created_at":"2018-04-27T18:28:41Z","updated_at":"2018-05-02T12:32:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"170d1c30c05bdf1a2ac22f5249e0f4b68b61cfa6","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/MakingSense/doppler-mobile/pulls/8/commits","review_comments_url":"https://api.github.com/repos/MakingSense/doppler-mobile/pulls/8/comments","review_comment_url":"https://api.github.com/repos/MakingSense/doppler-mobile/pulls/comments{/number}","comments_url":"https://api.github.com/repos/MakingSense/doppler-mobile/issues/8/comments","statuses_url":"https://api.github.com/repos/MakingSense/doppler-mobile/statuses/1081e87cd48a7cff90359b6b01acb5756a6bd8aa","head":{"label":"lpelizzaMS:add-preview-logi","ref":"add-preview-logi","sha":"1081e87cd48a7cff90359b6b01acb5756a6bd8aa","user":{"login":"lpelizzaMS","id":20521804,"avatar_url":"https://avatars0.githubusercontent.com/u/20521804?v=4","gravatar_id":"","url":"https://api.github.com/users/lpelizzaMS","html_url":"https://github.com/lpelizzaMS","followers_url":"https://api.github.com/users/lpelizzaMS/followers","following_url":"https://api.github.com/users/lpelizzaMS/following{/other_user}","gists_url":"https://api.github.com/users/lpelizzaMS/gists{/gist_id}","starred_url":"https://api.github.com/users/lpelizzaMS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lpelizzaMS/subscriptions","organizations_url":"https://api.github.com/users/lpelizzaMS/orgs","repos_url":"https://api.github.com/users/lpelizzaMS/repos","events_url":"https://api.github.com/users/lpelizzaMS/events{/privacy}","received_events_url":"https://api.github.com/users/lpelizzaMS/received_events","type":"User","site_admin":false},"repo":{"id":127001010,"name":"doppler-mobile","full_name":"lpelizzaMS/doppler-mobile","owner":{"login":"lpelizzaMS","id":20521804,"avatar_url":"https://avatars0.githubusercontent.com/u/20521804?v=4","gravatar_id":"","url":"https://api.github.com/users/lpelizzaMS","html_url":"https://github.com/lpelizzaMS","followers_url":"https://api.github.com/users/lpelizzaMS/followers","following_url":"https://api.github.com/users/lpelizzaMS/following{/other_user}","gists_url":"https://api.github.com/users/lpelizzaMS/gists{/gist_id}","starred_url":"https://api.github.com/users/lpelizzaMS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lpelizzaMS/subscriptions","organizations_url":"https://api.github.com/users/lpelizzaMS/orgs","repos_url":"https://api.github.com/users/lpelizzaMS/repos","events_url":"https://api.github.com/users/lpelizzaMS/events{/privacy}","received_events_url":"https://api.github.com/users/lpelizzaMS/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lpelizzaMS/doppler-mobile","description":null,"fork":true,"url":"https://api.github.com/repos/lpelizzaMS/doppler-mobile","forks_url":"https://api.github.com/repos/lpelizzaMS/doppler-mobile/forks","keys_url":"https://api.github.com/repos/lpelizzaMS/doppler-mobile/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lpelizzaMS/doppler-mobile/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lpelizzaMS/doppler-mobile/teams","hooks_url":"https://api.github.com/repos/lpelizzaMS/doppler-mobile/hooks","issue_events_url":"https://api.github.com/repos/lpelizzaMS/doppler-mobile/issues/events{/number}","events_url":"https://api.github.com/repos/lpelizzaMS/doppler-mobile/events","assignees_url":"https://api.github.com/repos/lpelizzaMS/doppler-mobile/assignees{/user}","branches_url":"https://api.github.com/repos/lpelizzaMS/doppler-mobile/branches{/branch}","tags_url":"https://api.github.com/repos/lpelizzaMS/doppler-mobile/tags","blobs_url":"https://api.github.com/repos/lpelizzaMS/doppler-mobile/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lpelizzaMS/doppler-mobile/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lpelizzaMS/doppler-mobile/git/refs{/sha}","trees_url":"https://api.github.com/repos/lpelizzaMS/doppler-mobile/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lpelizzaMS/doppler-mobile/statuses/{sha}","languages_url":"https://api.github.com/repos/lpelizzaMS/doppler-mobile/languages","stargazers_url":"https://api.github.com/repos/lpelizzaMS/doppler-mobile/stargazers","contributors_url":"https://api.github.com/repos/lpelizzaMS/doppler-mobile/contributors","subscribers_url":"https://api.github.com/repos/lpelizzaMS/doppler-mobile/subscribers","subscription_url":"https://api.github.com/repos/lpelizzaMS/doppler-mobile/subscription","commits_url":"https://api.github.com/repos/lpelizzaMS/doppler-mobile/commits{/sha}","git_commits_url":"https://api.github.com/repos/lpelizzaMS/doppler-mobile/git/commits{/sha}","comments_url":"https://api.github.com/repos/lpelizzaMS/doppler-mobile/comments{/number}","issue_comment_url":"https://api.github.com/repos/lpelizzaMS/doppler-mobile/issues/comments{/number}","contents_url":"https://api.github.com/repos/lpelizzaMS/doppler-mobile/contents/{+path}","compare_url":"https://api.github.com/repos/lpelizzaMS/doppler-mobile/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lpelizzaMS/doppler-mobile/merges","archive_url":"https://api.github.com/repos/lpelizzaMS/doppler-mobile/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lpelizzaMS/doppler-mobile/downloads","issues_url":"https://api.github.com/repos/lpelizzaMS/doppler-mobile/issues{/number}","pulls_url":"https://api.github.com/repos/lpelizzaMS/doppler-mobile/pulls{/number}","milestones_url":"https://api.github.com/repos/lpelizzaMS/doppler-mobile/milestones{/number}","notifications_url":"https://api.github.com/repos/lpelizzaMS/doppler-mobile/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lpelizzaMS/doppler-mobile/labels{/name}","releases_url":"https://api.github.com/repos/lpelizzaMS/doppler-mobile/releases{/id}","deployments_url":"https://api.github.com/repos/lpelizzaMS/doppler-mobile/deployments","created_at":"2018-03-27T14:40:26Z","updated_at":"2018-03-27T14:40:28Z","pushed_at":"2018-04-27T18:24:38Z","git_url":"git://github.com/lpelizzaMS/doppler-mobile.git","ssh_url":"git@github.com:lpelizzaMS/doppler-mobile.git","clone_url":"https://github.com/lpelizzaMS/doppler-mobile.git","svn_url":"https://github.com/lpelizzaMS/doppler-mobile","homepage":null,"size":776,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"MakingSense:master","ref":"master","sha":"497b6a31ffbd053b60a510feddd82d3f90c78c9e","user":{"login":"MakingSense","id":2685575,"avatar_url":"https://avatars2.githubusercontent.com/u/2685575?v=4","gravatar_id":"","url":"https://api.github.com/users/MakingSense","html_url":"https://github.com/MakingSense","followers_url":"https://api.github.com/users/MakingSense/followers","following_url":"https://api.github.com/users/MakingSense/following{/other_user}","gists_url":"https://api.github.com/users/MakingSense/gists{/gist_id}","starred_url":"https://api.github.com/users/MakingSense/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MakingSense/subscriptions","organizations_url":"https://api.github.com/users/MakingSense/orgs","repos_url":"https://api.github.com/users/MakingSense/repos","events_url":"https://api.github.com/users/MakingSense/events{/privacy}","received_events_url":"https://api.github.com/users/MakingSense/received_events","type":"Organization","site_admin":false},"repo":{"id":126980633,"name":"doppler-mobile","full_name":"MakingSense/doppler-mobile","owner":{"login":"MakingSense","id":2685575,"avatar_url":"https://avatars2.githubusercontent.com/u/2685575?v=4","gravatar_id":"","url":"https://api.github.com/users/MakingSense","html_url":"https://github.com/MakingSense","followers_url":"https://api.github.com/users/MakingSense/followers","following_url":"https://api.github.com/users/MakingSense/following{/other_user}","gists_url":"https://api.github.com/users/MakingSense/gists{/gist_id}","starred_url":"https://api.github.com/users/MakingSense/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MakingSense/subscriptions","organizations_url":"https://api.github.com/users/MakingSense/orgs","repos_url":"https://api.github.com/users/MakingSense/repos","events_url":"https://api.github.com/users/MakingSense/events{/privacy}","received_events_url":"https://api.github.com/users/MakingSense/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/MakingSense/doppler-mobile","description":null,"fork":false,"url":"https://api.github.com/repos/MakingSense/doppler-mobile","forks_url":"https://api.github.com/repos/MakingSense/doppler-mobile/forks","keys_url":"https://api.github.com/repos/MakingSense/doppler-mobile/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MakingSense/doppler-mobile/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MakingSense/doppler-mobile/teams","hooks_url":"https://api.github.com/repos/MakingSense/doppler-mobile/hooks","issue_events_url":"https://api.github.com/repos/MakingSense/doppler-mobile/issues/events{/number}","events_url":"https://api.github.com/repos/MakingSense/doppler-mobile/events","assignees_url":"https://api.github.com/repos/MakingSense/doppler-mobile/assignees{/user}","branches_url":"https://api.github.com/repos/MakingSense/doppler-mobile/branches{/branch}","tags_url":"https://api.github.com/repos/MakingSense/doppler-mobile/tags","blobs_url":"https://api.github.com/repos/MakingSense/doppler-mobile/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MakingSense/doppler-mobile/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MakingSense/doppler-mobile/git/refs{/sha}","trees_url":"https://api.github.com/repos/MakingSense/doppler-mobile/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MakingSense/doppler-mobile/statuses/{sha}","languages_url":"https://api.github.com/repos/MakingSense/doppler-mobile/languages","stargazers_url":"https://api.github.com/repos/MakingSense/doppler-mobile/stargazers","contributors_url":"https://api.github.com/repos/MakingSense/doppler-mobile/contributors","subscribers_url":"https://api.github.com/repos/MakingSense/doppler-mobile/subscribers","subscription_url":"https://api.github.com/repos/MakingSense/doppler-mobile/subscription","commits_url":"https://api.github.com/repos/MakingSense/doppler-mobile/commits{/sha}","git_commits_url":"https://api.github.com/repos/MakingSense/doppler-mobile/git/commits{/sha}","comments_url":"https://api.github.com/repos/MakingSense/doppler-mobile/comments{/number}","issue_comment_url":"https://api.github.com/repos/MakingSense/doppler-mobile/issues/comments{/number}","contents_url":"https://api.github.com/repos/MakingSense/doppler-mobile/contents/{+path}","compare_url":"https://api.github.com/repos/MakingSense/doppler-mobile/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MakingSense/doppler-mobile/merges","archive_url":"https://api.github.com/repos/MakingSense/doppler-mobile/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MakingSense/doppler-mobile/downloads","issues_url":"https://api.github.com/repos/MakingSense/doppler-mobile/issues{/number}","pulls_url":"https://api.github.com/repos/MakingSense/doppler-mobile/pulls{/number}","milestones_url":"https://api.github.com/repos/MakingSense/doppler-mobile/milestones{/number}","notifications_url":"https://api.github.com/repos/MakingSense/doppler-mobile/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MakingSense/doppler-mobile/labels{/name}","releases_url":"https://api.github.com/repos/MakingSense/doppler-mobile/releases{/id}","deployments_url":"https://api.github.com/repos/MakingSense/doppler-mobile/deployments","created_at":"2018-03-27T12:08:53Z","updated_at":"2018-04-27T18:05:24Z","pushed_at":"2018-04-27T18:28:42Z","git_url":"git://github.com/MakingSense/doppler-mobile.git","ssh_url":"git@github.com:MakingSense/doppler-mobile.git","clone_url":"https://github.com/MakingSense/doppler-mobile.git","svn_url":"https://github.com/MakingSense/doppler-mobile","homepage":null,"size":763,"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":1,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":1,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/MakingSense/doppler-mobile/pulls/8"},"html":{"href":"https://github.com/MakingSense/doppler-mobile/pull/8"},"issue":{"href":"https://api.github.com/repos/MakingSense/doppler-mobile/issues/8"},"comments":{"href":"https://api.github.com/repos/MakingSense/doppler-mobile/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/MakingSense/doppler-mobile/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/MakingSense/doppler-mobile/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/MakingSense/doppler-mobile/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/MakingSense/doppler-mobile/statuses/1081e87cd48a7cff90359b6b01acb5756a6bd8aa"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"lpelizzaMS"}}