{"action":"created","comment":{"url":"https://api.github.com/repos/Qabel/qabel-core/pulls/comments/22767499","id":22767499,"diff_hunk":"@@ -0,0 +1,76 @@\n+package de.qabel.core.bufferedData;\n+\n+import java.io.IOException;\n+import java.util.Collection;\n+\n+import com.google.gson.Gson;\n+import com.google.gson.GsonBuilder;\n+import com.google.gson.JsonElement;\n+import com.google.gson.TypeAdapter;\n+import com.google.gson.stream.JsonReader;\n+import com.google.gson.stream.JsonToken;\n+import com.google.gson.stream.JsonWriter;\n+\n+import de.qabel.core.crypto.QblSignPublicKeySerializer;\n+import de.qabel.core.drop.ModelObject;\n+\n+/**\n+ * Class AcknowledgeIdTypeAdapter: JSON type adapter for AcknowledgeId\n+ *\n+ */\n+public class AcknowledgeIdsTypeAdapter extends TypeAdapter<AcknowledgeIds> {\n+    @Override\n+    public void write(JsonWriter out, AcknowledgeIds value) throws IOException {\n+        GsonBuilder builder;\n+        Gson gson;\n+\n+        builder = new GsonBuilder();\n+        builder.registerTypeAdapter(AcknowledgeId.class, new AcknowledgeIdSerializer());\n+        builder.setDateFormat(\"yyyy-MM-dd HH:mm:ss.SSS\");\n+        gson = builder.create();\n+\n+        out.beginArray();\n+\n+        Collection<AcknowledgeId<? extends ModelObject>> set = value.getItems();\n+        TypeAdapter<AcknowledgeId> adapter = gson.getAdapter(AcknowledgeId.class);\n+        for (AcknowledgeId<? extends ModelObject> acknowledgeId : set) {\n+            adapter.write(out, acknowledgeId);\n+        }\n+        out.endArray();\n+\n+        return;\n+    }\n+\n+    @Override\n+    public AcknowledgeIds read(JsonReader in) throws IOException {\n+        if (in.peek() == JsonToken.NULL) {\n+            in.nextNull();\n+            return null;\n+        }\n+        GsonBuilder builder;\n+        Gson gson;\n+\n+        builder = new GsonBuilder();\n+        builder.setDateFormat(\"yyyy-MM-dd HH:mm:ss.SSS\");\n+        gson = builder.create();\n+        \n+        builder = new GsonBuilder();\n+        builder.registerTypeAdapter(AcknowledgeId.class, new AcknowledgeIdDeserializer());\n+        builder.setDateFormat(\"yyyy-MM-dd HH:mm:ss.SSS\");\n+        gson = builder.create();\n+\n+        AcknowledgeIds list = new AcknowledgeIds();","path":"src/main/java/de/qabel/core/bufferedData/AcknowledgeIdsTypeAdapter.java","position":62,"original_position":62,"commit_id":"5b6b8cdf15701daeea921cb12398923ed685ef99","original_commit_id":"5b6b8cdf15701daeea921cb12398923ed685ef99","user":{"login":"k-c13","id":7960609,"avatar_url":"https://avatars.githubusercontent.com/u/7960609?v=3","gravatar_id":"","url":"https://api.github.com/users/k-c13","html_url":"https://github.com/k-c13","followers_url":"https://api.github.com/users/k-c13/followers","following_url":"https://api.github.com/users/k-c13/following{/other_user}","gists_url":"https://api.github.com/users/k-c13/gists{/gist_id}","starred_url":"https://api.github.com/users/k-c13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/k-c13/subscriptions","organizations_url":"https://api.github.com/users/k-c13/orgs","repos_url":"https://api.github.com/users/k-c13/repos","events_url":"https://api.github.com/users/k-c13/events{/privacy}","received_events_url":"https://api.github.com/users/k-c13/received_events","type":"User","site_admin":false},"body":"\n> Parameterized: AcknowledeIds<?> list = new AcknowledgeIds<>()\nDone","created_at":"2015-01-11T15:35:54Z","updated_at":"2015-01-11T15:35:54Z","html_url":"https://github.com/Qabel/qabel-core/pull/179#discussion_r22767499","pull_request_url":"https://api.github.com/repos/Qabel/qabel-core/pulls/179","_links":{"self":{"href":"https://api.github.com/repos/Qabel/qabel-core/pulls/comments/22767499"},"html":{"href":"https://github.com/Qabel/qabel-core/pull/179#discussion_r22767499"},"pull_request":{"href":"https://api.github.com/repos/Qabel/qabel-core/pulls/179"}}},"pull_request":{"url":"https://api.github.com/repos/Qabel/qabel-core/pulls/179","id":23765662,"html_url":"https://github.com/Qabel/qabel-core/pull/179","diff_url":"https://github.com/Qabel/qabel-core/pull/179.diff","patch_url":"https://github.com/Qabel/qabel-core/pull/179.patch","issue_url":"https://api.github.com/repos/Qabel/qabel-core/issues/179","number":179,"state":"open","locked":false,"title":"Add buffered data classes","user":{"login":"k-c13","id":7960609,"avatar_url":"https://avatars.githubusercontent.com/u/7960609?v=3","gravatar_id":"","url":"https://api.github.com/users/k-c13","html_url":"https://github.com/k-c13","followers_url":"https://api.github.com/users/k-c13/followers","following_url":"https://api.github.com/users/k-c13/following{/other_user}","gists_url":"https://api.github.com/users/k-c13/gists{/gist_id}","starred_url":"https://api.github.com/users/k-c13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/k-c13/subscriptions","organizations_url":"https://api.github.com/users/k-c13/orgs","repos_url":"https://api.github.com/users/k-c13/repos","events_url":"https://api.github.com/users/k-c13/events{/privacy}","received_events_url":"https://api.github.com/users/k-c13/received_events","type":"User","site_admin":false},"body":"Check it and the concept in background","created_at":"2014-11-03T15:09:53Z","updated_at":"2015-01-11T15:35:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e6bc460999834488f1251a2524b58528cdc89e3a","assignee":{"login":"k-c13","id":7960609,"avatar_url":"https://avatars.githubusercontent.com/u/7960609?v=3","gravatar_id":"","url":"https://api.github.com/users/k-c13","html_url":"https://github.com/k-c13","followers_url":"https://api.github.com/users/k-c13/followers","following_url":"https://api.github.com/users/k-c13/following{/other_user}","gists_url":"https://api.github.com/users/k-c13/gists{/gist_id}","starred_url":"https://api.github.com/users/k-c13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/k-c13/subscriptions","organizations_url":"https://api.github.com/users/k-c13/orgs","repos_url":"https://api.github.com/users/k-c13/repos","events_url":"https://api.github.com/users/k-c13/events{/privacy}","received_events_url":"https://api.github.com/users/k-c13/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/Qabel/qabel-core/pulls/179/commits","review_comments_url":"https://api.github.com/repos/Qabel/qabel-core/pulls/179/comments","review_comment_url":"https://api.github.com/repos/Qabel/qabel-core/pulls/comments/{number}","comments_url":"https://api.github.com/repos/Qabel/qabel-core/issues/179/comments","statuses_url":"https://api.github.com/repos/Qabel/qabel-core/statuses/5b6b8cdf15701daeea921cb12398923ed685ef99","head":{"label":"k-c13:buffered-data","ref":"buffered-data","sha":"5b6b8cdf15701daeea921cb12398923ed685ef99","user":{"login":"k-c13","id":7960609,"avatar_url":"https://avatars.githubusercontent.com/u/7960609?v=3","gravatar_id":"","url":"https://api.github.com/users/k-c13","html_url":"https://github.com/k-c13","followers_url":"https://api.github.com/users/k-c13/followers","following_url":"https://api.github.com/users/k-c13/following{/other_user}","gists_url":"https://api.github.com/users/k-c13/gists{/gist_id}","starred_url":"https://api.github.com/users/k-c13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/k-c13/subscriptions","organizations_url":"https://api.github.com/users/k-c13/orgs","repos_url":"https://api.github.com/users/k-c13/repos","events_url":"https://api.github.com/users/k-c13/events{/privacy}","received_events_url":"https://api.github.com/users/k-c13/received_events","type":"User","site_admin":false},"repo":{"id":25077404,"name":"qabel-core","full_name":"k-c13/qabel-core","owner":{"login":"k-c13","id":7960609,"avatar_url":"https://avatars.githubusercontent.com/u/7960609?v=3","gravatar_id":"","url":"https://api.github.com/users/k-c13","html_url":"https://github.com/k-c13","followers_url":"https://api.github.com/users/k-c13/followers","following_url":"https://api.github.com/users/k-c13/following{/other_user}","gists_url":"https://api.github.com/users/k-c13/gists{/gist_id}","starred_url":"https://api.github.com/users/k-c13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/k-c13/subscriptions","organizations_url":"https://api.github.com/users/k-c13/orgs","repos_url":"https://api.github.com/users/k-c13/repos","events_url":"https://api.github.com/users/k-c13/events{/privacy}","received_events_url":"https://api.github.com/users/k-c13/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/k-c13/qabel-core","description":"Implementation of Qabel-Core in Java","fork":true,"url":"https://api.github.com/repos/k-c13/qabel-core","forks_url":"https://api.github.com/repos/k-c13/qabel-core/forks","keys_url":"https://api.github.com/repos/k-c13/qabel-core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/k-c13/qabel-core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/k-c13/qabel-core/teams","hooks_url":"https://api.github.com/repos/k-c13/qabel-core/hooks","issue_events_url":"https://api.github.com/repos/k-c13/qabel-core/issues/events{/number}","events_url":"https://api.github.com/repos/k-c13/qabel-core/events","assignees_url":"https://api.github.com/repos/k-c13/qabel-core/assignees{/user}","branches_url":"https://api.github.com/repos/k-c13/qabel-core/branches{/branch}","tags_url":"https://api.github.com/repos/k-c13/qabel-core/tags","blobs_url":"https://api.github.com/repos/k-c13/qabel-core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/k-c13/qabel-core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/k-c13/qabel-core/git/refs{/sha}","trees_url":"https://api.github.com/repos/k-c13/qabel-core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/k-c13/qabel-core/statuses/{sha}","languages_url":"https://api.github.com/repos/k-c13/qabel-core/languages","stargazers_url":"https://api.github.com/repos/k-c13/qabel-core/stargazers","contributors_url":"https://api.github.com/repos/k-c13/qabel-core/contributors","subscribers_url":"https://api.github.com/repos/k-c13/qabel-core/subscribers","subscription_url":"https://api.github.com/repos/k-c13/qabel-core/subscription","commits_url":"https://api.github.com/repos/k-c13/qabel-core/commits{/sha}","git_commits_url":"https://api.github.com/repos/k-c13/qabel-core/git/commits{/sha}","comments_url":"https://api.github.com/repos/k-c13/qabel-core/comments{/number}","issue_comment_url":"https://api.github.com/repos/k-c13/qabel-core/issues/comments/{number}","contents_url":"https://api.github.com/repos/k-c13/qabel-core/contents/{+path}","compare_url":"https://api.github.com/repos/k-c13/qabel-core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/k-c13/qabel-core/merges","archive_url":"https://api.github.com/repos/k-c13/qabel-core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/k-c13/qabel-core/downloads","issues_url":"https://api.github.com/repos/k-c13/qabel-core/issues{/number}","pulls_url":"https://api.github.com/repos/k-c13/qabel-core/pulls{/number}","milestones_url":"https://api.github.com/repos/k-c13/qabel-core/milestones{/number}","notifications_url":"https://api.github.com/repos/k-c13/qabel-core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/k-c13/qabel-core/labels{/name}","releases_url":"https://api.github.com/repos/k-c13/qabel-core/releases{/id}","created_at":"2014-10-11T12:31:32Z","updated_at":"2014-12-17T08:35:40Z","pushed_at":"2015-01-08T13:58:36Z","git_url":"git://github.com/k-c13/qabel-core.git","ssh_url":"git@github.com:k-c13/qabel-core.git","clone_url":"https://github.com/k-c13/qabel-core.git","svn_url":"https://github.com/k-c13/qabel-core","homepage":null,"size":3451,"stargazers_count":0,"watchers_count":0,"language":"Java","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":"Qabel:master","ref":"master","sha":"7148d938b6795c7c28f286bf1ee4a107b9f84410","user":{"login":"Qabel","id":7711470,"avatar_url":"https://avatars.githubusercontent.com/u/7711470?v=3","gravatar_id":"","url":"https://api.github.com/users/Qabel","html_url":"https://github.com/Qabel","followers_url":"https://api.github.com/users/Qabel/followers","following_url":"https://api.github.com/users/Qabel/following{/other_user}","gists_url":"https://api.github.com/users/Qabel/gists{/gist_id}","starred_url":"https://api.github.com/users/Qabel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Qabel/subscriptions","organizations_url":"https://api.github.com/users/Qabel/orgs","repos_url":"https://api.github.com/users/Qabel/repos","events_url":"https://api.github.com/users/Qabel/events{/privacy}","received_events_url":"https://api.github.com/users/Qabel/received_events","type":"Organization","site_admin":false},"repo":{"id":22873447,"name":"qabel-core","full_name":"Qabel/qabel-core","owner":{"login":"Qabel","id":7711470,"avatar_url":"https://avatars.githubusercontent.com/u/7711470?v=3","gravatar_id":"","url":"https://api.github.com/users/Qabel","html_url":"https://github.com/Qabel","followers_url":"https://api.github.com/users/Qabel/followers","following_url":"https://api.github.com/users/Qabel/following{/other_user}","gists_url":"https://api.github.com/users/Qabel/gists{/gist_id}","starred_url":"https://api.github.com/users/Qabel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Qabel/subscriptions","organizations_url":"https://api.github.com/users/Qabel/orgs","repos_url":"https://api.github.com/users/Qabel/repos","events_url":"https://api.github.com/users/Qabel/events{/privacy}","received_events_url":"https://api.github.com/users/Qabel/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Qabel/qabel-core","description":"Implementation of Qabel-Core in Java","fork":false,"url":"https://api.github.com/repos/Qabel/qabel-core","forks_url":"https://api.github.com/repos/Qabel/qabel-core/forks","keys_url":"https://api.github.com/repos/Qabel/qabel-core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Qabel/qabel-core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Qabel/qabel-core/teams","hooks_url":"https://api.github.com/repos/Qabel/qabel-core/hooks","issue_events_url":"https://api.github.com/repos/Qabel/qabel-core/issues/events{/number}","events_url":"https://api.github.com/repos/Qabel/qabel-core/events","assignees_url":"https://api.github.com/repos/Qabel/qabel-core/assignees{/user}","branches_url":"https://api.github.com/repos/Qabel/qabel-core/branches{/branch}","tags_url":"https://api.github.com/repos/Qabel/qabel-core/tags","blobs_url":"https://api.github.com/repos/Qabel/qabel-core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Qabel/qabel-core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Qabel/qabel-core/git/refs{/sha}","trees_url":"https://api.github.com/repos/Qabel/qabel-core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Qabel/qabel-core/statuses/{sha}","languages_url":"https://api.github.com/repos/Qabel/qabel-core/languages","stargazers_url":"https://api.github.com/repos/Qabel/qabel-core/stargazers","contributors_url":"https://api.github.com/repos/Qabel/qabel-core/contributors","subscribers_url":"https://api.github.com/repos/Qabel/qabel-core/subscribers","subscription_url":"https://api.github.com/repos/Qabel/qabel-core/subscription","commits_url":"https://api.github.com/repos/Qabel/qabel-core/commits{/sha}","git_commits_url":"https://api.github.com/repos/Qabel/qabel-core/git/commits{/sha}","comments_url":"https://api.github.com/repos/Qabel/qabel-core/comments{/number}","issue_comment_url":"https://api.github.com/repos/Qabel/qabel-core/issues/comments/{number}","contents_url":"https://api.github.com/repos/Qabel/qabel-core/contents/{+path}","compare_url":"https://api.github.com/repos/Qabel/qabel-core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Qabel/qabel-core/merges","archive_url":"https://api.github.com/repos/Qabel/qabel-core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Qabel/qabel-core/downloads","issues_url":"https://api.github.com/repos/Qabel/qabel-core/issues{/number}","pulls_url":"https://api.github.com/repos/Qabel/qabel-core/pulls{/number}","milestones_url":"https://api.github.com/repos/Qabel/qabel-core/milestones{/number}","notifications_url":"https://api.github.com/repos/Qabel/qabel-core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Qabel/qabel-core/labels{/name}","releases_url":"https://api.github.com/repos/Qabel/qabel-core/releases{/id}","created_at":"2014-08-12T10:25:10Z","updated_at":"2015-01-05T14:06:46Z","pushed_at":"2015-01-05T14:06:46Z","git_url":"git://github.com/Qabel/qabel-core.git","ssh_url":"git@github.com:Qabel/qabel-core.git","clone_url":"https://github.com/Qabel/qabel-core.git","svn_url":"https://github.com/Qabel/qabel-core","homepage":null,"size":5012,"stargazers_count":4,"watchers_count":4,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":11,"mirror_url":null,"open_issues_count":26,"forks":11,"open_issues":26,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Qabel/qabel-core/pulls/179"},"html":{"href":"https://github.com/Qabel/qabel-core/pull/179"},"issue":{"href":"https://api.github.com/repos/Qabel/qabel-core/issues/179"},"comments":{"href":"https://api.github.com/repos/Qabel/qabel-core/issues/179/comments"},"review_comments":{"href":"https://api.github.com/repos/Qabel/qabel-core/pulls/179/comments"},"review_comment":{"href":"https://api.github.com/repos/Qabel/qabel-core/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/Qabel/qabel-core/pulls/179/commits"},"statuses":{"href":"https://api.github.com/repos/Qabel/qabel-core/statuses/5b6b8cdf15701daeea921cb12398923ed685ef99"}}}}