{"action":"created","comment":{"url":"https://api.github.com/repos/SwiftKitz/Appz/pulls/comments/46754495","id":46754495,"diff_hunk":"@@ -0,0 +1,49 @@\n+//\n+//  Mail.swift\n+//  Appz\n+//\n+//  Created by Suraj Shirvankar on 12/5/15.\n+//  Copyright © 2015 kitz. All rights reserved.\n+//\n+\n+import Foundation\n+\n+\n+public extension AvailableApplications {\n+    \n+    public struct Mail: ExternalApplication {\n+        \n+        public let scheme = \"mailto:\"\n+        public let fallbackURL: String? = \"\"\n+    }\n+    \n+    public func mail(action: Mail.Action) -> Bool {\n+        return appCaller.launch(Mail(), action: action)\n+    }\n+}\n+\n+// MARK: - Actions\n+\n+public extension AvailableApplications.Mail {\n+    \n+    public enum Action {\n+        case Email(email: String, subject: String, body: String)","path":"Appz/Appz/Apps/Mail.swift","position":30,"original_position":30,"commit_id":"1380e22a001ee723331b5086748f2938abc5a1b4","original_commit_id":"1380e22a001ee723331b5086748f2938abc5a1b4","user":{"login":"h0lyalg0rithm","id":676507,"avatar_url":"https://avatars.githubusercontent.com/u/676507?v=3","gravatar_id":"","url":"https://api.github.com/users/h0lyalg0rithm","html_url":"https://github.com/h0lyalg0rithm","followers_url":"https://api.github.com/users/h0lyalg0rithm/followers","following_url":"https://api.github.com/users/h0lyalg0rithm/following{/other_user}","gists_url":"https://api.github.com/users/h0lyalg0rithm/gists{/gist_id}","starred_url":"https://api.github.com/users/h0lyalg0rithm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/h0lyalg0rithm/subscriptions","organizations_url":"https://api.github.com/users/h0lyalg0rithm/orgs","repos_url":"https://api.github.com/users/h0lyalg0rithm/repos","events_url":"https://api.github.com/users/h0lyalg0rithm/events{/privacy}","received_events_url":"https://api.github.com/users/h0lyalg0rithm/received_events","type":"User","site_admin":false},"body":"I thought about optionals but then the api for the end user would be long with unnecessary params.","created_at":"2015-12-05T05:46:03Z","updated_at":"2015-12-05T05:46:03Z","html_url":"https://github.com/SwiftKitz/Appz/pull/6#discussion_r46754495","pull_request_url":"https://api.github.com/repos/SwiftKitz/Appz/pulls/6","_links":{"self":{"href":"https://api.github.com/repos/SwiftKitz/Appz/pulls/comments/46754495"},"html":{"href":"https://github.com/SwiftKitz/Appz/pull/6#discussion_r46754495"},"pull_request":{"href":"https://api.github.com/repos/SwiftKitz/Appz/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/SwiftKitz/Appz/pulls/6","id":52723429,"html_url":"https://github.com/SwiftKitz/Appz/pull/6","diff_url":"https://github.com/SwiftKitz/Appz/pull/6.diff","patch_url":"https://github.com/SwiftKitz/Appz/pull/6.patch","issue_url":"https://api.github.com/repos/SwiftKitz/Appz/issues/6","number":6,"state":"open","locked":false,"title":"Added mail and messages","user":{"login":"h0lyalg0rithm","id":676507,"avatar_url":"https://avatars.githubusercontent.com/u/676507?v=3","gravatar_id":"","url":"https://api.github.com/users/h0lyalg0rithm","html_url":"https://github.com/h0lyalg0rithm","followers_url":"https://api.github.com/users/h0lyalg0rithm/followers","following_url":"https://api.github.com/users/h0lyalg0rithm/following{/other_user}","gists_url":"https://api.github.com/users/h0lyalg0rithm/gists{/gist_id}","starred_url":"https://api.github.com/users/h0lyalg0rithm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/h0lyalg0rithm/subscriptions","organizations_url":"https://api.github.com/users/h0lyalg0rithm/orgs","repos_url":"https://api.github.com/users/h0lyalg0rithm/repos","events_url":"https://api.github.com/users/h0lyalg0rithm/events{/privacy}","received_events_url":"https://api.github.com/users/h0lyalg0rithm/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-12-04T21:25:22Z","updated_at":"2015-12-05T05:46:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"860e242dda83cbcbc6679115df0a629f5eb9c7ba","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/SwiftKitz/Appz/pulls/6/commits","review_comments_url":"https://api.github.com/repos/SwiftKitz/Appz/pulls/6/comments","review_comment_url":"https://api.github.com/repos/SwiftKitz/Appz/pulls/comments{/number}","comments_url":"https://api.github.com/repos/SwiftKitz/Appz/issues/6/comments","statuses_url":"https://api.github.com/repos/SwiftKitz/Appz/statuses/1380e22a001ee723331b5086748f2938abc5a1b4","head":{"label":"h0lyalg0rithm:master","ref":"master","sha":"1380e22a001ee723331b5086748f2938abc5a1b4","user":{"login":"h0lyalg0rithm","id":676507,"avatar_url":"https://avatars.githubusercontent.com/u/676507?v=3","gravatar_id":"","url":"https://api.github.com/users/h0lyalg0rithm","html_url":"https://github.com/h0lyalg0rithm","followers_url":"https://api.github.com/users/h0lyalg0rithm/followers","following_url":"https://api.github.com/users/h0lyalg0rithm/following{/other_user}","gists_url":"https://api.github.com/users/h0lyalg0rithm/gists{/gist_id}","starred_url":"https://api.github.com/users/h0lyalg0rithm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/h0lyalg0rithm/subscriptions","organizations_url":"https://api.github.com/users/h0lyalg0rithm/orgs","repos_url":"https://api.github.com/users/h0lyalg0rithm/repos","events_url":"https://api.github.com/users/h0lyalg0rithm/events{/privacy}","received_events_url":"https://api.github.com/users/h0lyalg0rithm/received_events","type":"User","site_admin":false},"repo":{"id":47429419,"name":"Appz","full_name":"h0lyalg0rithm/Appz","owner":{"login":"h0lyalg0rithm","id":676507,"avatar_url":"https://avatars.githubusercontent.com/u/676507?v=3","gravatar_id":"","url":"https://api.github.com/users/h0lyalg0rithm","html_url":"https://github.com/h0lyalg0rithm","followers_url":"https://api.github.com/users/h0lyalg0rithm/followers","following_url":"https://api.github.com/users/h0lyalg0rithm/following{/other_user}","gists_url":"https://api.github.com/users/h0lyalg0rithm/gists{/gist_id}","starred_url":"https://api.github.com/users/h0lyalg0rithm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/h0lyalg0rithm/subscriptions","organizations_url":"https://api.github.com/users/h0lyalg0rithm/orgs","repos_url":"https://api.github.com/users/h0lyalg0rithm/repos","events_url":"https://api.github.com/users/h0lyalg0rithm/events{/privacy}","received_events_url":"https://api.github.com/users/h0lyalg0rithm/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/h0lyalg0rithm/Appz","description":"Launch external apps, and deeplink, with ease!","fork":true,"url":"https://api.github.com/repos/h0lyalg0rithm/Appz","forks_url":"https://api.github.com/repos/h0lyalg0rithm/Appz/forks","keys_url":"https://api.github.com/repos/h0lyalg0rithm/Appz/keys{/key_id}","collaborators_url":"https://api.github.com/repos/h0lyalg0rithm/Appz/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/h0lyalg0rithm/Appz/teams","hooks_url":"https://api.github.com/repos/h0lyalg0rithm/Appz/hooks","issue_events_url":"https://api.github.com/repos/h0lyalg0rithm/Appz/issues/events{/number}","events_url":"https://api.github.com/repos/h0lyalg0rithm/Appz/events","assignees_url":"https://api.github.com/repos/h0lyalg0rithm/Appz/assignees{/user}","branches_url":"https://api.github.com/repos/h0lyalg0rithm/Appz/branches{/branch}","tags_url":"https://api.github.com/repos/h0lyalg0rithm/Appz/tags","blobs_url":"https://api.github.com/repos/h0lyalg0rithm/Appz/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/h0lyalg0rithm/Appz/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/h0lyalg0rithm/Appz/git/refs{/sha}","trees_url":"https://api.github.com/repos/h0lyalg0rithm/Appz/git/trees{/sha}","statuses_url":"https://api.github.com/repos/h0lyalg0rithm/Appz/statuses/{sha}","languages_url":"https://api.github.com/repos/h0lyalg0rithm/Appz/languages","stargazers_url":"https://api.github.com/repos/h0lyalg0rithm/Appz/stargazers","contributors_url":"https://api.github.com/repos/h0lyalg0rithm/Appz/contributors","subscribers_url":"https://api.github.com/repos/h0lyalg0rithm/Appz/subscribers","subscription_url":"https://api.github.com/repos/h0lyalg0rithm/Appz/subscription","commits_url":"https://api.github.com/repos/h0lyalg0rithm/Appz/commits{/sha}","git_commits_url":"https://api.github.com/repos/h0lyalg0rithm/Appz/git/commits{/sha}","comments_url":"https://api.github.com/repos/h0lyalg0rithm/Appz/comments{/number}","issue_comment_url":"https://api.github.com/repos/h0lyalg0rithm/Appz/issues/comments{/number}","contents_url":"https://api.github.com/repos/h0lyalg0rithm/Appz/contents/{+path}","compare_url":"https://api.github.com/repos/h0lyalg0rithm/Appz/compare/{base}...{head}","merges_url":"https://api.github.com/repos/h0lyalg0rithm/Appz/merges","archive_url":"https://api.github.com/repos/h0lyalg0rithm/Appz/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/h0lyalg0rithm/Appz/downloads","issues_url":"https://api.github.com/repos/h0lyalg0rithm/Appz/issues{/number}","pulls_url":"https://api.github.com/repos/h0lyalg0rithm/Appz/pulls{/number}","milestones_url":"https://api.github.com/repos/h0lyalg0rithm/Appz/milestones{/number}","notifications_url":"https://api.github.com/repos/h0lyalg0rithm/Appz/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/h0lyalg0rithm/Appz/labels{/name}","releases_url":"https://api.github.com/repos/h0lyalg0rithm/Appz/releases{/id}","created_at":"2015-12-04T21:22:07Z","updated_at":"2015-12-04T21:22:08Z","pushed_at":"2015-12-04T21:24:47Z","git_url":"git://github.com/h0lyalg0rithm/Appz.git","ssh_url":"git@github.com:h0lyalg0rithm/Appz.git","clone_url":"https://github.com/h0lyalg0rithm/Appz.git","svn_url":"https://github.com/h0lyalg0rithm/Appz","homepage":null,"size":28,"stargazers_count":0,"watchers_count":0,"language":"Swift","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"SwiftKitz:master","ref":"master","sha":"6646b4521ffd81afb799be2e00d4f2fc6ed69157","user":{"login":"SwiftKitz","id":15711207,"avatar_url":"https://avatars.githubusercontent.com/u/15711207?v=3","gravatar_id":"","url":"https://api.github.com/users/SwiftKitz","html_url":"https://github.com/SwiftKitz","followers_url":"https://api.github.com/users/SwiftKitz/followers","following_url":"https://api.github.com/users/SwiftKitz/following{/other_user}","gists_url":"https://api.github.com/users/SwiftKitz/gists{/gist_id}","starred_url":"https://api.github.com/users/SwiftKitz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SwiftKitz/subscriptions","organizations_url":"https://api.github.com/users/SwiftKitz/orgs","repos_url":"https://api.github.com/users/SwiftKitz/repos","events_url":"https://api.github.com/users/SwiftKitz/events{/privacy}","received_events_url":"https://api.github.com/users/SwiftKitz/received_events","type":"Organization","site_admin":false},"repo":{"id":45965083,"name":"Appz","full_name":"SwiftKitz/Appz","owner":{"login":"SwiftKitz","id":15711207,"avatar_url":"https://avatars.githubusercontent.com/u/15711207?v=3","gravatar_id":"","url":"https://api.github.com/users/SwiftKitz","html_url":"https://github.com/SwiftKitz","followers_url":"https://api.github.com/users/SwiftKitz/followers","following_url":"https://api.github.com/users/SwiftKitz/following{/other_user}","gists_url":"https://api.github.com/users/SwiftKitz/gists{/gist_id}","starred_url":"https://api.github.com/users/SwiftKitz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SwiftKitz/subscriptions","organizations_url":"https://api.github.com/users/SwiftKitz/orgs","repos_url":"https://api.github.com/users/SwiftKitz/repos","events_url":"https://api.github.com/users/SwiftKitz/events{/privacy}","received_events_url":"https://api.github.com/users/SwiftKitz/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/SwiftKitz/Appz","description":"Launch external apps, and deeplink, with ease!","fork":false,"url":"https://api.github.com/repos/SwiftKitz/Appz","forks_url":"https://api.github.com/repos/SwiftKitz/Appz/forks","keys_url":"https://api.github.com/repos/SwiftKitz/Appz/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SwiftKitz/Appz/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SwiftKitz/Appz/teams","hooks_url":"https://api.github.com/repos/SwiftKitz/Appz/hooks","issue_events_url":"https://api.github.com/repos/SwiftKitz/Appz/issues/events{/number}","events_url":"https://api.github.com/repos/SwiftKitz/Appz/events","assignees_url":"https://api.github.com/repos/SwiftKitz/Appz/assignees{/user}","branches_url":"https://api.github.com/repos/SwiftKitz/Appz/branches{/branch}","tags_url":"https://api.github.com/repos/SwiftKitz/Appz/tags","blobs_url":"https://api.github.com/repos/SwiftKitz/Appz/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SwiftKitz/Appz/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SwiftKitz/Appz/git/refs{/sha}","trees_url":"https://api.github.com/repos/SwiftKitz/Appz/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SwiftKitz/Appz/statuses/{sha}","languages_url":"https://api.github.com/repos/SwiftKitz/Appz/languages","stargazers_url":"https://api.github.com/repos/SwiftKitz/Appz/stargazers","contributors_url":"https://api.github.com/repos/SwiftKitz/Appz/contributors","subscribers_url":"https://api.github.com/repos/SwiftKitz/Appz/subscribers","subscription_url":"https://api.github.com/repos/SwiftKitz/Appz/subscription","commits_url":"https://api.github.com/repos/SwiftKitz/Appz/commits{/sha}","git_commits_url":"https://api.github.com/repos/SwiftKitz/Appz/git/commits{/sha}","comments_url":"https://api.github.com/repos/SwiftKitz/Appz/comments{/number}","issue_comment_url":"https://api.github.com/repos/SwiftKitz/Appz/issues/comments{/number}","contents_url":"https://api.github.com/repos/SwiftKitz/Appz/contents/{+path}","compare_url":"https://api.github.com/repos/SwiftKitz/Appz/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SwiftKitz/Appz/merges","archive_url":"https://api.github.com/repos/SwiftKitz/Appz/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SwiftKitz/Appz/downloads","issues_url":"https://api.github.com/repos/SwiftKitz/Appz/issues{/number}","pulls_url":"https://api.github.com/repos/SwiftKitz/Appz/pulls{/number}","milestones_url":"https://api.github.com/repos/SwiftKitz/Appz/milestones{/number}","notifications_url":"https://api.github.com/repos/SwiftKitz/Appz/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SwiftKitz/Appz/labels{/name}","releases_url":"https://api.github.com/repos/SwiftKitz/Appz/releases{/id}","created_at":"2015-11-11T06:57:48Z","updated_at":"2015-11-12T15:13:31Z","pushed_at":"2015-12-04T21:25:22Z","git_url":"git://github.com/SwiftKitz/Appz.git","ssh_url":"git@github.com:SwiftKitz/Appz.git","clone_url":"https://github.com/SwiftKitz/Appz.git","svn_url":"https://github.com/SwiftKitz/Appz","homepage":null,"size":22,"stargazers_count":2,"watchers_count":2,"language":"Swift","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":6,"forks":1,"open_issues":6,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/SwiftKitz/Appz/pulls/6"},"html":{"href":"https://github.com/SwiftKitz/Appz/pull/6"},"issue":{"href":"https://api.github.com/repos/SwiftKitz/Appz/issues/6"},"comments":{"href":"https://api.github.com/repos/SwiftKitz/Appz/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/SwiftKitz/Appz/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/SwiftKitz/Appz/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/SwiftKitz/Appz/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/SwiftKitz/Appz/statuses/1380e22a001ee723331b5086748f2938abc5a1b4"}}}}