{"action":"created","comment":{"url":"https://api.github.com/repos/jeffmay/neo4j-scala-client/pulls/comments/51696615","id":51696615,"diff_hunk":"@@ -0,0 +1,63 @@\n+package me.jeffmay.neo4j.client.model\n+\n+import play.api.libs.json.ops._\n+import play.api.libs.json._\n+\n+// TODO Simplify result types into single result model\n+// TODO Document all high-level response models\n+sealed trait Neo4jResponse\n+object Neo4jResponse {\n+\n+//  implicit val extractor: TypeKeyExtractor[Neo4jResponse] = Json.extractTypeKey[Neo4jResponse].using({\n+//    case open: TxnResponse => Some(open.results)\n+//    case other => None\n+//  }: Neo4jResponse => Option[Seq[StatementResult]], __ \\ \"results\")\n+//\n+//  implicit val format: OFormat[Neo4jResponse] = Json.formatAbstract[Neo4jResponse] {\n+//    case open: JsArray => OFormat.of[TxnResponse]\n+//    case JsNull => OFormat.of[TxnResponse]\n+//  }\n+\n+  def prettyPrint[R <: Neo4jResponse: Writes](response: R): String = {\n+    val respAsJson = Json.prettyPrint(Json.toJson(response))\n+    s\"${response.getClass.getSimpleName}:\\n$respAsJson\"\n+  }\n+}\n+\n+sealed trait TxnResponse extends Neo4jResponse {\n+  def results: Seq[StatementResult]\n+  def errors: Seq[Neo4jError]\n+}\n+\n+object TxnResponse {\n+\n+//  implicit val extractor: TypeKeyExtractor[TxnResponse] = Json.extractTypeKey[TxnResponse].using({\n+//    case open: OpenedTxnResponse => Some(open.txn.url)\n+//    case closed: CommittedTxnResponse => None\n+//  }: TxnResponse => Option[String], __ \\ \"txn\")\n+//\n+//  implicit val format: OFormat[TxnResponse] = Json.formatAbstract[TxnResponse] {\n+//    case Some(txn: TxnRef) => OFormat.of[OpenedTxnResponse]\n+//    case None => OFormat.of[CommittedTxnResponse]\n+//  }","path":"src/main/scala/me/jeffmay/neo4j/client/model/Neo4jResponse.scala","position":null,"original_position":42,"commit_id":"38cfd58dae118a852dfa97694cbc3a62ca89d5de","original_commit_id":"86501db454111a56b2bca1a1948e7773f2e599a0","user":{"login":"jeffmay","id":755988,"avatar_url":"https://avatars.githubusercontent.com/u/755988?v=3","gravatar_id":"","url":"https://api.github.com/users/jeffmay","html_url":"https://github.com/jeffmay","followers_url":"https://api.github.com/users/jeffmay/followers","following_url":"https://api.github.com/users/jeffmay/following{/other_user}","gists_url":"https://api.github.com/users/jeffmay/gists{/gist_id}","starred_url":"https://api.github.com/users/jeffmay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeffmay/subscriptions","organizations_url":"https://api.github.com/users/jeffmay/orgs","repos_url":"https://api.github.com/users/jeffmay/repos","events_url":"https://api.github.com/users/jeffmay/events{/privacy}","received_events_url":"https://api.github.com/users/jeffmay/received_events","type":"User","site_admin":false},"body":"DONE","created_at":"2016-02-03T09:28:36Z","updated_at":"2016-02-03T09:28:36Z","html_url":"https://github.com/jeffmay/neo4j-scala-client/pull/1#discussion_r51696615","pull_request_url":"https://api.github.com/repos/jeffmay/neo4j-scala-client/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/jeffmay/neo4j-scala-client/pulls/comments/51696615"},"html":{"href":"https://github.com/jeffmay/neo4j-scala-client/pull/1#discussion_r51696615"},"pull_request":{"href":"https://api.github.com/repos/jeffmay/neo4j-scala-client/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/jeffmay/neo4j-scala-client/pulls/1","id":57808488,"html_url":"https://github.com/jeffmay/neo4j-scala-client/pull/1","diff_url":"https://github.com/jeffmay/neo4j-scala-client/pull/1.diff","patch_url":"https://github.com/jeffmay/neo4j-scala-client/pull/1.patch","issue_url":"https://api.github.com/repos/jeffmay/neo4j-scala-client/issues/1","number":1,"state":"open","locked":false,"title":"Initial commits","user":{"login":"jeffmay","id":755988,"avatar_url":"https://avatars.githubusercontent.com/u/755988?v=3","gravatar_id":"","url":"https://api.github.com/users/jeffmay","html_url":"https://github.com/jeffmay","followers_url":"https://api.github.com/users/jeffmay/followers","following_url":"https://api.github.com/users/jeffmay/following{/other_user}","gists_url":"https://api.github.com/users/jeffmay/gists{/gist_id}","starred_url":"https://api.github.com/users/jeffmay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeffmay/subscriptions","organizations_url":"https://api.github.com/users/jeffmay/orgs","repos_url":"https://api.github.com/users/jeffmay/repos","events_url":"https://api.github.com/users/jeffmay/events{/privacy}","received_events_url":"https://api.github.com/users/jeffmay/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-02-01T08:19:26Z","updated_at":"2016-02-03T09:28:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e55076d61414e0e4816ba6338a69136812d6711b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/jeffmay/neo4j-scala-client/pulls/1/commits","review_comments_url":"https://api.github.com/repos/jeffmay/neo4j-scala-client/pulls/1/comments","review_comment_url":"https://api.github.com/repos/jeffmay/neo4j-scala-client/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jeffmay/neo4j-scala-client/issues/1/comments","statuses_url":"https://api.github.com/repos/jeffmay/neo4j-scala-client/statuses/38cfd58dae118a852dfa97694cbc3a62ca89d5de","head":{"label":"jeffmay:initial","ref":"initial","sha":"38cfd58dae118a852dfa97694cbc3a62ca89d5de","user":{"login":"jeffmay","id":755988,"avatar_url":"https://avatars.githubusercontent.com/u/755988?v=3","gravatar_id":"","url":"https://api.github.com/users/jeffmay","html_url":"https://github.com/jeffmay","followers_url":"https://api.github.com/users/jeffmay/followers","following_url":"https://api.github.com/users/jeffmay/following{/other_user}","gists_url":"https://api.github.com/users/jeffmay/gists{/gist_id}","starred_url":"https://api.github.com/users/jeffmay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeffmay/subscriptions","organizations_url":"https://api.github.com/users/jeffmay/orgs","repos_url":"https://api.github.com/users/jeffmay/repos","events_url":"https://api.github.com/users/jeffmay/events{/privacy}","received_events_url":"https://api.github.com/users/jeffmay/received_events","type":"User","site_admin":false},"repo":{"id":45362115,"name":"neo4j-scala-client","full_name":"jeffmay/neo4j-scala-client","owner":{"login":"jeffmay","id":755988,"avatar_url":"https://avatars.githubusercontent.com/u/755988?v=3","gravatar_id":"","url":"https://api.github.com/users/jeffmay","html_url":"https://github.com/jeffmay","followers_url":"https://api.github.com/users/jeffmay/followers","following_url":"https://api.github.com/users/jeffmay/following{/other_user}","gists_url":"https://api.github.com/users/jeffmay/gists{/gist_id}","starred_url":"https://api.github.com/users/jeffmay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeffmay/subscriptions","organizations_url":"https://api.github.com/users/jeffmay/orgs","repos_url":"https://api.github.com/users/jeffmay/repos","events_url":"https://api.github.com/users/jeffmay/events{/privacy}","received_events_url":"https://api.github.com/users/jeffmay/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jeffmay/neo4j-scala-client","description":"A Scala-based driver for interfacing with a stand-alone Neo4j server over HTTP and websockets","fork":false,"url":"https://api.github.com/repos/jeffmay/neo4j-scala-client","forks_url":"https://api.github.com/repos/jeffmay/neo4j-scala-client/forks","keys_url":"https://api.github.com/repos/jeffmay/neo4j-scala-client/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jeffmay/neo4j-scala-client/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jeffmay/neo4j-scala-client/teams","hooks_url":"https://api.github.com/repos/jeffmay/neo4j-scala-client/hooks","issue_events_url":"https://api.github.com/repos/jeffmay/neo4j-scala-client/issues/events{/number}","events_url":"https://api.github.com/repos/jeffmay/neo4j-scala-client/events","assignees_url":"https://api.github.com/repos/jeffmay/neo4j-scala-client/assignees{/user}","branches_url":"https://api.github.com/repos/jeffmay/neo4j-scala-client/branches{/branch}","tags_url":"https://api.github.com/repos/jeffmay/neo4j-scala-client/tags","blobs_url":"https://api.github.com/repos/jeffmay/neo4j-scala-client/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jeffmay/neo4j-scala-client/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jeffmay/neo4j-scala-client/git/refs{/sha}","trees_url":"https://api.github.com/repos/jeffmay/neo4j-scala-client/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jeffmay/neo4j-scala-client/statuses/{sha}","languages_url":"https://api.github.com/repos/jeffmay/neo4j-scala-client/languages","stargazers_url":"https://api.github.com/repos/jeffmay/neo4j-scala-client/stargazers","contributors_url":"https://api.github.com/repos/jeffmay/neo4j-scala-client/contributors","subscribers_url":"https://api.github.com/repos/jeffmay/neo4j-scala-client/subscribers","subscription_url":"https://api.github.com/repos/jeffmay/neo4j-scala-client/subscription","commits_url":"https://api.github.com/repos/jeffmay/neo4j-scala-client/commits{/sha}","git_commits_url":"https://api.github.com/repos/jeffmay/neo4j-scala-client/git/commits{/sha}","comments_url":"https://api.github.com/repos/jeffmay/neo4j-scala-client/comments{/number}","issue_comment_url":"https://api.github.com/repos/jeffmay/neo4j-scala-client/issues/comments{/number}","contents_url":"https://api.github.com/repos/jeffmay/neo4j-scala-client/contents/{+path}","compare_url":"https://api.github.com/repos/jeffmay/neo4j-scala-client/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jeffmay/neo4j-scala-client/merges","archive_url":"https://api.github.com/repos/jeffmay/neo4j-scala-client/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jeffmay/neo4j-scala-client/downloads","issues_url":"https://api.github.com/repos/jeffmay/neo4j-scala-client/issues{/number}","pulls_url":"https://api.github.com/repos/jeffmay/neo4j-scala-client/pulls{/number}","milestones_url":"https://api.github.com/repos/jeffmay/neo4j-scala-client/milestones{/number}","notifications_url":"https://api.github.com/repos/jeffmay/neo4j-scala-client/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jeffmay/neo4j-scala-client/labels{/name}","releases_url":"https://api.github.com/repos/jeffmay/neo4j-scala-client/releases{/id}","deployments_url":"https://api.github.com/repos/jeffmay/neo4j-scala-client/deployments","created_at":"2015-11-01T23:35:11Z","updated_at":"2015-11-01T23:35:11Z","pushed_at":"2016-02-03T09:27:07Z","git_url":"git://github.com/jeffmay/neo4j-scala-client.git","ssh_url":"git@github.com:jeffmay/neo4j-scala-client.git","clone_url":"https://github.com/jeffmay/neo4j-scala-client.git","svn_url":"https://github.com/jeffmay/neo4j-scala-client","homepage":null,"size":49,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"jeffmay:master","ref":"master","sha":"9db965dbcbf5bd47a9deb92527298564d8d0b60e","user":{"login":"jeffmay","id":755988,"avatar_url":"https://avatars.githubusercontent.com/u/755988?v=3","gravatar_id":"","url":"https://api.github.com/users/jeffmay","html_url":"https://github.com/jeffmay","followers_url":"https://api.github.com/users/jeffmay/followers","following_url":"https://api.github.com/users/jeffmay/following{/other_user}","gists_url":"https://api.github.com/users/jeffmay/gists{/gist_id}","starred_url":"https://api.github.com/users/jeffmay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeffmay/subscriptions","organizations_url":"https://api.github.com/users/jeffmay/orgs","repos_url":"https://api.github.com/users/jeffmay/repos","events_url":"https://api.github.com/users/jeffmay/events{/privacy}","received_events_url":"https://api.github.com/users/jeffmay/received_events","type":"User","site_admin":false},"repo":{"id":45362115,"name":"neo4j-scala-client","full_name":"jeffmay/neo4j-scala-client","owner":{"login":"jeffmay","id":755988,"avatar_url":"https://avatars.githubusercontent.com/u/755988?v=3","gravatar_id":"","url":"https://api.github.com/users/jeffmay","html_url":"https://github.com/jeffmay","followers_url":"https://api.github.com/users/jeffmay/followers","following_url":"https://api.github.com/users/jeffmay/following{/other_user}","gists_url":"https://api.github.com/users/jeffmay/gists{/gist_id}","starred_url":"https://api.github.com/users/jeffmay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeffmay/subscriptions","organizations_url":"https://api.github.com/users/jeffmay/orgs","repos_url":"https://api.github.com/users/jeffmay/repos","events_url":"https://api.github.com/users/jeffmay/events{/privacy}","received_events_url":"https://api.github.com/users/jeffmay/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jeffmay/neo4j-scala-client","description":"A Scala-based driver for interfacing with a stand-alone Neo4j server over HTTP and websockets","fork":false,"url":"https://api.github.com/repos/jeffmay/neo4j-scala-client","forks_url":"https://api.github.com/repos/jeffmay/neo4j-scala-client/forks","keys_url":"https://api.github.com/repos/jeffmay/neo4j-scala-client/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jeffmay/neo4j-scala-client/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jeffmay/neo4j-scala-client/teams","hooks_url":"https://api.github.com/repos/jeffmay/neo4j-scala-client/hooks","issue_events_url":"https://api.github.com/repos/jeffmay/neo4j-scala-client/issues/events{/number}","events_url":"https://api.github.com/repos/jeffmay/neo4j-scala-client/events","assignees_url":"https://api.github.com/repos/jeffmay/neo4j-scala-client/assignees{/user}","branches_url":"https://api.github.com/repos/jeffmay/neo4j-scala-client/branches{/branch}","tags_url":"https://api.github.com/repos/jeffmay/neo4j-scala-client/tags","blobs_url":"https://api.github.com/repos/jeffmay/neo4j-scala-client/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jeffmay/neo4j-scala-client/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jeffmay/neo4j-scala-client/git/refs{/sha}","trees_url":"https://api.github.com/repos/jeffmay/neo4j-scala-client/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jeffmay/neo4j-scala-client/statuses/{sha}","languages_url":"https://api.github.com/repos/jeffmay/neo4j-scala-client/languages","stargazers_url":"https://api.github.com/repos/jeffmay/neo4j-scala-client/stargazers","contributors_url":"https://api.github.com/repos/jeffmay/neo4j-scala-client/contributors","subscribers_url":"https://api.github.com/repos/jeffmay/neo4j-scala-client/subscribers","subscription_url":"https://api.github.com/repos/jeffmay/neo4j-scala-client/subscription","commits_url":"https://api.github.com/repos/jeffmay/neo4j-scala-client/commits{/sha}","git_commits_url":"https://api.github.com/repos/jeffmay/neo4j-scala-client/git/commits{/sha}","comments_url":"https://api.github.com/repos/jeffmay/neo4j-scala-client/comments{/number}","issue_comment_url":"https://api.github.com/repos/jeffmay/neo4j-scala-client/issues/comments{/number}","contents_url":"https://api.github.com/repos/jeffmay/neo4j-scala-client/contents/{+path}","compare_url":"https://api.github.com/repos/jeffmay/neo4j-scala-client/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jeffmay/neo4j-scala-client/merges","archive_url":"https://api.github.com/repos/jeffmay/neo4j-scala-client/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jeffmay/neo4j-scala-client/downloads","issues_url":"https://api.github.com/repos/jeffmay/neo4j-scala-client/issues{/number}","pulls_url":"https://api.github.com/repos/jeffmay/neo4j-scala-client/pulls{/number}","milestones_url":"https://api.github.com/repos/jeffmay/neo4j-scala-client/milestones{/number}","notifications_url":"https://api.github.com/repos/jeffmay/neo4j-scala-client/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jeffmay/neo4j-scala-client/labels{/name}","releases_url":"https://api.github.com/repos/jeffmay/neo4j-scala-client/releases{/id}","deployments_url":"https://api.github.com/repos/jeffmay/neo4j-scala-client/deployments","created_at":"2015-11-01T23:35:11Z","updated_at":"2015-11-01T23:35:11Z","pushed_at":"2016-02-03T09:27:07Z","git_url":"git://github.com/jeffmay/neo4j-scala-client.git","ssh_url":"git@github.com:jeffmay/neo4j-scala-client.git","clone_url":"https://github.com/jeffmay/neo4j-scala-client.git","svn_url":"https://github.com/jeffmay/neo4j-scala-client","homepage":null,"size":49,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jeffmay/neo4j-scala-client/pulls/1"},"html":{"href":"https://github.com/jeffmay/neo4j-scala-client/pull/1"},"issue":{"href":"https://api.github.com/repos/jeffmay/neo4j-scala-client/issues/1"},"comments":{"href":"https://api.github.com/repos/jeffmay/neo4j-scala-client/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/jeffmay/neo4j-scala-client/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/jeffmay/neo4j-scala-client/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jeffmay/neo4j-scala-client/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/jeffmay/neo4j-scala-client/statuses/38cfd58dae118a852dfa97694cbc3a62ca89d5de"}}}}