{"action":"created","comment":{"url":"https://api.github.com/repos/SwiftX/C7/pulls/comments/58289421","id":58289421,"diff_hunk":"@@ -0,0 +1,20 @@\n+//\n+//  Connection.swift\n+//  C7\n+//\n+//  Created by Scott Byrns on 4/1/16.\n+//\n+//\n+\n+public protocol Connection {\n+    \n+    associatedtype StatusType\n+    \n+    func open() throws\n+    func close() -> Bool\n+    \n+    var connectionInfo: ConnectionInfo { get }\n+    var status: StatusType { get }\n+    var mostRecentError: ErrorProtocol? { get }","path":"Sources/Connection.swift","position":18,"original_position":18,"commit_id":"59e8d2da4bd5d39d166c9c36d0dd03a908ca8c81","original_commit_id":"59e8d2da4bd5d39d166c9c36d0dd03a908ca8c81","user":{"login":"scottbyrns","id":290248,"avatar_url":"https://avatars.githubusercontent.com/u/290248?v=3","gravatar_id":"","url":"https://api.github.com/users/scottbyrns","html_url":"https://github.com/scottbyrns","followers_url":"https://api.github.com/users/scottbyrns/followers","following_url":"https://api.github.com/users/scottbyrns/following{/other_user}","gists_url":"https://api.github.com/users/scottbyrns/gists{/gist_id}","starred_url":"https://api.github.com/users/scottbyrns/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scottbyrns/subscriptions","organizations_url":"https://api.github.com/users/scottbyrns/orgs","repos_url":"https://api.github.com/users/scottbyrns/repos","events_url":"https://api.github.com/users/scottbyrns/events{/privacy}","received_events_url":"https://api.github.com/users/scottbyrns/received_events","type":"User","site_admin":false},"body":"Status I would like to leave up to the implementer of a given connection. All connections have a status. How do you feel about genetics?\r\n\r\nConnection<ConnectionStatus> { var status: ConnectionStatus { get } }","created_at":"2016-04-02T06:15:26Z","updated_at":"2016-04-02T06:15:26Z","html_url":"https://github.com/SwiftX/C7/pull/7#discussion_r58289421","pull_request_url":"https://api.github.com/repos/SwiftX/C7/pulls/7","_links":{"self":{"href":"https://api.github.com/repos/SwiftX/C7/pulls/comments/58289421"},"html":{"href":"https://github.com/SwiftX/C7/pull/7#discussion_r58289421"},"pull_request":{"href":"https://api.github.com/repos/SwiftX/C7/pulls/7"}}},"pull_request":{"url":"https://api.github.com/repos/SwiftX/C7/pulls/7","id":65029039,"html_url":"https://github.com/SwiftX/C7/pull/7","diff_url":"https://github.com/SwiftX/C7/pull/7.diff","patch_url":"https://github.com/SwiftX/C7/pull/7.patch","issue_url":"https://api.github.com/repos/SwiftX/C7/issues/7","number":7,"state":"open","locked":false,"title":"Adding connection protocols","user":{"login":"scottbyrns","id":290248,"avatar_url":"https://avatars.githubusercontent.com/u/290248?v=3","gravatar_id":"","url":"https://api.github.com/users/scottbyrns","html_url":"https://github.com/scottbyrns","followers_url":"https://api.github.com/users/scottbyrns/followers","following_url":"https://api.github.com/users/scottbyrns/following{/other_user}","gists_url":"https://api.github.com/users/scottbyrns/gists{/gist_id}","starred_url":"https://api.github.com/users/scottbyrns/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scottbyrns/subscriptions","organizations_url":"https://api.github.com/users/scottbyrns/orgs","repos_url":"https://api.github.com/users/scottbyrns/repos","events_url":"https://api.github.com/users/scottbyrns/events{/privacy}","received_events_url":"https://api.github.com/users/scottbyrns/received_events","type":"User","site_admin":false},"body":"Needed to refactor connections throughout Zewo to conform to a single protocol for the ConnectionPool sub project","created_at":"2016-04-02T05:43:19Z","updated_at":"2016-04-02T06:15:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4833e40f9259170d369c4fe03ff462d1403ac89a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/SwiftX/C7/pulls/7/commits","review_comments_url":"https://api.github.com/repos/SwiftX/C7/pulls/7/comments","review_comment_url":"https://api.github.com/repos/SwiftX/C7/pulls/comments{/number}","comments_url":"https://api.github.com/repos/SwiftX/C7/issues/7/comments","statuses_url":"https://api.github.com/repos/SwiftX/C7/statuses/59e8d2da4bd5d39d166c9c36d0dd03a908ca8c81","head":{"label":"scottbyrns:master","ref":"master","sha":"59e8d2da4bd5d39d166c9c36d0dd03a908ca8c81","user":{"login":"scottbyrns","id":290248,"avatar_url":"https://avatars.githubusercontent.com/u/290248?v=3","gravatar_id":"","url":"https://api.github.com/users/scottbyrns","html_url":"https://github.com/scottbyrns","followers_url":"https://api.github.com/users/scottbyrns/followers","following_url":"https://api.github.com/users/scottbyrns/following{/other_user}","gists_url":"https://api.github.com/users/scottbyrns/gists{/gist_id}","starred_url":"https://api.github.com/users/scottbyrns/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scottbyrns/subscriptions","organizations_url":"https://api.github.com/users/scottbyrns/orgs","repos_url":"https://api.github.com/users/scottbyrns/repos","events_url":"https://api.github.com/users/scottbyrns/events{/privacy}","received_events_url":"https://api.github.com/users/scottbyrns/received_events","type":"User","site_admin":false},"repo":{"id":55279570,"name":"C7","full_name":"scottbyrns/C7","owner":{"login":"scottbyrns","id":290248,"avatar_url":"https://avatars.githubusercontent.com/u/290248?v=3","gravatar_id":"","url":"https://api.github.com/users/scottbyrns","html_url":"https://github.com/scottbyrns","followers_url":"https://api.github.com/users/scottbyrns/followers","following_url":"https://api.github.com/users/scottbyrns/following{/other_user}","gists_url":"https://api.github.com/users/scottbyrns/gists{/gist_id}","starred_url":"https://api.github.com/users/scottbyrns/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scottbyrns/subscriptions","organizations_url":"https://api.github.com/users/scottbyrns/orgs","repos_url":"https://api.github.com/users/scottbyrns/repos","events_url":"https://api.github.com/users/scottbyrns/events{/privacy}","received_events_url":"https://api.github.com/users/scottbyrns/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/scottbyrns/C7","description":"Core standards for Swift","fork":true,"url":"https://api.github.com/repos/scottbyrns/C7","forks_url":"https://api.github.com/repos/scottbyrns/C7/forks","keys_url":"https://api.github.com/repos/scottbyrns/C7/keys{/key_id}","collaborators_url":"https://api.github.com/repos/scottbyrns/C7/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/scottbyrns/C7/teams","hooks_url":"https://api.github.com/repos/scottbyrns/C7/hooks","issue_events_url":"https://api.github.com/repos/scottbyrns/C7/issues/events{/number}","events_url":"https://api.github.com/repos/scottbyrns/C7/events","assignees_url":"https://api.github.com/repos/scottbyrns/C7/assignees{/user}","branches_url":"https://api.github.com/repos/scottbyrns/C7/branches{/branch}","tags_url":"https://api.github.com/repos/scottbyrns/C7/tags","blobs_url":"https://api.github.com/repos/scottbyrns/C7/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/scottbyrns/C7/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/scottbyrns/C7/git/refs{/sha}","trees_url":"https://api.github.com/repos/scottbyrns/C7/git/trees{/sha}","statuses_url":"https://api.github.com/repos/scottbyrns/C7/statuses/{sha}","languages_url":"https://api.github.com/repos/scottbyrns/C7/languages","stargazers_url":"https://api.github.com/repos/scottbyrns/C7/stargazers","contributors_url":"https://api.github.com/repos/scottbyrns/C7/contributors","subscribers_url":"https://api.github.com/repos/scottbyrns/C7/subscribers","subscription_url":"https://api.github.com/repos/scottbyrns/C7/subscription","commits_url":"https://api.github.com/repos/scottbyrns/C7/commits{/sha}","git_commits_url":"https://api.github.com/repos/scottbyrns/C7/git/commits{/sha}","comments_url":"https://api.github.com/repos/scottbyrns/C7/comments{/number}","issue_comment_url":"https://api.github.com/repos/scottbyrns/C7/issues/comments{/number}","contents_url":"https://api.github.com/repos/scottbyrns/C7/contents/{+path}","compare_url":"https://api.github.com/repos/scottbyrns/C7/compare/{base}...{head}","merges_url":"https://api.github.com/repos/scottbyrns/C7/merges","archive_url":"https://api.github.com/repos/scottbyrns/C7/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/scottbyrns/C7/downloads","issues_url":"https://api.github.com/repos/scottbyrns/C7/issues{/number}","pulls_url":"https://api.github.com/repos/scottbyrns/C7/pulls{/number}","milestones_url":"https://api.github.com/repos/scottbyrns/C7/milestones{/number}","notifications_url":"https://api.github.com/repos/scottbyrns/C7/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/scottbyrns/C7/labels{/name}","releases_url":"https://api.github.com/repos/scottbyrns/C7/releases{/id}","deployments_url":"https://api.github.com/repos/scottbyrns/C7/deployments","created_at":"2016-04-02T05:34:16Z","updated_at":"2016-04-02T05:34:17Z","pushed_at":"2016-04-02T05:41:51Z","git_url":"git://github.com/scottbyrns/C7.git","ssh_url":"git@github.com:scottbyrns/C7.git","clone_url":"https://github.com/scottbyrns/C7.git","svn_url":"https://github.com/scottbyrns/C7","homepage":null,"size":38,"stargazers_count":0,"watchers_count":0,"language":"Swift","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":0,"default_branch":"master"}},"base":{"label":"SwiftX:master","ref":"master","sha":"6bbc9ad6744bebe281c6c5201b9b0db7cc08ed66","user":{"login":"SwiftX","id":17800653,"avatar_url":"https://avatars.githubusercontent.com/u/17800653?v=3","gravatar_id":"","url":"https://api.github.com/users/SwiftX","html_url":"https://github.com/SwiftX","followers_url":"https://api.github.com/users/SwiftX/followers","following_url":"https://api.github.com/users/SwiftX/following{/other_user}","gists_url":"https://api.github.com/users/SwiftX/gists{/gist_id}","starred_url":"https://api.github.com/users/SwiftX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SwiftX/subscriptions","organizations_url":"https://api.github.com/users/SwiftX/orgs","repos_url":"https://api.github.com/users/SwiftX/repos","events_url":"https://api.github.com/users/SwiftX/events{/privacy}","received_events_url":"https://api.github.com/users/SwiftX/received_events","type":"Organization","site_admin":false},"repo":{"id":54126096,"name":"C7","full_name":"SwiftX/C7","owner":{"login":"SwiftX","id":17800653,"avatar_url":"https://avatars.githubusercontent.com/u/17800653?v=3","gravatar_id":"","url":"https://api.github.com/users/SwiftX","html_url":"https://github.com/SwiftX","followers_url":"https://api.github.com/users/SwiftX/followers","following_url":"https://api.github.com/users/SwiftX/following{/other_user}","gists_url":"https://api.github.com/users/SwiftX/gists{/gist_id}","starred_url":"https://api.github.com/users/SwiftX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SwiftX/subscriptions","organizations_url":"https://api.github.com/users/SwiftX/orgs","repos_url":"https://api.github.com/users/SwiftX/repos","events_url":"https://api.github.com/users/SwiftX/events{/privacy}","received_events_url":"https://api.github.com/users/SwiftX/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/SwiftX/C7","description":"Core standards for Swift","fork":false,"url":"https://api.github.com/repos/SwiftX/C7","forks_url":"https://api.github.com/repos/SwiftX/C7/forks","keys_url":"https://api.github.com/repos/SwiftX/C7/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SwiftX/C7/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SwiftX/C7/teams","hooks_url":"https://api.github.com/repos/SwiftX/C7/hooks","issue_events_url":"https://api.github.com/repos/SwiftX/C7/issues/events{/number}","events_url":"https://api.github.com/repos/SwiftX/C7/events","assignees_url":"https://api.github.com/repos/SwiftX/C7/assignees{/user}","branches_url":"https://api.github.com/repos/SwiftX/C7/branches{/branch}","tags_url":"https://api.github.com/repos/SwiftX/C7/tags","blobs_url":"https://api.github.com/repos/SwiftX/C7/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SwiftX/C7/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SwiftX/C7/git/refs{/sha}","trees_url":"https://api.github.com/repos/SwiftX/C7/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SwiftX/C7/statuses/{sha}","languages_url":"https://api.github.com/repos/SwiftX/C7/languages","stargazers_url":"https://api.github.com/repos/SwiftX/C7/stargazers","contributors_url":"https://api.github.com/repos/SwiftX/C7/contributors","subscribers_url":"https://api.github.com/repos/SwiftX/C7/subscribers","subscription_url":"https://api.github.com/repos/SwiftX/C7/subscription","commits_url":"https://api.github.com/repos/SwiftX/C7/commits{/sha}","git_commits_url":"https://api.github.com/repos/SwiftX/C7/git/commits{/sha}","comments_url":"https://api.github.com/repos/SwiftX/C7/comments{/number}","issue_comment_url":"https://api.github.com/repos/SwiftX/C7/issues/comments{/number}","contents_url":"https://api.github.com/repos/SwiftX/C7/contents/{+path}","compare_url":"https://api.github.com/repos/SwiftX/C7/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SwiftX/C7/merges","archive_url":"https://api.github.com/repos/SwiftX/C7/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SwiftX/C7/downloads","issues_url":"https://api.github.com/repos/SwiftX/C7/issues{/number}","pulls_url":"https://api.github.com/repos/SwiftX/C7/pulls{/number}","milestones_url":"https://api.github.com/repos/SwiftX/C7/milestones{/number}","notifications_url":"https://api.github.com/repos/SwiftX/C7/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SwiftX/C7/labels{/name}","releases_url":"https://api.github.com/repos/SwiftX/C7/releases{/id}","deployments_url":"https://api.github.com/repos/SwiftX/C7/deployments","created_at":"2016-03-17T14:49:04Z","updated_at":"2016-04-01T17:38:13Z","pushed_at":"2016-04-02T05:43:19Z","git_url":"git://github.com/SwiftX/C7.git","ssh_url":"git@github.com:SwiftX/C7.git","clone_url":"https://github.com/SwiftX/C7.git","svn_url":"https://github.com/SwiftX/C7","homepage":null,"size":39,"stargazers_count":5,"watchers_count":5,"language":"Swift","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":3,"forks":4,"open_issues":3,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/SwiftX/C7/pulls/7"},"html":{"href":"https://github.com/SwiftX/C7/pull/7"},"issue":{"href":"https://api.github.com/repos/SwiftX/C7/issues/7"},"comments":{"href":"https://api.github.com/repos/SwiftX/C7/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/SwiftX/C7/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/SwiftX/C7/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/SwiftX/C7/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/SwiftX/C7/statuses/59e8d2da4bd5d39d166c9c36d0dd03a908ca8c81"}}}}